Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758053Ab2EILMt (ORCPT ); Wed, 9 May 2012 07:12:49 -0400 Received: from 173-166-109-252-newengland.hfc.comcastbusiness.net ([173.166.109.252]:37831 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757745Ab2EILMq (ORCPT ); Wed, 9 May 2012 07:12:46 -0400 Date: Wed, 9 May 2012 07:12:43 -0400 From: Christoph Hellwig To: Christoph Hellwig , Robert Hancock , linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org, linux-scsi@vger.kernel.org, Jeff Garzik , Zheng Liu Subject: Re: [RFC][PATCH] libata: enable SATA disk fua detection on default Message-ID: <20120509111243.GB29593@infradead.org> References: <1336447443-4685-1-git-send-email-wenqing.lz@taobao.com> <4FAA02DA.3000201@gmail.com> <20120509061956.GA12329@gmail.com> <20120509082527.GA10674@infradead.org> <20120509093016.GA12754@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120509093016.GA12754@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1489 Lines: 27 On Wed, May 09, 2012 at 05:30:16PM +0800, Zheng Liu wrote: > IMHO, FUA provides a solution that we can get better performance in write > cache mode when we do many flush operations. If I set the disk to write > through mode, I won't get this benefit. Am I missing something? If you set the disk to write through mode you never have to flush the cache. So as soonas your number of flushes gets close to the number of writes it tends to be a clear win - for ATA the tradeoff is even more in favour of write through because the flush command can't be queued yetin commonly available standards versions. So if you have a workload that basically needs to flush out every write you win - if you have workloads where you have a lot more writes than cache flushes write back mode wins. > Currently, the key issue is that we disable FUA detection for SATA disk. > We almost have no chance to change it because it is too complicated to > set libata_fua variable when this module is loaded. So why not give > SATA disk an opportunity to enable this feature? After all, there is a > lot of SATA disks that support this feature. I'm all in favour of your patch, I just wanted to point out that the argument in the description wasn't quite correct. -- 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/