Re: Don't benchmark with fio

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks all for your replies.

Maybe if you like it would be a good feature in fio to support this
type of needs :)

I have one more question about xfs_io, I don't know if it's a right
place but if it not I'm sorry. I have run xfs_io and gets this result:
100.000000 bytes, 1 ops; 0.0000 sec (1.514 MiB/sec and 15873.0159 ops/sec)
What is the 15873.0159 ops/sec? Did xfs_io really do 15873.0159 iops or 1iops?


On Fri, Apr 24, 2020 at 11:39 AM Yigal Korman <ykorman@xxxxxxxxx> wrote:
>
> On Fri, Apr 24, 2020 at 6:16 AM Damien Le Moal <Damien.LeMoal@xxxxxxx> wrote:
> >
> > On 2020/04/24 12:11, Damien Le Moal wrote:
> > > On 2020/04/23 23:41, Seena Fallah wrote:
> > >> Hi all.
> > >>
> > >> I'm trying to probe my file system with fio. I don't want to benchmark
> > >> my file system. The only thing I want do is to for example write 100K
> > >> file on a file system and then check how much IO does it take to write
> > >> and the bandwidth and the runtime.
> > >> The main thing I want is to just write that file size and don't bench on that.
> > >> Can anyone help me which ioengine or which args should I use to do this probe?
> > >>
> > >> Thanks.
> > >>
> > >
> > > dd if=/dev/zero of=/path/to/your/file/to/write bs=100K count=i conv=fsync
> > >
> >
> > Oops... Should be:
> >
> > dd if=/dev/zero of=/path/to/your/file/to/write bs=100K count=1 conv=fsync
> >
> > obviously for 100K :)
> >
> > You will get the write bandwidth with this. For knowing how many IOs this take,
> > you will need to trace the kernel IO stack (blktrace). No way to know this
> > exactly from user space, that is, if by "IO" you mean "storage device commands".
> > If by "IO" you mean "system calls", then with the above command, it will be
> > exactly 1 "write()" call (use strace to see it).
> >
> > --
> > Damien Le Moal
> > Western Digital Research
>
> Yeah, fio might not be the best tool for this purpose.
> As Damien said - 'dd' is a good alternative.
> You could also use the xfs_io tool.
> It's not really xfs related, it's a general i/o and filesystem operations tool.
> It's part of the xfsprogs package and most likely already installed on
> your host.
> Here's an example:
>
> xfs_io -c "pwrite 0 100" -f /path/to/file
>
> Writes 100 bytes at offset 0 to the file.
> It will give you some timing info and bandwidth stats.
>
> Yigal



[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux