Re: MM deadlock [was: Re: arca-vm-8...]

Stephen C. Tweedie
1999-01-27T12:13:57Z

Hi,

On Tue, 26 Jan 1999 02:57:41 +0100 (CET), Andrea Arcangeli
<andrea@e-mind.com> said:

>> /* We can't free pages unless there's just one user */
>> if (atomic_read(&page->count) != 1)
>> continue;
>> +
>> + count--;

> but this is plain bogus. When your machine will reach 0 freeable pages
> (and that happens a bit before to kill the process because OOM) you'll get
> an infinite loop in shrink_mmap().

No. We skip only shared pages. We still count page tables, vmalloced
pages, task structs, kmalloc/slab pages, dma buffers and all those other
kernel pages which do not belong to the VM.

--Stephen
--
To unsubscribe, send a message with 'unsubscribe linux-mm my@address'
in the body to majordomo@kvack.org. For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/