Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759331AbYJMWjy (ORCPT ); Mon, 13 Oct 2008 18:39:54 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755898AbYJMWjo (ORCPT ); Mon, 13 Oct 2008 18:39:44 -0400 Received: from earthlight.etchedpixels.co.uk ([81.2.110.250]:40659 "EHLO lxorguk.ukuu.org.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755587AbYJMWjn (ORCPT ); Mon, 13 Oct 2008 18:39:43 -0400 Date: Mon, 13 Oct 2008 23:39:33 +0100 From: Alan Cox To: "Grant Grundler" Cc: "kenneth johansson" , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: weird throughput on write to SATA disk Message-ID: <20081013233933.2ee5a011@lxorguk.ukuu.org.uk> In-Reply-To: References: <1223925629.3947.7.camel@duo> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.12; x86_64-redhat-linux-gnu) Organization: Red Hat UK Cyf., Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, Y Deyrnas Gyfunol. Cofrestrwyd yng Nghymru a Lloegr o'r rhif cofrestru 3798903 Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 979 Lines: 22 On Mon, 13 Oct 2008 14:07:15 -0700 "Grant Grundler" wrote: > On Mon, Oct 13, 2008 at 12:19 PM, kenneth johansson wrote: > > When writing data to /dev/sdb (that is the whole disk and no filesystem) > > it starts out ok around 100MB/sec but soon end up doing considerably > > worse. For prolonged times lasting several minutes it hovers in the > > 20-30MB/sec. > > Is the application using "O_DIRECT"? > If not, could be issue with how VM writeback is (not) working. Or just mashing up the I/O horribly. Would also be worth turning the CFQ scheduler off or applying Arjan van de Ven's patches to fix the ioprio of the kernel writeout threads. That last patch makes a huge difference here. Alan -- 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/