Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 7 Jul 2001 14:06:01 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 7 Jul 2001 14:05:51 -0400 Received: from perninha.conectiva.com.br ([200.250.58.156]:7691 "HELO perninha.conectiva.com.br") by vger.kernel.org with SMTP id ; Sat, 7 Jul 2001 14:05:46 -0400 Date: Sat, 7 Jul 2001 15:05:35 -0300 (BRST) From: Rik van Riel X-X-Sender: To: Jeff Garzik Cc: Linus Torvalds , Alan Cox , , Hugh Dickins Subject: Re: [PATCH #2] OOM kill trigger In-Reply-To: <3B466FF7.81138181@mandrakesoft.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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/