mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Documentation:cgroups:fix a  command error in cpuacct.txt
@ 2011-07-08  5:24 Wanlong Gao
  2011-07-08 21:55 ` Paul Menage
  0 siblings, 1 reply; 3+ messages in thread
From: Wanlong Gao @ 2011-07-08  5:24 UTC (permalink / raw)
  To: Randy Dunlap, Paul Menage; +Cc: linux-doc, linux-kernel, Wanlong Gao

Must echo a task id to the cgroups' tasks file, but not to a directory.

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
---
 Documentation/cgroups/cpuacct.txt |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Documentation/cgroups/cpuacct.txt b/Documentation/cgroups/cpuacct.txt
index 9ad85df..9d73cc0 100644
--- a/Documentation/cgroups/cpuacct.txt
+++ b/Documentation/cgroups/cpuacct.txt
@@ -23,7 +23,7 @@ New accounting groups can be created under the parent group /sys/fs/cgroup.
 
 # cd /sys/fs/cgroup
 # mkdir g1
-# echo $$ > g1
+# echo $$ > g1/tasks
 
 The above steps create a new group g1 and move the current shell
 process (bash) into it. CPU time consumed by this bash and its children
-- 
1.7.6


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

* Re: [PATCH] Documentation:cgroups:fix a command error in cpuacct.txt
  2011-07-08  5:24 [PATCH] Documentation:cgroups:fix a command error in cpuacct.txt Wanlong Gao
@ 2011-07-08 21:55 ` Paul Menage
  2011-07-08 21:59   ` Randy Dunlap
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Menage @ 2011-07-08 21:55 UTC (permalink / raw)
  To: Wanlong Gao; +Cc: Randy Dunlap, linux-doc, linux-kernel

On Thu, Jul 7, 2011 at 10:24 PM, Wanlong Gao <gaowanlong@cn.fujitsu.com> wrote:
> Must echo a task id to the cgroups' tasks file, but not to a directory.
>
> Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>

Acked-by: Paul Menage <menage@google.com>

Thanks,
Paul

> ---
>  Documentation/cgroups/cpuacct.txt |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/Documentation/cgroups/cpuacct.txt b/Documentation/cgroups/cpuacct.txt
> index 9ad85df..9d73cc0 100644
> --- a/Documentation/cgroups/cpuacct.txt
> +++ b/Documentation/cgroups/cpuacct.txt
> @@ -23,7 +23,7 @@ New accounting groups can be created under the parent group /sys/fs/cgroup.
>
>  # cd /sys/fs/cgroup
>  # mkdir g1
> -# echo $$ > g1
> +# echo $$ > g1/tasks
>
>  The above steps create a new group g1 and move the current shell
>  process (bash) into it. CPU time consumed by this bash and its children
> --
> 1.7.6
>
>

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

* Re: [PATCH] Documentation:cgroups:fix a command error in cpuacct.txt
  2011-07-08 21:55 ` Paul Menage
@ 2011-07-08 21:59   ` Randy Dunlap
  0 siblings, 0 replies; 3+ messages in thread
From: Randy Dunlap @ 2011-07-08 21:59 UTC (permalink / raw)
  To: Paul Menage; +Cc: Wanlong Gao, linux-doc, linux-kernel

On Fri, 8 Jul 2011 14:55:22 -0700 Paul Menage wrote:

> On Thu, Jul 7, 2011 at 10:24 PM, Wanlong Gao <gaowanlong@cn.fujitsu.com> wrote:
> > Must echo a task id to the cgroups' tasks file, but not to a directory.
> >
> > Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
> 
> Acked-by: Paul Menage <menage@google.com>

Applied.

> Thanks,

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

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

end of thread, other threads:[~2011-07-08 21:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-08  5:24 [PATCH] Documentation:cgroups:fix a command error in cpuacct.txt Wanlong Gao
2011-07-08 21:55 ` Paul Menage
2011-07-08 21:59   ` Randy Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®