OpenVZ Forum


Home » Mailing lists » Devel » [PATCH 01/10] Containers(V10): Basic container framework
Re: [PATCH 01/10] Containers(V10): Basic container framework [message #13565 is a reply to message #13542] Wed, 30 May 2007 07:15 Go to previous messageGo to previous message
Andrew Morton is currently offline  Andrew Morton
Messages: 127
Registered: December 2005
Senior Member
On Tue, 29 May 2007 06:01:05 -0700 menage@google.com wrote:

> +For example, the following sequence of commands will setup a container
> +named "Charlie", containing just CPUs 2 and 3, and Memory Node 1,
> +and then start a subshell 'sh' in that container:
> +
> + mount -t container cpuset -ocpuset /dev/container
> + cd /dev/container
> + mkdir Charlie
> + cd Charlie
> + /bin/echo $$ > tasks
> + sh
> + # The subshell 'sh' is now running in container Charlie
> + # The next line should display '/Charlie'
> + cat /proc/self/container

Once this has been done, can tasks inside `Charlie' escape from it?

And what permissions are needed to expand the various allotments (if
that's the approved term) for `Charlie'?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: nptl perf bench and profiling with pidns patchsets
Next Topic: Proposed changes to the vz* specfiles.
Goto Forum:
  


Current Time: Tue Oct 08 12:36:08 GMT 2024

Total time taken to generate the page: 0.05457 seconds