Flexible I/O Tester development
 help / color / mirror / Atom feed
From: Andreas Herrmann <aherrmann@suse.com>
To: Jens Axboe <axboe@kernel.dk>
Cc: "Elliott, Robert (Servers)" <elliott@hpe.com>,
	"fio@vger.kernel.org" <fio@vger.kernel.org>
Subject: Re: [PATCH 1/2] thread_options: Add cgroup_use_bfq
Date: Mon, 31 Aug 2020 08:07:08 +0200	[thread overview]
Message-ID: <20200831060708.GM6041@suselix> (raw)
In-Reply-To: <031cac45-076a-6e9a-ba5e-2af51ca3f095@kernel.dk>

On Fri, Aug 28, 2020 at 05:52:11PM -0600, Jens Axboe wrote:
> On 8/28/20 12:36 PM, Elliott, Robert (Servers) wrote:
> > 
> > 
> >> -----Original Message-----
> >> From: fio-owner@vger.kernel.org <fio-owner@vger.kernel.org> On Behalf
> >> Of Andreas Herrmann
> >> Sent: Friday, August 28, 2020 5:05 AM
> >> To: Jens Axboe <axboe@kernel.dk>
> >> Cc: fio@vger.kernel.org
> >> Subject: [PATCH 1/2] thread_options: Add cgroup_use_bfq
> >>
> > ...
> >> @@ -593,11 +594,13 @@ struct thread_options_pack {
> >>  	uint8_t profile[FIO_TOP_STR_MAX];
> >>
> >>  	/*
> >> -	 * blkio cgroup support
> >> +	 * (blk)io cgroup support
> >>  	 */
> >>  	uint8_t cgroup[FIO_TOP_STR_MAX];
> >>  	uint32_t cgroup_weight;
> >>  	uint32_t cgroup_nodelete;
> >> +	uint32_t cgroup_use_bfq;
> >> +	uint32_t padding;       /* remove when possible to maintain alignment */
> >>
> >>  	uint32_t uid;
> >>  	uint32_t gid;
> > 
> > Since the structure already has three pad fields:
> >         uint32_t pad;
> > 
> >         uint64_t size;
> > 	...
> >         uint32_t pad2;
> >         uint64_t rand_seed;
> > 	...
> >         uint32_t pad3;
> >         fio_fp64_t percentile_list[FIO_IO_U_LIST_MAX_LEN];
> > 
> > pad4 would seem like the natural name for another padding field, and
> > the comment doesn't seem necessary.
> 
> Also worth checking if you can actually remove padding when updating it,
> rather than adding more.

I think I can't remove padding due to
fio_fp64_t latency_percentile;
later in this struct.

> BTW, this is also missing a FIO_SERVER_VER increment, that's needed
> whenever thread_options are changed.

I overlooked that. I'll adapt my change.

-- 
Regards,
Andreas

SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer (HRB 36809, AG Nürnberg)



  parent reply	other threads:[~2020-08-31  6:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-28 10:02 [PATCH 0/2] cgroup: Enable weight tests with cgroup-v2 Andreas Herrmann
2020-08-28 10:04 ` [PATCH 1/2] thread_options: Add cgroup_use_bfq Andreas Herrmann
2020-08-28 18:36   ` Elliott, Robert (Servers)
2020-08-28 23:52     ` Jens Axboe
2020-08-29  2:14       ` Elliott, Robert (Servers)
2020-08-31  6:07       ` Andreas Herrmann [this message]
2020-08-31  6:03     ` Andreas Herrmann
2020-08-28 10:06 ` [PATCH 2/2] cgroup: Allow to use weights with cgroup-v2 Andreas Herrmann

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=20200831060708.GM6041@suselix \
    --to=aherrmann@suse.com \
    --cc=axboe@kernel.dk \
    --cc=elliott@hpe.com \
    --cc=fio@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox