Re: [PATCH #2] OOM kill trigger

Jeff Garzik (jgarzik@mandrakesoft.com)
Fri, 06 Jul 2001 22:12:07 -0400


Rik van Riel wrote:
> + cache_mem = atomic_read(&page_cache_size);
> + cache_mem += atomic_read(&buffermem_pages);
> + cache_mem -= swapper_space.nrpages;
> + limit = (page_cache.min_percent + buffer_mem.min_percent);

Don't you need extra protection around swapper_space.nrpages? A barrier
right above it?

-- 
Jeff Garzik      | A recent study has shown that too much soup
Building 1024    | can cause malaise in laboratory mice.
MandrakeSoft     |
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/