Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932559AbWLSAu3 (ORCPT ); Mon, 18 Dec 2006 19:50:29 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932561AbWLSAu2 (ORCPT ); Mon, 18 Dec 2006 19:50:28 -0500 Received: from ogre.sisk.pl ([217.79.144.158]:47725 "EHLO ogre.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932559AbWLSAu1 (ORCPT ); Mon, 18 Dec 2006 19:50:27 -0500 From: "Rafael J. Wysocki" To: Andrew Morton Subject: Re: [linux-pm] OOPS: divide error while s2dsk (2.6.20-rc1-mm1) Date: Tue, 19 Dec 2006 01:52:27 +0100 User-Agent: KMail/1.9.1 Cc: Jiri Slaby , linux-pm@lists.osdl.org, Linux kernel mailing list , linux-pm@osdl.org References: <4586797B.3080007@gmail.com> <200612182338.24843.rjw@sisk.pl> <20061218151710.32ceba0d.akpm@osdl.org> In-Reply-To: <20061218151710.32ceba0d.akpm@osdl.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200612190152.28457.rjw@sisk.pl> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1475 Lines: 47 On Tuesday, 19 December 2006 00:17, Andrew Morton wrote: > On Mon, 18 Dec 2006 23:38:23 +0100 > "Rafael J. Wysocki" wrote: > > > > > Looks like we have a problem with slab shrinking here. > > > > > > > > Could you please use gdb to check what exactly is at shrink_slab+0x9e? > > > > > > Sure, but not till Friday, sorry (I am away). > > > > I reproduced this on one box, but then it turned out that EIP was at line 195 > > of mm/vmscan.c where there was > > > > do_div(delta, lru_pages + 1); > > That implies that we passed it lru_pages=-1. > > Presumably the logic in > vmscanc-account-for-memory-already-freed-in-seeking-to.patch caused that. > > > Well, I have no idea how this can lead to a divide error (lru_pages is > > unsigned). > > > > I'm unable to reproduce this on another i386 box, so it seems to be somewhat > > configuration specific. > > > > There is one wart in shrink_all_memory() and I think we should fix that in > 2.6.20. > > Please check the below. Fine by me. > I'll drop vmscanc-account-for-memory-already-freed-in-seeking-to.patch. It > has other stuff in it which we might still need. But altering > sc->swap_cluster_max in that manner looks odd. Agreed. Greetings, Rafael - 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/