From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756793AbYDGVHe (ORCPT ); Mon, 7 Apr 2008 17:07:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752584AbYDGVH1 (ORCPT ); Mon, 7 Apr 2008 17:07:27 -0400 Received: from courier.cs.helsinki.fi ([128.214.9.1]:60480 "EHLO mail.cs.helsinki.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752381AbYDGVH0 (ORCPT ); Mon, 7 Apr 2008 17:07:26 -0400 Message-ID: <47FA8CB0.6070106@cs.helsinki.fi> Date: Tue, 08 Apr 2008 00:05:52 +0300 From: Pekka Enberg User-Agent: Thunderbird 2.0.0.12 (Macintosh/20080213) MIME-Version: 1.0 To: Hugh Dickins CC: Peter Zijlstra , Christoph Lameter , James Bottomley , Linus Torvalds , Andrew Morton , FUJITA Tomonori , Jens Axboe , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org Subject: Re: [PATCH] scsi: fix sense_slab/bio swapping livelock References: <1207598115.29991.23.camel@lappy> <47FA8B5A.5090104@cs.helsinki.fi> In-Reply-To: <47FA8B5A.5090104@cs.helsinki.fi> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Pekka Enberg wrote: > Although you weren't convinced by my arguments, I still have > difficulties understanding why this kind of bad behavior would be > acceptable in an embedded environment and why we don't need to fix it > for the SLOB case as well. > > But you do bring up a good point of SLUB changing the behavior on OOM > situations for which SLAB_NOMERGE sounds like a good-enough stop-gap > measure for the short term. I would prefer some other fix even if it > means getting rid of slab merging competely (which would suck as it's > very nice for making memory footprint smaller). I wonder if we can get away with a SLAB_IO flag that you can use to annotate caches that participate in writeout and the allocator could keep some spare pages around that can be handed out for them in case of OOM... Pekka