Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262882AbUFWWRJ (ORCPT ); Wed, 23 Jun 2004 18:17:09 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261763AbUFWWPX (ORCPT ); Wed, 23 Jun 2004 18:15:23 -0400 Received: from fw.osdl.org ([65.172.181.6]:36046 "EHLO mail.osdl.org") by vger.kernel.org with ESMTP id S262370AbUFWWOJ (ORCPT ); Wed, 23 Jun 2004 18:14:09 -0400 Date: Wed, 23 Jun 2004 15:16:59 -0700 From: Andrew Morton To: William Lee Irwin III Cc: linux-kernel@vger.kernel.org Subject: Re: [oom]: [0/4] fix OOM deadlock running OAST Message-Id: <20040623151659.70333c6d.akpm@osdl.org> In-Reply-To: <0406231407.HbLbJbXaHbKbWa5aJb1a4aKb0a3aKb1a0a2aMbMbYa3aLbMb3aJbWaJbXaMbLb1a342@holomorphy.com> References: <0406231407.HbLbJbXaHbKbWa5aJb1a4aKb0a3aKb1a0a2aMbMbYa3aLbMb3aJbWaJbXaMbLb1a342@holomorphy.com> X-Mailer: Sylpheed version 0.9.7 (GTK+ 1.2.10; i586-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 760 Lines: 17 William Lee Irwin III wrote: > > While running OAST to test 2.6's maximum client capacity, the kernel > deadlocked instead of properly OOM'ing. The obvious cause was the > line if (nr_swap_pages > 0) in out_of_memory(), which fails to account > for pinned allocations. This can't simply be removed. It all seems like rather a lot of fuss. It should be the case that zone->all_unreclaimable is set by the time this happens. Did you consider feeding that into the oom-killing decision instead? - 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/