All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: Jeff Furlong <jeff.furlong@wdc.com>,
	"fio@vger.kernel.org" <fio@vger.kernel.org>
Subject: Re: fio max blocksize
Date: Thu, 12 Jul 2018 12:20:38 -0600	[thread overview]
Message-ID: <4c57a31e-7955-d0b2-ed27-9d494f090651@kernel.dk> (raw)
In-Reply-To: <MWHPR04MB0320E4A6307D8C818D3666418F590@MWHPR04MB0320.namprd04.prod.outlook.com>

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



  reply	other threads:[~2018-07-12 18:20 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-06 21:15 fio max blocksize Jeff Furlong
2018-07-07  4:43 ` Sitsofe Wheeler
2018-07-12 17:15 ` Jens Axboe
2018-07-12 18:08   ` Jeff Furlong
2018-07-12 18:20     ` Jens Axboe [this message]
2018-07-12 19:11       ` Jeff Furlong
2018-07-12 19:38         ` Jens Axboe
2018-07-12 22:13           ` Jeff Furlong
2018-07-12 22:33             ` Jens Axboe
2018-07-12 22:47               ` Jeff Furlong
2018-07-12 22:49                 ` Jens Axboe
2018-07-13  0:07             ` Elliott, Robert (Persistent Memory)
2018-07-13 17:46               ` Jeff Furlong
2018-07-13 23:59                 ` Jeff Furlong
2018-07-14  3:05                   ` Jens Axboe
2018-07-17 21:38                     ` Jeff Furlong
2018-07-23 15:17                       ` Jens Axboe
2018-07-23 16:33                         ` Jeff Furlong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4c57a31e-7955-d0b2-ed27-9d494f090651@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=fio@vger.kernel.org \
    --cc=jeff.furlong@wdc.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.