lkml.org 
[lkml]   [2001]   [Jul]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH #2] OOM kill trigger
On Fri, 6 Jul 2001, Jeff Garzik wrote:
> 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?

No. It's just a heuristic.

Besides, all that could change is the VALUE of
swapper_space.nrpages and it won't change by all
that much...

Rik
--
Executive summary of a recent Microsoft press release:
"we are concerned about the GNU General Public License (GPL)"


http://www.surriel.com/
http://www.conectiva.com/ http://distro.conectiva.com/

-
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/

\
 
 \ /
  Last update: 2005-03-22 12:56    [W:0.055 / U:0.204 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site