Subject: Re: Dynamic linking is go (again)
To: None <tech-kern@netbsd.org>
From: Valeriy E. Ushakov <uwe@ptc.spbu.ru>
List: tech-kern
Date: 07/10/2003 18:26:07
On Sun, Jul 06, 2003 at 07:42:09 +0900, Izumi Tsutsui wrote:

> Hmm, it seems any processes of PIC binaries are not swapped out (no
> process is marked 'W' in ps -ax output) and it causes thrashing..

sh3 ports define __SWAP_BROKEN in sys/arch/sh3/include/types.h, so in
sys/uvm/uvm_pdaemon.c uvm_swapout_threads() is never called (thanks to
mrg for pointign this out).

__SWAP_BROKEN is also defined for mips ports.

I'm not familiar with that part of the kernel, so I don't know why
it's marked as broken.  Since for sh3 __SWAP_BROKEN was defined in the
same commit, in which the __HAVE_AST_PERPROC was added, may be it
needs the u-area to deliver an ast (but that's just a wild guess).

Any hints from folks who know how this works?

SY, Uwe
-- 
uwe@ptc.spbu.ru                         |       Zu Grunde kommen
http://www.ptc.spbu.ru/~uwe/            |       Ist zu Grunde gehen