Re: fio max blocksize

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

 



On 7/12/18 12:08 PM, Jeff Furlong wrote:
>> if/when we up the size I can just see someone raising an issue about how using fio with 16GByte blocks at an iodepth of 8 didn't work...
> Agreed.  But we already see folks today using bs=1MB, numjobs=512, and iodepth=1024 as a "test."  Folks just need to be aware of what IO they are really trying to do.
> 
>> Post the patch and we can take a look at it.
> Here's my partial patch.  I didn't (yet) change anything in blktrace.c, and the hack to parse.c is rough.  Also I have a few make warnings to resolve.

"rough" is one way to express it, "not doing at all what you think" would be
another :-)

> diff --git a/parse.c b/parse.c
> index 6261fca..fd08a60 100644
> --- a/parse.c
> +++ b/parse.c
> @@ -582,7 +582,7 @@ static int __handle_option(const struct fio_option *o, const char *ptr,
>  			return 1;
>  		}
>  
> -		if (o->maxval && ull > o->maxval) {
> +		if (o->maxval && ull > o->maxval && ((o->name!="bs") && (o->name!="ba"))) {

I'm guessing you do more python than C :-)

In any case, the real fix would be to make FIO_OPT_RANGE work on ull,
not unsignd ints. That one is trivial, the other block size related
options are worse since they are used by other options as well. Probably
the easiest to just introduce ULL versions of the ones used, and reuse
most of the code for that. Basically the unsigned int version should
just be a subset of the ull, with the min/max settings things would just
work out nicely.

-- 
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



[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