All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nikolay Borisov <kernel-6AxghH7DbtA@public.gmane.org>
To: Guang Yang <guangyy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: throttle IO to multiple devices in one group
Date: Fri, 9 Sep 2016 09:29:29 +0300	[thread overview]
Message-ID: <57D256C9.60901@kyup.com> (raw)
In-Reply-To: <CAKtk8he8kEpbnnDL80LpigDZk-KyU6_o99D+k4iNWiUQ1AeOLQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>



On 09/09/2016 02:32 AM, Guang Yang wrote:
> Hello,
> We are evaluating to use cgroups to isolate different applications on
> Linux. One use case of our application is that it reads/writes to
> multiple block devices and we would like throttle the IO for each
> application to each devices via blkio.throttle.read_iops_device.
> However, it looks like each group can only configure one device.
> 
> Am I miss anything? Is there a way to support such semantic - limit
> the number of reads to multiple devices within one group?
> 
> Thanks very much.
> --
> To unsubscribe from this list: send the line "unsubscribe cgroups" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


[root@kernighan c11]# cat blkio.throttle.read_bps_device 
[root@kernighan c11]# echo "253:12 1600000" > blkio.throttle.read_bps_device
[root@kernighan c11]# echo "253:13 1600000" >> blkio.throttle.read_bps_device
[root@kernighan c11]# cat blkio.throttle.read_bps_device
253:13 1600000
253:12 1600000


It works just fine (this is on 4.4 kernel though)

Regards, 
Nikolay 

  parent reply	other threads:[~2016-09-09  6:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-08 23:32 throttle IO to multiple devices in one group Guang Yang
     [not found] ` <CAKtk8he8kEpbnnDL80LpigDZk-KyU6_o99D+k4iNWiUQ1AeOLQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-09-09  6:29   ` Nikolay Borisov [this message]
     [not found]     ` <57D256C9.60901-6AxghH7DbtA@public.gmane.org>
2016-09-12 22:11       ` Guang Yang

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=57D256C9.60901@kyup.com \
    --to=kernel-6axghh7dbta@public.gmane.org \
    --cc=cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=guangyy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.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 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.