Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758628AbYGKTmI (ORCPT ); Fri, 11 Jul 2008 15:42:08 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754509AbYGKTlx (ORCPT ); Fri, 11 Jul 2008 15:41:53 -0400 Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:47774 "EHLO sunset.davemloft.net" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1754255AbYGKTlx (ORCPT ); Fri, 11 Jul 2008 15:41:53 -0400 Date: Fri, 11 Jul 2008 12:41:52 -0700 (PDT) Message-Id: <20080711.124152.247767508.davem@davemloft.net> To: fujita.tomonori@lab.ntt.co.jp Cc: mpatocka@redhat.com, sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org, jens.axboe@oracle.com Subject: Re: [SUGGESTION]: drop virtual merge accounting in I/O requests From: David Miller In-Reply-To: <20080711201558J.fujita.tomonori@lab.ntt.co.jp> References: <20080711152054C.fujita.tomonori@lab.ntt.co.jp> <20080711201558J.fujita.tomonori@lab.ntt.co.jp> X-Mailer: Mew version 5.2 on Emacs 22.1 / Mule 5.0 (SAKAKI) 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: 1235 Lines: 31 From: FUJITA Tomonori Date: Fri, 11 Jul 2008 20:15:52 +0900 > On Fri, 11 Jul 2008 06:52:09 -0400 (EDT) > Mikulas Patocka wrote: > > > On Fri, 11 Jul 2008, FUJITA Tomonori wrote: > > > > > Yeah, IOMMUs can't guarantee that. The majority of architectures set > > > BIO_VMERGE_BOUNDARY to 0 so they don't hit this, I think. > > > > Yes, the architectures without IOMMU don't hit this problem. > > I meant that even if some architectures support IOMMUs, they set > BIO_VMERGE_BOUNDARY to 0. Keep in mind that these settings were added long before we supported segment boundary restrictions. Someone added code to handle segment boundaries, but didn't fix any of the block I/O layer infrastructure :-) Several platforms that have IOMMU but set these values to zero actually did so for another reason. They considered being required to always merge page-adjacent mappings virtually too strong a requirement to meet %100 of the time. -- 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/