On 2011-01-28 23:34, Stefano Doni wrote: > Hi Jens, > > First of all many thanks for this great tool! > > > I wanted to test the performance of a samba network share with fio, > file server access pattern. > > I can execute it on a local directory without any issue. Too bad, that > is not the case when I run fio on a directory mounted from a samba > share. > > I get this error: > > > ste@ubuntu:~/.gvfs/fio on localhost$ ~/Downloads/fio-1.50/fio > ~/iometer-file-access-server.ro --timeout=120 > iometer: (g=0): rw=randread, bs=512-64K/512-64K, ioengine=sync, iodepth=64 > fio 1.50 > Starting 1 process > fio: pid=4999, err=22/file:filesetup.c:495, func=open(iometer.1.0), > error=Invalid argument > > > Run status group 0 (all jobs): > > > I even tried to use a normal sync engine, but the error is still there. It looks like O_DIRECT is not supported for CIFS, since it fails on the open. It will probably work if you change the direct=1 to direct=0 in the job file you use. -- Jens Axboe -- To unsubscribe from this list: send the line "unsubscribe fio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html