lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 9 Apr 2010 12:01:04 +0900
From:	KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>
To:	Daisuke Nishimura <nishimura@....nes.nec.co.jp>
Cc:	"linux-mm@...ck.org" <linux-mm@...ck.org>,
	"akpm@...ux-foundation.org" <akpm@...ux-foundation.org>,
	"balbir@...ux.vnet.ibm.com" <balbir@...ux.vnet.ibm.com>,
	randy.dunlap@...cle.com,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] memcg: update documentation v3

On Fri, 9 Apr 2010 11:11:45 +0900
Daisuke Nishimura <nishimura@....nes.nec.co.jp> wrote:

> On Fri, 9 Apr 2010 10:45:56 +0900, KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com> wrote:
> > On Fri, 9 Apr 2010 10:26:26 +0900
> > Daisuke Nishimura <nishimura@....nes.nec.co.jp> wrote:
> > > > +Current Status: linux-2.6.34-mmotm(development version of 2010/April)
> > > > +
> > > > +Features:
> > > > + - accounting anonymous pages, file caches, swap caches usage and limit them.
> > > > + - private LRU and reclaim routine. (system's global LRU and private LRU
> > > > +   work independently from each other)
> > > > + - optionally, memory+swap usage can be accounted and limited.
> > > > + - hierarchical accounting
> > > > + - soft limit
> > > > + - moving(recharging) account at moving a task is selectable.
> > > > + - usage threshold notifier
> > > > + - oom-killer disable knob and oom-notifier
> > > > + - Root cgroup has no limit controls.
> > > > +
> > > > + Kernel memory and Hugepages are not under control yet. We just manage
> > > > + pages on LRU. To add more controls, we have to take care of performance.
> > > > +
> > > > +Brief summary of control files.
> > > > +
> > > > + tasks				 # attach a task(thread)
> > > > + cgroup.procs			 # attach a process(all threads under it)
> > > IIUC, writing to cgroup.procs isn't supported yet. So, I think we don't have to
> > > bother explaining cgroup.procs here.
> > > 
> > 
> > It's supported. See Documetaion/cgroup/cgroup.txt
> > IIRC, I use cgroup.procs file for migrating, sometimes.
> > 
> I can't write to it now.
> 
> # echo $$ >/cgroup/memory/01/cgroup.procs
> -bash: echo: write error: Invalid argument
> # ls -l /cgroup/memory/01/cgroup.procs
> -r--r--r-- 1 root root 0 2010-04-09 10:41 /cgroup/memory/01/cgroup.procs
> # uname -a
> Linux GibsonE 2.6.34-rc3-mm1-00432-g37c11f5 #1 SMP Thu Apr 8 11:03:39 JST 2010 x86_64 x86_64 x86_64 GNU/Linux
> 
> And kernel/cgroup.c says:
> 
>    3161         {
>    3162                 .name = CGROUP_FILE_GENERIC_PREFIX "procs",
>    3163                 .open = cgroup_procs_open,
>    3164                 /* .write_u64 = cgroup_procs_write, TODO */
>    3165                 .release = cgroup_pidlist_release,
>    3166                 .mode = S_IRUGO,
>    3167         },
> 
> IIRC, it's supported once, but the patch was dropped.
> 
Ouch....I have to fix (our internal) user manual, too.....


Thanks,
-Kame

--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ