Received: by 10.213.65.68 with SMTP id h4csp1935990imn; Sun, 1 Apr 2018 19:48:13 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+23VNz1l/e0jWYe9zS5CjNrPFvO/NwK+zwjxPR2V7FSlmCTWMZ8hubIFL3UcGB3a+UVd40 X-Received: by 10.99.174.6 with SMTP id q6mr5184902pgf.179.1522637293622; Sun, 01 Apr 2018 19:48:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522637293; cv=none; d=google.com; s=arc-20160816; b=NBvW73jSODYOXDevrM+ygg5hV4xGI3PclbxZfQPHEuQ0N2rex4Z0GY3gqR5jnegdu+ KNkE27/HI+siQk3rkS3Dy/nSOX5uZMQvpwgiH08puWhqArGM/DUlqbS6OfuSRtdhsMQg bykRwIq7y3mkiNbfnrkPpqu4NZLi1c9r2rSaV8ckiB19vp81NipyplPDqNt+HsK6CQhB TTEhdnv9lLsixtJsXDS4hqfWDOh56dZ/dhTNv2EBjGYOldPtYqJUEaO72bOpm87NmYCl uVLBL4RbbfnVzzrLohgf4tuk6VjTHwhExFFvyb7aJk4LVWb7030X+KHYk2lh3T1xNNb5 Fnlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=2ug2ro56ktZh9q1Ax/atFk4cxPgO/dCJSGRercRnf6s=; b=evSro681JHKEb7lKnzOvpERIZR31d2t05Mk+CRHcj4Br7oy+w38pkTq9SWjLC86lR7 UcoN8DYx9P1SQPmba1lnnoRJBCvm+0SJ5fRneRFqBcWDhMFq5V0TTBSX47aXSfNGXpK6 vbR1ku48e0Cnherrv/Ewj8/iNOoFvk25yX9HEHyZaTYVxXwgEk8fbexFHoSTnxzDkTwg 3N51F2G/Nx4bfGBPecVhAkbq0WvMLltS/YIL1dKd6E5FuokLq4SoOYY0+aTq9wetvGus lHleVQ8E4ITeJ9+c7y7BHLX65ZmZGsJltwhfqi3XHfVHOAT43uUw3h3TqzkEkb0R/q1e hCvQ== 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 h91-v6si13714810pld.716.2018.04.01.19.47.57; Sun, 01 Apr 2018 19:48:13 -0700 (PDT) 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 S1754111AbeDBCqs (ORCPT + 99 others); Sun, 1 Apr 2018 22:46:48 -0400 Received: from mail-wm0-f43.google.com ([74.125.82.43]:51107 "EHLO mail-wm0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754072AbeDBCqq (ORCPT ); Sun, 1 Apr 2018 22:46:46 -0400 Received: by mail-wm0-f43.google.com with SMTP id t67so3120025wmt.0 for ; Sun, 01 Apr 2018 19:46:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=2ug2ro56ktZh9q1Ax/atFk4cxPgO/dCJSGRercRnf6s=; b=fTUu+QRTf4yVWvrd/bjV+PsEv/KsHVrDgZdpl1tVc6CPgBruDsSoVURMmw9FqT3kEX Pvg9lpBkOrlZVVSdN6t6yiPcI9iVnHU3VOkKu9jZZG1VHP67SRWBRFi1ZSCAAxgZz+nt eVEm3EpnAS0MDd6Y06jgUwNh1G6fZDdmzWPUjJXksBt63uAwq88cPuw2mbKlSm6+0iHe HTPic53wcUp5h9mqzLSb+LcEL0PmC2Fca1iCT6u3/J4JjMRYCATp8xYIpap1Se8WHiax jsMMLjvqL2EMRQ03+CQ3j5HC20tGCFnkEwO9PPr2FBqBSGqzlq3Lqx71x+dHh7nyHcW2 LP2g== X-Gm-Message-State: AElRT7HB7ZauvF3qA3Iya00Z/tJL26dgZEIWMj2kUWFHxWPWuQQ5kbAs zQnyg+WH3JqnAGyYo5KFybqsoQ== X-Received: by 10.28.228.9 with SMTP id b9mr8152173wmh.131.1522637205637; Sun, 01 Apr 2018 19:46:45 -0700 (PDT) Received: from [192.168.2.163] (93-44-58-194.ip95.fastwebnet.it. [93.44.58.194]) by smtp.gmail.com with ESMTPSA id k14sm17512443wrc.62.2018.04.01.19.46.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 01 Apr 2018 19:46:44 -0700 (PDT) Subject: Re: [Qemu-devel] [RFC] About 9pfs support "O_DIRECT + aio"? To: jiangyiwen , Andrew Morton , Eric Van Hensbergen , Ron Minnich , Latchesar Ionkov , Greg Kurz , aneesh.kumar@linux.vnet.ibm.com Cc: v9fs-developer@lists.sourceforge.net, linux-kernel@vger.kernel.org, qemu-devel@nongnu.org References: <5ABDFB24.1080207@huawei.com> From: Paolo Bonzini Message-ID: <41088460-11f1-1ec7-2bfa-1ebdf675dc17@redhat.com> Date: Mon, 2 Apr 2018 04:45:36 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <5ABDFB24.1080207@huawei.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 30/03/2018 10:53, jiangyiwen wrote: > Currently, I found virtio-9p in VirtFS don't support "O_DIRECT + aio" > mode, both v9fs and qemu. So when user use "O_DIRECT + aio" mode and > increase iodepths, they can't get higher IOPS. > > I want to know why v9fs don't implement this mode? And I will try to > implement this mode from now on. Can you explain? I think 9p has support for direct I/O in Linux. See v9fs_direct_IO in fs/9p/vfs_addr.c. Paolo