Date: Tue, 29 Sep 2020 11:28:12 -0400 From: Vivek Goyal Message-ID: <20200929152812.GF220516@redhat.com> References: <20200918213436.GA3520@redhat.com> <20200921153243.GK3221@work-vm> <20200922102531.GA2837@work-vm> <20200922174733.GD57620@redhat.com> <46D726A6-72F3-40FE-9382-A189513F783D@intel.com> <20200924221023.GB132653@redhat.com> <20200925124139.GJ2873@work-vm> <20200929131753.GB220516@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Virtio-fs] virtiofs vs 9p performance(Re: tools/virtiofs: Multi threading seems to hurt performance) List-Id: Development discussions about virtio-fs List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Miklos Szeredi Cc: "qemu-devel@nongnu.org" , "Venegas Munoz, Jose Carlos" , "cdupontd@redhat.com" , virtio-fs-list , "Shinde, Archana M" On Tue, Sep 29, 2020 at 03:49:04PM +0200, Miklos Szeredi wrote: > On Tue, Sep 29, 2020 at 3:18 PM Vivek Goyal wrote: > > > - virtiofs cache=none mode is faster than cache=auto mode for this > > workload. > > Not sure why. One cause could be that readahead is not perfect at > detecting the random pattern. Could we compare total I/O on the > server vs. total I/O by fio? Ran tests with auto_inval_data disabled and compared with other results. vtfs-auto-ex-randrw randrw-psync 27.8mb/9547kb 7136/2386 vtfs-auto-sh-randrw randrw-psync 43.3mb/14.4mb 10.8k/3709 vtfs-auto-sh-noinval randrw-psync 50.5mb/16.9mb 12.6k/4330 vtfs-none-sh-randrw randrw-psync 54.1mb/18.1mb 13.5k/4649 With auto_inval_data disabled, this time I saw around 20% performance jump in READ and is now much closer to cache=none performance. Thanks Vivek