Linux Container Development
 help / color / mirror / Atom feed
From: "Serge E. Hallyn" <serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
To: risrajak-xthvdsQ13ZrQT0dZR+AlfA@public.gmane.org
Cc: iranna.ankad-xthvdsQ13ZrQT0dZR+AlfA@public.gmane.org,
	containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org,
	sudhirkumarmalik-xthvdsQ13ZrQT0dZR+AlfA@public.gmane.org,
	dhavalgiani-xthvdsQ13ZrQT0dZR+AlfA@public.gmane.org
Subject: Re: [Testing CGROUP inside CONTAINER]: BUG#2
Date: Thu, 4 Dec 2008 10:52:21 -0600	[thread overview]
Message-ID: <20081204165220.GA11482@us.ibm.com> (raw)
In-Reply-To: <1228378480.4234.36.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>

Quoting Rishikesh K. Rajak (risrajak-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org):
>     -  Execute the following command inside container
>      delta:~ # mkdir /cpu
>      delta:~ # mount -t cgroup -ocpu cgroup /cpu
> 
>     -   delta:~ # umount /cpu
>         delta:~ # mount
>             ...
>             cgroup on /cpu type cgroup (rw,cpu)
>             cgroup on /cpu type cgroup (rw,cpu)
>             cgroup on /cpu type cgroup (rw,cpu)
>         delta:~ # umount /cpu
>             umount: cgroup: not found
>             umount: /cpu: not mounted
>             umount: cgroup: not found
>             umount: /cpu: not mounted
>             umount: cgroup: not found
>             umount: /cpu: not mounted
>             umount: cgroup: not found
>             umount: /cpu: not mounted

This really sounds to me like a bug in your mount and
umount commands.  When I do those steps in a container,
just typing 'mount' no longer shows /cpu mounted.

(If I had to guess at something, I'd say you have
/etc/mtab linked to /proc/mounts, and something with
that is going wrong, but it could be not that)

Check /proc/self/mounts before and after each step,
compare to /etc/mtab.

And try doing mount -n and umount -n.

-serge

      parent reply	other threads:[~2008-12-04 16:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-04  8:14 [Testing CGROUP inside CONTAINER]: BUG#2 Rishikesh K. Rajak
     [not found] ` <1228378480.4234.36.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2008-12-04 16:52   ` Serge E. Hallyn [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20081204165220.GA11482@us.ibm.com \
    --to=serue-r/jw6+rmf7hqt0dzr+alfa@public.gmane.org \
    --cc=containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
    --cc=dhavalgiani-xthvdsQ13ZrQT0dZR+AlfA@public.gmane.org \
    --cc=iranna.ankad-xthvdsQ13ZrQT0dZR+AlfA@public.gmane.org \
    --cc=risrajak-xthvdsQ13ZrQT0dZR+AlfA@public.gmane.org \
    --cc=sudhirkumarmalik-xthvdsQ13ZrQT0dZR+AlfA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox