From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Piggin Subject: Re: [PATCH 03/13] scsi: unify allocation of scsi command and sense buffer Date: Mon, 25 May 2009 13:32:51 +0200 Message-ID: <20090525113251.GC24071@wotan.suse.de> References: <1243236668-3398-1-git-send-email-jens.axboe@oracle.com> <1243236668-3398-6-git-send-email-jens.axboe@oracle.com> <84144f020905250115m1dffb51er51f8f339ab58a704@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Jens Axboe , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, chris.mason@oracle.com, david@fromorbit.com, hch@infradead.org, akpm@linux-foundation.org, jack@suse.cz, yanmin_zhang@linux.intel.com, Christoph Lameter , Matthew Wilcox To: Pekka Enberg Return-path: Received: from cantor.suse.de ([195.135.220.2]:33749 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751092AbZEYLcv (ORCPT ); Mon, 25 May 2009 07:32:51 -0400 Content-Disposition: inline In-Reply-To: <84144f020905250115m1dffb51er51f8f339ab58a704@mail.gmail.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Mon, May 25, 2009 at 11:15:42AM +0300, Pekka Enberg wrote: > On Mon, May 25, 2009 at 10:30 AM, Jens Axboe wrote: > > Fold the sense buffer into the command, thereby eliminating a slab > > allocation and free per command. > > > > Signed-off-by: Jens Axboe > > Interesting. I wonder how this affects the SLAB vs. SLUB regression > people are seeing on high end machines in OLTP benchmarks. It could improve it. I think these (bios, requests, commands etc) allocations are what SLUB has trouble with in that workload, so eliminating one of them should help it. I guess it will help the other allocators as well, but maybe a smaller relative improvement?