From: Jens Axboe <axboe@kernel.dk>
To: Joseph Qi <joseph.qi@linux.alibaba.com>
Cc: io-uring <io-uring@vger.kernel.org>,
Xiaoguang Wang <xiaoguang.wang@linux.alibaba.com>
Subject: Re: [PATCH RESEND] io_uring: show sqthread pid and cpu in fdinfo
Date: Thu, 24 Sep 2020 13:49:29 -0600 [thread overview]
Message-ID: <6b67447d-122e-f68a-32fc-f36f51419449@kernel.dk> (raw)
In-Reply-To: <1600916124-19563-1-git-send-email-joseph.qi@linux.alibaba.com>
On 9/23/20 8:55 PM, Joseph Qi wrote:
> In most cases we'll specify IORING_SETUP_SQPOLL and run multiple
> io_uring instances in a host. Since all sqthreads are named
> "io_uring-sq", it's hard to distinguish the relations between
> application process and its io_uring sqthread.
> With this patch, application can get its corresponding sqthread pid
> and cpu through show_fdinfo.
> Steps:
> 1. Get io_uring fd first.
> $ ls -l /proc/<pid>/fd | grep -w io_uring
> 2. Then get io_uring instance related info, including corresponding
> sqthread pid and cpu.
> $ cat /proc/<pid>/fdinfo/<io_uring_fd>
Applied, thanks.
--
Jens Axboe
prev parent reply other threads:[~2020-09-24 19:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-24 2:55 [PATCH RESEND] io_uring: show sqthread pid and cpu in fdinfo Joseph Qi
2020-09-24 10:04 ` Stefano Garzarella
2020-09-24 19:49 ` Jens Axboe [this message]
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=6b67447d-122e-f68a-32fc-f36f51419449@kernel.dk \
--to=axboe@kernel.dk \
--cc=io-uring@vger.kernel.org \
--cc=joseph.qi@linux.alibaba.com \
--cc=xiaoguang.wang@linux.alibaba.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox