Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 8 Nov 2001 11:47:43 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 8 Nov 2001 11:47:35 -0500 Received: from perninha.conectiva.com.br ([200.250.58.156]:59662 "HELO perninha.conectiva.com.br") by vger.kernel.org with SMTP id ; Thu, 8 Nov 2001 11:47:28 -0500 Date: Thu, 8 Nov 2001 13:28:44 -0200 (BRST) From: Marcelo Tosatti To: Rik van Riel Cc: Linus Torvalds , lkml Subject: Re: out_of_memory() heuristic broken for different mem configurations (fwd) In-Reply-To: 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 Thu, 8 Nov 2001, Rik van Riel wrote: > On Thu, 8 Nov 2001, Linus Torvalds wrote: > > On Thu, 8 Nov 2001, Marcelo Tosatti wrote: > > > > > > I guess you forgot to apply the following patch on 2.4.15-pre1, right ? > > > > The thing is, I _really_ think it is broken. > > > > The way to make it fail is to have many large SHARED mappings > > ISTR that you wanted swap_out() changed into something which > only scans a portion of the ptes and doesn't have any return > value for a related reason in early 2.4 ... ;) Rik, I remember Linus had a reasoning for the "scan _ALL_ ptes until success" behaviour. Linus, was that due to zone-specific (eg DMA shortage on bigmem machine) shortages or ? That _is_ one good argument (I'm still seeing the network driver not being able to allocate memory from the DMA zone on the 16GB boxen), I think. However, the current code breaks badly as I've tested on the 16GB boxen. - 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/