Subject: Re: Random PID'
To: None <thorpej@zembu.com>
From: enami tsugutomo <enami@sm.sony.co.jp>
List: current-users
Date: 11/13/2000 11:14:45
Jason R Thorpe <thorpej@zembu.com> writes:

> On Mon, Nov 13, 2000 at 12:34:28PM +1100, Simon Burge wrote:
> 
>  > How is proc address allocation done?  LRU?  Just thinking of repeating
>  > monte carlo similutions that run in less than a second that do
> 
> Well, procs are allocated from a pool (pool_get()).  So, a new
> proc is going to have the same address as the last one freed.

It's not a strict LRU.  The next one will be allocated from the
``curpage'' and a page the last one freed put back may be a different
page than the ``curpage''.

enami.