Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1686102
| From | Jens Axboe <axboe@kernel.dk> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH V5 00/11] blktrace: output cgroup info |
| Date | 2017-07-13 01:00 +0200 |
| Message-ID | <u2yLU-5QV-15@gated-at.bofh.it> (permalink) |
| References | <u2v1D-3rs-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 07/12/2017 12:49 PM, Shaohua Li wrote: > From: Shaohua Li <shli@fb.com> > > Hi, > > Currently blktrace isn't cgroup aware. blktrace prints out task name of current > context, but the task of current context isn't always in the cgroup where the > BIO comes from. We can't use task name to find out IO cgroup. For example, > Writeback BIOs always comes from flusher thread but the BIOs are for different > blk cgroups. Request could be requeued and dispatched from completely different > tasks. MD/DM are another examples. This brings challenges if we want to use > blktrace for performance tunning with cgroup enabled. > > This patchset try to fix the gap. We print out cgroup fhandle info in blktrace. > Userspace can use open_by_handle_at() syscall to find the cgroup by fhandle. Or > userspace can use name_to_handle_at() syscall to find fhandle for a cgroup and > use a BPF program to filter out blktrace for a specific cgroup. > > The first 6 patches adds export operation handlers for kernfs, so userspace can > use open_by_handle_at/name_to_handle_at to a kernfs file. Later patches make > blktrace output cgroup info. Added for 4.14, thanks Shaohua. -- Jens Axboe
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH V5 00/11] blktrace: output cgroup info Shaohua Li <shli@kernel.org> - 2017-07-12 21:00 +0200 [PATCH V5 11/11] block: use standard blktrace API to output cgroup info for debug notes Shaohua Li <shli@kernel.org> - 2017-07-12 21:00 +0200 [PATCH V5 07/11] cgroup: export fhandle info for a cgroup Shaohua Li <shli@kernel.org> - 2017-07-12 21:00 +0200 [PATCH V5 10/11] blktrace: add an option to allow displaying cgroup path Shaohua Li <shli@kernel.org> - 2017-07-12 21:00 +0200 [PATCH V5 08/11] blktrace: export cgroup info in trace Shaohua Li <shli@kernel.org> - 2017-07-12 21:00 +0200 [PATCH V5 02/11] kernfs: implement i_generation Shaohua Li <shli@kernel.org> - 2017-07-12 21:00 +0200 [PATCH V5 06/11] kernfs: add exportfs operations Shaohua Li <shli@kernel.org> - 2017-07-12 21:00 +0200 [PATCH V5 09/11] block: always attach cgroup info into bio Shaohua Li <shli@kernel.org> - 2017-07-12 21:00 +0200 [PATCH V5 05/11] kernfs: introduce kernfs_node_id Shaohua Li <shli@kernel.org> - 2017-07-12 21:00 +0200 [PATCH V5 04/11] kernfs: don't set dentry->d_fsdata Shaohua Li <shli@kernel.org> - 2017-07-12 21:00 +0200 [PATCH V5 03/11] kernfs: add an API to get kernfs node from inode number Shaohua Li <shli@kernel.org> - 2017-07-12 21:00 +0200 [PATCH V5 01/11] kernfs: use idr instead of ida to manage inode number Shaohua Li <shli@kernel.org> - 2017-07-12 21:00 +0200 Re: [PATCH V5 00/11] blktrace: output cgroup info Jens Axboe <axboe@kernel.dk> - 2017-07-13 01:00 +0200
csiph-web