All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/1] netlink: Netlink process event for cgroup migration
@ 2026-04-07 17:23 Prakash Sangappa
  2026-04-07 17:23 ` [RFC PATCH 1/1] netlink: Add " Prakash Sangappa
  2026-04-08 12:54 ` [RFC PATCH 0/1] netlink: " Michal Koutný
  0 siblings, 2 replies; 7+ messages in thread
From: Prakash Sangappa @ 2026-04-07 17:23 UTC (permalink / raw)
  To: linux-kernel, netdev, cgroups
  Cc: davem, kuba, edumazet, tj, hannes, mkoutny, tom.hromatka,
	kamalesh.babulal, prakash.sangappa

With cgroup based resource management, it becomes useful for
userspace to be notified when a task changes cgroup membership.
Unexpected migrations can lead to incorrect resource accounting
and enforcement resulting in undesirable behavior or failures.
Applications/userspace have to poll /proc to detect changes to 
cgroup membership, which is inefficient when dealing with a large
number of tasks.

Add a new netlink proc connector event that gets generated when
a task migrates between cgroups. This allows applications/tools
to monitor cgroup membership changes without periodic polling. 

The netlink proc event will include task's pid/tgid, initiator
process pid/tgid and the cgroup id.  

Prakash Sangappa (1):
  netlink: Add Netlink process event for cgroup migration

 drivers/connector/cn_proc.c  | 28 ++++++++++++++++++++++++++++
 include/linux/cn_proc.h      |  3 +++
 include/uapi/linux/cn_proc.h | 14 ++++++++++++--
 kernel/cgroup/cgroup-v1.c    |  7 ++++++-
 kernel/cgroup/cgroup.c       |  5 ++++-
 5 files changed, 53 insertions(+), 4 deletions(-)

-- 
2.43.7


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-04-14  8:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-07 17:23 [RFC PATCH 0/1] netlink: Netlink process event for cgroup migration Prakash Sangappa
2026-04-07 17:23 ` [RFC PATCH 1/1] netlink: Add " Prakash Sangappa
2026-04-13 22:51   ` kernel test robot
2026-04-14  8:49   ` kernel test robot
2026-04-08 12:54 ` [RFC PATCH 0/1] netlink: " Michal Koutný
2026-04-09  3:44   ` Prakash Sangappa
2026-04-09 12:28   ` Christian Brauner

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.