[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20180116090809.GC4107@soda.linbit>
Date: Tue, 16 Jan 2018 10:08:09 +0100
From: Lars Ellenberg <lars.ellenberg@...bit.com>
To: Eric Wheeler <drbd-dev@...ts.ewheeler.net>
Cc: drbd-dev@...ts.linbit.com, Eric Wheeler <git@...ux.ewheeler.net>,
Eric Wheeler <drbd@...ux.ewheeler.net>,
Philipp Reisner <philipp.reisner@...bit.com>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] drbd: standardize kthread/workqueue thread naming to
include drbd minor number
On Mon, Jan 15, 2018 at 03:52:15PM -0800, Eric Wheeler wrote:
> From: Eric Wheeler <git@...ux.ewheeler.net>
>
> For DRBD resources with long names that start with the same prefix,
> it was difficult to find all process pids for that minor since names
> are truncated to the task_struct's comm field (16 bytes).
>
> This patch names all processes associated with a DRBD device as drbdN_*
> where N is the DRBD minor in the same ways that the drbdN_submit workqueue
> is named. Userspace tools can then lookup the name=>minor=>pid mapping
> and for all pids and use tools like chrt, ioprio, nice, add pids to
> cgroups, or for other useful purpose.
DRBD can do "multi volume" resources, which means most threads
are associated not with one, but with many minors.
"does not work just like that"
Lars
Powered by blists - more mailing lists