[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <m2lisx3cpl.fsf@firstfloor.org>
Date: Thu, 06 Oct 2011 16:46:46 -0700
From: Andi Kleen <andi@...stfloor.org>
To: Kay Sievers <kay.sievers@...y.org>
Cc: linux-kernel@...r.kernel.org, lennart@...ttering.net,
harald@...hat.com, david@...ar.dk, greg@...ah.com
Subject: Re: A Plumber’s Wish List for Linux
Kay Sievers <kay.sievers@...y.org> writes:
>
> * allow changing argv[] of a process without mucking with environ[]:
> Something like setproctitle() or a prctl() would be ideal. Of course
> it
prctl(PR_SET_NAME, ...)
The only problem is that some programs still use argv[] and get the old
name, but at least it works in "top"
> * An auxiliary meta data message for AF_UNIX called SCM_CGROUPS (or
> something like that), i.e. a way to attach sender cgroup membership to
> messages sent via AF_UNIX.
The problem is: this requires a reference count and these reference
counts can be very expensive. We had the same problem with pid
namespaces ruining AF_UNIX performance in some cases.
It can be probably done, but one would need to be very careful
about scalability issues.
> * SCM_COMM, with a similar use case as SCM_CGROUPS. This auxiliary
> control message should carry the process name as available
> in /proc/$PID/comm.
That sounds super racy. No guarantee at all this is unique and useful
for anything and everyone can change it.
The other ideas mostly sound reasonable to me, but I haven't thought
a lot about their details and implications.
-Andi
--
ak@...ux.intel.com -- Speaking for myself only
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists