Re: Attaching a process to cgroups

2012-08-10 Thread Alexey Vlasov
On Wed, Aug 08, 2012 at 09:51:29AM -0700, Paul E. McKenney wrote: > On Wed, Aug 08, 2012 at 08:40:33PM +0400, Alexey Vlasov wrote: > > > > In general I've changed it to synchronize_rcu_expedited () and all the > > delays have gone both on writing and reading files from cgroups. > > Is the

Re: Attaching a process to cgroups

2012-08-10 Thread Alexey Vlasov
On Wed, Aug 08, 2012 at 09:51:29AM -0700, Paul E. McKenney wrote: On Wed, Aug 08, 2012 at 08:40:33PM +0400, Alexey Vlasov wrote: In general I've changed it to synchronize_rcu_expedited () and all the delays have gone both on writing and reading files from cgroups. Is the writing and

Re: Attaching a process to cgroups

2012-08-08 Thread Paul E. McKenney
On Wed, Aug 08, 2012 at 08:40:33PM +0400, Alexey Vlasov wrote: > On Wed, Jul 25, 2012 at 03:57:47PM +0200, Mike Galbraith wrote: > > > Hanging on read(): > > > > > > # strace -ttT cat /proc/cgroups > > > > > > 17:30:43.825005 fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 13), > > >

Re: Attaching a process to cgroups

2012-08-08 Thread Alexey Vlasov
On Wed, Jul 25, 2012 at 03:57:47PM +0200, Mike Galbraith wrote: > > Hanging on read(): > > > > # strace -ttT cat /proc/cgroups > > > > 17:30:43.825005 fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 13), > > ...}) = 0 <0.05> > > 17:30:43.825048 open("/proc/cgroups", O_RDONLY) = 3

Re: Attaching a process to cgroups

2012-08-08 Thread Alexey Vlasov
On Wed, Jul 25, 2012 at 03:57:47PM +0200, Mike Galbraith wrote: Hanging on read(): # strace -ttT cat /proc/cgroups 17:30:43.825005 fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 13), ...}) = 0 0.05 17:30:43.825048 open(/proc/cgroups, O_RDONLY) = 3 0.14

Re: Attaching a process to cgroups

2012-08-08 Thread Paul E. McKenney
On Wed, Aug 08, 2012 at 08:40:33PM +0400, Alexey Vlasov wrote: On Wed, Jul 25, 2012 at 03:57:47PM +0200, Mike Galbraith wrote: Hanging on read(): # strace -ttT cat /proc/cgroups 17:30:43.825005 fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 13), ...}) = 0 0.05

Re: Attaching a process to cgroups

2012-07-26 Thread Mike Galbraith
On Thu, 2012-07-26 at 17:02 +0400, Alexey Vlasov wrote: > On Wed, Jul 25, 2012 at 03:57:47PM +0200, Mike Galbraith wrote: > > > > I'd profile it with perf, and expect to find a large pile of cycles. > > I did it the as following: > # perf stat cat /proc/self/cgroup > > 4:blkio:/ > 3:devices:/

Re: Attaching a process to cgroups

2012-07-26 Thread Alexey Vlasov
On Wed, Jul 25, 2012 at 03:57:47PM +0200, Mike Galbraith wrote: > > I'd profile it with perf, and expect to find a large pile of cycles. I did it the as following: # perf stat cat /proc/self/cgroup 4:blkio:/ 3:devices:/ 2:memory:/ 1:cpuacct:/ Performance counter stats for 'cat

Re: Attaching a process to cgroups

2012-07-26 Thread Alexey Vlasov
On Wed, Jul 25, 2012 at 03:57:47PM +0200, Mike Galbraith wrote: I'd profile it with perf, and expect to find a large pile of cycles. I did it the as following: # perf stat cat /proc/self/cgroup 4:blkio:/ 3:devices:/ 2:memory:/ 1:cpuacct:/ Performance counter stats for 'cat

Re: Attaching a process to cgroups

2012-07-26 Thread Mike Galbraith
On Thu, 2012-07-26 at 17:02 +0400, Alexey Vlasov wrote: On Wed, Jul 25, 2012 at 03:57:47PM +0200, Mike Galbraith wrote: I'd profile it with perf, and expect to find a large pile of cycles. I did it the as following: # perf stat cat /proc/self/cgroup 4:blkio:/ 3:devices:/

Re: Attaching a process to cgroups

2012-07-25 Thread Mike Galbraith
On Wed, 2012-07-25 at 17:36 +0400, Alexey Vlasov wrote: > Hi. > > Now I've got almost 5k used groups and it got even worse. Now I've got > almost 5k used groups and it got even worse. > > If only write was working slower, now everything connected with cgroups > is hardly working. > > Could it

Re: Attaching a process to cgroups

2012-07-25 Thread Alexey Vlasov
Hi. Now I've got almost 5k used groups and it got even worse. Now I've got almost 5k used groups and it got even worse. If only write was working slower, now everything connected with cgroups is hardly working. Could it be connected with synchronize_rcu()? Hanging on read(): # strace -ttT cat

Re: Attaching a process to cgroups

2012-07-25 Thread Alexey Vlasov
Hi. Now I've got almost 5k used groups and it got even worse. Now I've got almost 5k used groups and it got even worse. If only write was working slower, now everything connected with cgroups is hardly working. Could it be connected with synchronize_rcu()? Hanging on read(): # strace -ttT cat

Re: Attaching a process to cgroups

2012-07-25 Thread Mike Galbraith
On Wed, 2012-07-25 at 17:36 +0400, Alexey Vlasov wrote: Hi. Now I've got almost 5k used groups and it got even worse. Now I've got almost 5k used groups and it got even worse. If only write was working slower, now everything connected with cgroups is hardly working. Could it be

Re: Attaching a process to cgroups

2012-07-23 Thread Mike Galbraith
On Mon, 2012-07-23 at 22:41 +0200, Andrea Righi wrote: > On Thu, Jun 21, 2012 at 10:23:02AM +0200, Mike Galbraith wrote: > > On Thu, 2012-06-21 at 11:54 +0400, Alexey Vlasov wrote: > > > On Wed, Jun 20, 2012 at 02:28:18PM +0200, Mike Galbraith wrote: > > > > > > > >

Re: Attaching a process to cgroups

2012-07-23 Thread Andrea Righi
On Thu, Jun 21, 2012 at 10:23:02AM +0200, Mike Galbraith wrote: > On Thu, 2012-06-21 at 11:54 +0400, Alexey Vlasov wrote: > > On Wed, Jun 20, 2012 at 02:28:18PM +0200, Mike Galbraith wrote: > > > > > > kernel/cgroup.c::cgroup_attach_task() > > > { > > > ... > > > synchronize_rcu(); > > > ... >

Re: Attaching a process to cgroups

2012-07-23 Thread Andrea Righi
On Thu, Jun 21, 2012 at 10:23:02AM +0200, Mike Galbraith wrote: On Thu, 2012-06-21 at 11:54 +0400, Alexey Vlasov wrote: On Wed, Jun 20, 2012 at 02:28:18PM +0200, Mike Galbraith wrote: kernel/cgroup.c::cgroup_attach_task() { ... synchronize_rcu(); ... } So nothing

Re: Attaching a process to cgroups

2012-07-23 Thread Mike Galbraith
On Mon, 2012-07-23 at 22:41 +0200, Andrea Righi wrote: On Thu, Jun 21, 2012 at 10:23:02AM +0200, Mike Galbraith wrote: On Thu, 2012-06-21 at 11:54 +0400, Alexey Vlasov wrote: On Wed, Jun 20, 2012 at 02:28:18PM +0200, Mike Galbraith wrote: kernel/cgroup.c::cgroup_attach_task()