Nikolaus Rath
2022-Apr-24 17:44 UTC
[Libguestfs] nbdkit: determining block size distribution
Hello, I want to find out the request size distribution of NBD read, write, and trim requests for a given workload. Background is that I want to figure out the ideal block size for the backing storage used my an nbdkit plugin. It seems to me that the best way to get this information would be to write an appropriate nbdkit filter, but I was surprised that the stats filter output is rather rudimentary. Would patches be accepted to add block size histograms? Or is there a better way to do this? Best, -Nikolaus -- GPG Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F ?Time flies like an arrow, fruit flies like a Banana.? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libguestfs/attachments/20220424/aeba6289/attachment.htm>
Richard W.M. Jones
2022-Apr-25 07:54 UTC
[Libguestfs] nbdkit: determining block size distribution
On Sun, Apr 24, 2022 at 06:44:04PM +0100, Nikolaus Rath wrote:> Hello, > > I want to find out the request size distribution of NBD read, write, > and trim requests for a given workload. Background is that I want to > figure out the ideal block size for the backing storage used my an > nbdkit plugin. > > It seems to me that the best way to get this information would be to > write an appropriate nbdkit filter, but I was surprised that the > stats filter output is rather rudimentary. > > Would patches be accepted to add block size histograms? Or is there > a better way to do this?Sounds like a good idea to extend the stats filter. It already prints some summary lines, so it could print a histogram of block sizes encountered too. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org