Re: [systemd-devel] net stats per app

2011-08-24 Thread Lennart Poettering
On Thu, 25.08.11 02:43, Jeremy (belxjan...@gmail.com) wrote: > ControlGroupPersistant=yes for persistent runtime only statistics > ControlGroupPersistent=/ for persistent disk-backed > statistics? I don't think systemd should be involved in syncing to disk the data the kernel generates for cgrou

Re: [systemd-devel] net stats per app

2011-08-24 Thread Daniel Wagner
On 08/24/2011 04:19 PM, Gustavo Sverzut Barbieri wrote: A open question is how I get the whole thing persistent. So not each time when an application starts the counters begin at 0. My guts feeling systemd should take of this but I don't know if that is the right direction. Hmm, you could simpl

Re: [systemd-devel] net stats per app

2011-08-24 Thread Daniel Wagner
Hi Lennart, On 08/24/2011 03:42 PM, Lennart Poettering wrote: On Tue, 02.08.11 15:51, Daniel Wagner (w...@monom.org) wrote: So my thinking is, instead of using the uid driver trick, I could use cgroups for collecting the network traffic. At least from the sub module description it seems to be

Re: [systemd-devel] net stats per app

2011-08-24 Thread Jeremy
On Wed, 2011-08-24 at 11:19 -0300, Gustavo Sverzut Barbieri wrote: On Wed, Aug 24, 2011 at 10:42 AM, Lennart Poettering > wrote: > > On Tue, 02.08.11 15:51, Daniel Wagner (w...@monom.org) wrote: > > > >> So my thinking is, instead of using the uid driver trick, I could use > >> cgroups for collect

Re: [systemd-devel] net stats per app

2011-08-24 Thread Gustavo Sverzut Barbieri
On Wed, Aug 24, 2011 at 10:42 AM, Lennart Poettering wrote: > On Tue, 02.08.11 15:51, Daniel Wagner (w...@monom.org) wrote: > >> So my thinking is, instead of using the uid driver trick, I could use >> cgroups for collecting the network traffic. At least from the sub module >> description it seems

Re: [systemd-devel] net stats per app

2011-08-24 Thread Lennart Poettering
On Tue, 02.08.11 15:51, Daniel Wagner (w...@monom.org) wrote: > So my thinking is, instead of using the uid driver trick, I could use > cgroups for collecting the network traffic. At least from the sub module > description it seems to be the right spot to add a new statistic > interface. Yupp, th

[systemd-devel] net stats per app

2011-08-02 Thread Daniel Wagner
Hi, I would like to do network statistics per application. That is all traffic generated by an instance of an application through its sockets should be collected and stored persistently. There are a few sub problems to solve. Let's start with Android. They have added a driver [1] to Linux which c