Re: memory crash

Alan Cox (alan@lxorguk.ukuu.org.uk)
Wed, 11 Dec 1996 23:15:27 +0000 (GMT)


> this. When a process is allocated memory, the initial memory comes from
> a pool of shared zero-filled pages. These pages don't actually get
> owned by a specific process until a process actually writes to one.

So does linux

> because real memory is getting scarce. At this time, the modified page
> writer copies the oldest and least-used pages to disk. The real memory,
> thus freed, is then zero-filled and put back into the pool. This process
> continues.

This is the wrong answer - it should be least regularly use

> time, are swapped out entirely except for the process header. This
> frees more memory.

See the kernel kswapd threads too

Alan