Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp4220747imj; Tue, 12 Feb 2019 11:56:13 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib6qXQ4V4UQHZrsnFSMJJEeJ0gV0pCg5SnbgjBpmWxHAJ/eo3Vx8PbR4lVU6r2Jla8jBdrG X-Received: by 2002:a63:e309:: with SMTP id f9mr5117975pgh.280.1550001373868; Tue, 12 Feb 2019 11:56:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550001373; cv=none; d=google.com; s=arc-20160816; b=VtnA+1dIWjByqNr+RUgHgyEboNHIS8LbOC4jvE654aDePQtir9EhVTwz/UrYi31Q6v 5ubCjxIwBuLcXLoN0ZfiluQqI4fSCcozeg0lUxPk2Oy3IQKR8+Ux8KWgOF4Dg0jw23Ro /7qtZkPnhaU1kNnv+hKMDtp+S9noYZNt4iiSr/MCCjwKj+X+7Dn2/8sKRrNfNEztUrMu BbPK6gKMIf7F3Z2iAk4fv7BL9NV2t7NJrSOGYjMtcPZlEftBgT+QXPftZThjLqXXBwGS 0u7SW6qRyVrx/AtmkpizVWWzp/I9FOYCh+54xkGQmKy0v/KAikmgZg3KMZ0ODRQbhQoy nh2g== 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=rnDDUY263V64J39E9mdlTVjQDYZqtVTnzQ6hroNKCU0=; b=X0MTRnXKd7qIyk1NRjV1U64kavsBQgI7X6tuhDElB7kqaGaQoqqcl8/L2Oh7LTZdfW 5DkvaGAWte2Ud7JEJ3YCM6KVrGjU9flRWqFX8j06lSBpgaWErRq64Rym5VRUj81++30y HPT7+UOrn6raUHbgde9imu6QYbXGchT/AfwvbtM0ESJznfdVjYMY+1/pYC2Nspq/O5hA YB3fA4k6fWYTptnpY+6Rt0WG6wZ9a7OEyqseV0IrmP/d1chvMApd50gmfetPl1KhY+M+ je5YYkvGsTTQkx2nZ2Ku6Z+DHVYoacAgeVes9KPUyUI5ndb7DezFzh6GDtmAa6JC5BBA cIWg== 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 d16si13720501pfn.169.2019.02.12.11.55.57; Tue, 12 Feb 2019 11:56:13 -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 S1731231AbfBLS5a (ORCPT + 99 others); Tue, 12 Feb 2019 13:57:30 -0500 Received: from mx1.redhat.com ([209.132.183.28]:45308 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729371AbfBLS53 (ORCPT ); Tue, 12 Feb 2019 13:57:29 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7DE17369CA; Tue, 12 Feb 2019 18:57:29 +0000 (UTC) Received: from horse.redhat.com (unknown [10.18.25.156]) by smtp.corp.redhat.com (Postfix) with ESMTP id 919C3194A0; Tue, 12 Feb 2019 18:57:25 +0000 (UTC) Received: by horse.redhat.com (Postfix, from userid 10451) id 295CE220992; Tue, 12 Feb 2019 13:57:25 -0500 (EST) Date: Tue, 12 Feb 2019 13:57:25 -0500 From: Vivek Goyal To: "Aneesh Kumar K.V" Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, miklos@szeredi.hu, stefanha@redhat.com, dgilbert@redhat.com, sweil@redhat.com, swhiteho@redhat.com Subject: Re: [PATCH 00/52] [RFC] virtio-fs: shared file system for virtual machines Message-ID: <20190212185725.GD6273@redhat.com> References: <20181210171318.16998-1-vgoyal@redhat.com> <871s4dc85b.fsf@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <871s4dc85b.fsf@linux.ibm.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Tue, 12 Feb 2019 18:57:29 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 12, 2019 at 09:26:48PM +0530, Aneesh Kumar K.V wrote: > Vivek Goyal writes: > > > Hi, > > > > Here are RFC patches for virtio-fs. Looking for feedback on this approach. > > > > These patches should apply on top of 4.20-rc5. We have also put code for > > various components here. > > > > https://gitlab.com/virtio-fs > > > > Problem Description > > =================== > > We want to be able to take a directory tree on the host and share it with > > guest[s]. Our goal is to be able to do it in a fast, consistent and secure > > manner. Our primary use case is kata containers, but it should be usable in > > other scenarios as well. > > > > Containers may rely on local file system semantics for shared volumes, > > read-write mounts that multiple containers access simultaneously. File > > system changes must be visible to other containers with the same consistency > > expected of a local file system, including mmap MAP_SHARED. > > > > Existing Solutions > > ================== > > We looked at existing solutions and virtio-9p already provides basic shared > > file system functionality although does not offer local file system semantics, > > causing some workloads and test suites to fail. > > Can you elaborate on this? Is this with 9p2000.L ? We did quiet a lot of > work to make sure posix test suite pass on 9p file system. Also > was the mount option with cache=loose? Hi Aneesh, Yes this is with 9p2000.L and cache=loose. I used following mount option. mount -t 9p -o trans=virtio hostShared /mnt/virtio-9p/ -oversion=9p2000.L,posixacl,cache=loose We noticed primarily two issues. - Ran pjdfstests and a lot of them are failing. I think even kata container folks also experienced pjdfstests failures. I have never looked into details of why it is failing. - We thought mmap(MAP_SHARED) will not work with virtio-9p when two clients are running in two different VMs and mapped same file with MAP_SHARED. Having said that, biggest concern with virtio-9p seems to be performance. We are looking for ways to improve performance with virtio-fs. Hoping DAX can provide faster data access and fuse protocol itself seems to be faster (in primilinary testing results). Thanks Vivek