Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 5 Oct 2001 16:00:07 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 5 Oct 2001 15:59:58 -0400 Received: from neon-gw-l3.transmeta.com ([63.209.4.196]:14856 "EHLO neon-gw.transmeta.com") by vger.kernel.org with ESMTP id ; Fri, 5 Oct 2001 15:59:45 -0400 Date: Fri, 5 Oct 2001 12:59:29 -0700 (PDT) From: Linus Torvalds To: Hugh Dickins cc: Marcelo Tosatti , Andrea Arcangeli , Subject: Re: pre4 oom too soon 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 Fri, 5 Oct 2001, Hugh Dickins wrote: > > I'm not sure exactly what to blame in out_of_memory(), but it does > look wrong to depend so much on whether nr_swap_pages happens to be 0 > at that instant or not, and a lot of that full swap is duplicated in > the swap cache. Probably that should be taken into consideration? That sounds sane. If we have swap cache pages, we're not out of memory yet. Linus - 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/