Hi Gnana, On 4 January 2018 at 04:10, Gnana Sekhar <kgsgnana2020@xxxxxxxxx> wrote: > > Thanks for the response. That's the exact command I am using in the > script to get sector size and multiply sector size with no. of sectors > to get the size in Bytes. > The size in Bytes is passed to the FIO in --size parameter > > I wasn't sure if FIO has an option to pass in the LBA count as > parameter so that the above logic can be skipped Ah I understand now. No fio doesn't have generic code to deduce the underlying LBA size of a block device (although certain ioengines such as sg find it out for themselves for other purposes). Personally, I've found it's not easy to find out the block size a filesystem is using which would make such a feature less useful since fio works on files as well as block devices. Further if you actually need to do arithmetic with the value then it's nicer to do all of that upfront and no later than parsing time so doing it outside of fio as you are doing seems preferable... -- Sitsofe | http://sucs.org/~sits/ -- 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