Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965056AbVKBOlb (ORCPT ); Wed, 2 Nov 2005 09:41:31 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S965057AbVKBOlb (ORCPT ); Wed, 2 Nov 2005 09:41:31 -0500 Received: from e31.co.us.ibm.com ([32.97.110.149]:60880 "EHLO e31.co.us.ibm.com") by vger.kernel.org with ESMTP id S965056AbVKBOla (ORCPT ); Wed, 2 Nov 2005 09:41:30 -0500 Date: Wed, 2 Nov 2005 20:05:02 +0530 From: Dipankar Sarma To: Linus Torvalds Cc: Hugh Dickins , Andi Kleen , Andrew Morton , Manfred Spraul , linux-kernel@vger.kernel.org Subject: bad page state under possibly oom situation Message-ID: <20051102143502.GE6137@in.ibm.com> Reply-To: dipankar@in.ibm.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.10i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1560 Lines: 32 We have discussed this in private previously and I had mentioned that I see this introduced between 2.6.9-rc1 and 2.6.9-rc2. After spending some time doing other things, I went back to take a look at this again and thought I would share this with a wider audience. The basic problem is that while running the LTP rename14 test with a tmpfs /tmp, I see this - Bad page state at prep_new_page (in process 'rename14', page ffff810008002aa8) flags:0x4000000000000090 mapping:0000000000000000 mapcount:0 count:0 Backtrace: Call Trace:{bad_page+115} {buffered_rmqueue+438} {__alloc_pages+251} {_atomic_dec_and_lock+24} {cache_alloc_refill+581} {kmem_cache_alloc+44} {d_alloc+33} {__lookup_hash+206} {sys_rename+245} {system_call+126} Trying to fix it up, but a reboot is needed Recently, I tested this with 2.6.14 and it worked. I then tried setting rcupdate.maxbatch=10 as it was before 2.6.14 and the bad page state problem happened again. Looks like it happens only under memory pressure and likely have something to do with slab. I am wondering if that rings a bell with anyone. Manfred ? Thanks Dipankar - 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/