Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753349Ab0DVH7X (ORCPT ); Thu, 22 Apr 2010 03:59:23 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:39336 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752957Ab0DVH7Q (ORCPT ); Thu, 22 Apr 2010 03:59:16 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=hucslt6yG/gSCrjiIe+bIjhwhyqQrOg9+PqOjoIAiyQBZai7vQpOT545p+BK82VkGL Q4P4DYBOyohaML/mV8mr7DXEF6CQ8u7gqVcb6jOsVH497+MIWScXVTj0X+IofgwDKblt Don52ZHmypWPWINTy8gcNryWLorwEN/eCMVBE= MIME-Version: 1.0 In-Reply-To: <1271865911.24780.292.camel@tucsk.pomaz.szeredi.hu> References: <1271420878.24780.145.camel@tucsk.pomaz.szeredi.hu> <1271677562.24780.184.camel@tucsk.pomaz.szeredi.hu> <1271856324.24780.285.camel@tucsk.pomaz.szeredi.hu> <1271865911.24780.292.camel@tucsk.pomaz.szeredi.hu> Date: Thu, 22 Apr 2010 09:59:14 +0200 Message-ID: Subject: Re: CFQ read performance regression From: Corrado Zoccolo To: Miklos Szeredi Cc: Jens Axboe , linux-kernel , Jan Kara , Suresh Jayaraman Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1404 Lines: 41 Hi Miklos, On Wed, Apr 21, 2010 at 6:05 PM, Miklos Szeredi wrote: > Jens, Corrado, > > Here's a graph showing the number of issued but not yet completed > requests versus time for CFQ and NOOP schedulers running the tiobench > benchmark with 8 threads: > > http://www.kernel.org/pub/linux/kernel/people/mszeredi/blktrace/queue-depth.jpg > > It shows pretty clearly the performance problem is because CFQ is not > issuing enough request to fill the bandwidth. > > Is this the correct behavior of CFQ or is this a bug? This is the expected behavior from CFQ, even if it is not optimal, since we aren't able to identify multi-splindle disks yet. Can you post the result of "grep -r . ." in your /sys/block/*/queue directory, to see if we can find some parameter that can help identifying your hardware as a multi-spindle disk. > > This is on a vanilla 2.6.34-rc4 kernel with two tunables modified: > > read_ahead_kb=512 > low_latency=0 (for CFQ) You should get much better throughput by setting /sys/block/_your_disk_/queue/iosched/slice_idle to 0, or /sys/block/_your_disk_/queue/rotational to 0. Thanks, Corrado > > Thanks, > Miklos > > > -- 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/