From: Julio Faracco <jcfaracco@gmail.com>
To: Kernel Newbies <Kernelnewbies@kernelnewbies.org>
Subject: How to add a block into blkio.throttle.io_service*?
Date: Sun, 24 Nov 2019 13:43:29 -0200 [thread overview]
Message-ID: <CAENf94KKbLPXD7UcW1UVfiugqOHPVq=RV8susAjdY865nWQokg@mail.gmail.com> (raw)
Hi everybody,
I'm having some problems to understand how to add a block device into
blkio.throttle.* . Being more specific, I cannot see my block listed
into blkio.throttle.io_serviced.
An example... I'm running docker with a loopback device attached:
$ docker run -ti --device=/dev/loop16:/dev/loop16 fedora:latest bash
I can see it listed and included:
$ cat /sys/fs/cgroup/blkio/docker/2db640bc7bb28a3b6bf83dd7b7c0f146b4433e3ed5dfa6899f8498f9a19c52c5/blkio.throttle.io_serviced
7:16 Read 34
7:16 Write 0
7:16 Sync 34
7:16 Async 0
7:16 Discard 0
7:16 Total 34
8:0 Read 417
8:0 Write 0
8:0 Sync 417
8:0 Async 0
8:0 Discard 0
8:0 Total 417
Total 451
But how can I add it properly into my cgroup path?
I know that you need to enable block into that cgroup. But it is not
working for me. It works if I reset blkio.throttle.write_bps_device
and other fields:
# echo 0 > /sys/fs/cgroup/blkio/mypath/blkio.throttle.write_bps_device
I don't know if it is right. Does anyone know how to do it properly?
Thanks!
--
Julio Cesar Faracco
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
reply other threads:[~2019-11-24 15:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='CAENf94KKbLPXD7UcW1UVfiugqOHPVq=RV8susAjdY865nWQokg@mail.gmail.com' \
--to=jcfaracco@gmail.com \
--cc=Kernelnewbies@kernelnewbies.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;
as well as URLs for NNTP newsgroup(s).