Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp470356imu; Mon, 5 Nov 2018 04:03:07 -0800 (PST) X-Google-Smtp-Source: AJdET5fmRfw21+j0TQsjb+NHvPCQBZFL0kZBUCHK6FEazYcNapr3uE+a/9A5SmnDkTA0B+P9hPaP X-Received: by 2002:a63:c846:: with SMTP id l6mr19624697pgi.78.1541419386993; Mon, 05 Nov 2018 04:03:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541419386; cv=none; d=google.com; s=arc-20160816; b=oviAAKF+DnsbIyzvsTfW5Fb4SeLefUIPzye9SE+Rxa6tDFIYNnghelbAwwuJw3IzY5 4ymgwovZjaNU2XiyFAkDptafNmr+4sT5nn1GgWCZob9n8vmLsBm83XHtrWDfSe23EhSb Z1E7JMW6S3i4lGNNl7puZbZ8xtmYsil2/scbOLPEZF2rvOE2CHn5g1fj7E0/kctBPBY4 7MAO6gJuquMD1EtxYpz0T8FQ5h74xLynya2MCdXlmJ2GL/SGlvVFZHeUASDUPfjp290V 5qaWVbETSL9eAhCxww++SRTQilVTI9BQBj21XjnZtFtDRWBmg/Z8Qq3T8BRsMyeg+tc3 4Egg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=UNorANVpFqextMtMiXe2FZc36R+gKmMW4LO673Vom08=; b=DnDGHm7GyK+czkz3VeV51a7Y8ukK2UkDCzpNLGREvamh+KXou4QYjuevZYBs4mxkQT 68EK5z2G3HpVHUAbgJH2EaaamxXOMWu4Okpghs5XxoP7KrMLko7obdmjRbiADNuA9aau QsD5jLzH5fFNvBAPygC9f7TbMSxy/bFm8N+wJXmgtcq4Wc2HA/WBm0sQ0H/YAKBqIhY9 eSn9CkqqoctbJwFmG3KT+ag3i+ZYH81MxL1/CC5fZUpZ8gsTcFrK68Y2iVtcqcvdtOWj 0EBQqgsXWSV4rybsvb7/FrXWQvZeVXoPOJ2COhIQ8LuOInKNFX2VcC+QbqoLgCcYyabc FiGw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z188-v6si29904393pgb.75.2018.11.05.04.02.42; Mon, 05 Nov 2018 04:03:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729604AbeKEVVf (ORCPT + 99 others); Mon, 5 Nov 2018 16:21:35 -0500 Received: from mx1.redhat.com ([209.132.183.28]:44008 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727048AbeKEVVe (ORCPT ); Mon, 5 Nov 2018 16:21:34 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D7E00308A972; Mon, 5 Nov 2018 12:02:10 +0000 (UTC) Received: from ming.t460p (ovpn-8-33.pek2.redhat.com [10.72.8.33]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 569F865F49; Mon, 5 Nov 2018 12:01:59 +0000 (UTC) Date: Mon, 5 Nov 2018 20:01:54 +0800 From: Ming Lei To: Johannes Thumshirn Cc: Jens Axboe , Linux Block Layer Mailinglist , Hannes Reinecke , Linux Kernel Mailinglist , Jan Kara , Sagi Grimberg Subject: Re: [PATCH] block: respect virtual boundary mask in bvecs Message-ID: <20181105120153.GD12367@ming.t460p> References: <20181105102301.9752-1-jthumshirn@suse.de> <20181105105548.GC12367@ming.t460p> <7c649b43-f952-cf94-93d6-44fb153acced@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7c649b43-f952-cf94-93d6-44fb153acced@suse.de> User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.41]); Mon, 05 Nov 2018 12:02:11 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 05, 2018 at 12:50:50PM +0100, Johannes Thumshirn wrote: > On 05/11/2018 11:55, Ming Lei wrote: > > On Mon, Nov 05, 2018 at 11:23:01AM +0100, Johannes Thumshirn wrote: > >> With drivers like iSer we are seeing a lot of bio splitting and smaller I/Os > >> being submitted to the driver. > >> > >> The root cause of this issue that the virtual boundary mask code does not take > >> into consideration that some of the memory segments in the SG list may have > >> come from a huge memory page that is being managed in the SG list as 4K > > > > I guess you mean something like 64K PAGE_SIZE, instead of huge page. > > No I mean like a 2M page from an upper layer. If you mean the real huge page, this patch shouldn't have made a difference because bio_vec->bv_offset is in [0, PAGE_SIZE), and iSer sets virt boundary as 4K - 1. However, things will change after multipage bvec is introduced. Thanks, Ming