All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Bottomley <James.Bottomley-d9PhHud1JfjCXq6kfMZ53/egYHeGw8Jk@public.gmane.org>
To: "Rosen,
	Rami" <rami.rosen-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
	Ma Shimiao
	<mashimiao.fnst-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>,
	Zefan Li <lizefan-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
Cc: "cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	"tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org"
	<tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Subject: Re: question about cgroupv2
Date: Sun, 26 Jun 2016 18:42:49 -0700	[thread overview]
Message-ID: <1466991769.2241.28.camel@HansenPartnership.com> (raw)
In-Reply-To: <9B0331B6EBBD0E4684FBFAEDA55776F92CD6983C-cNwSTNrqBuVnIh7sxsoRyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>

On Tue, 2016-06-21 at 07:38 +0000, Rosen, Rami wrote:
> Hi, Ma,
> 
> > Ah, it seems work, but I'm not sure.
> 
> > > Then, I executed:
> > > # mount -t cgroup2 none /mnt
> 
> It should work. The thing is, according to my trials from the past, 
> it could be that systemd triggers mounting of cgroup V1 controllers. 
> When I made trials with cgroup v2, eventually I turned on to disros 
> which do not run systemd (namely, it was Ubuntu. You can set Ubuntu 
> not to use systemd, even in most recent Ubuntu systems, where systemd 
> became the default).

This is the right answer.   I've spent ages trying to figure out how to
do it on my openSUSE laptop because I actually want to demo the v2 API.
 However, it seems to be impossible.  You can't prevent systemd from
mounting the v1 hierarchies and that means you can't get v2 ones
running.  The only real way to do it on a modern laptop is to use a
virtual machine (sadly you can't use a container because systemd has
already contaminated the host kernel).  I tend to use debian because
they have an installation procedure for dumping systemd:

http://without-systemd.org/wiki/index.php/How_to_remove_systemd_from_a_Debian_jessie/sid_installation

But I suppose this systemdless Devuan distribution might do as well
(not tried it):

https://www.devuan.org/

James

  parent reply	other threads:[~2016-06-27  1:42 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-18  2:11 question about cgroupv2 Ma Shimiao
     [not found] ` <5764ADC5.20205-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2016-06-20 18:19   ` Tejun Heo
     [not found]     ` <20160620181929.GN3262-qYNAdHglDFBN0TnZuCh8vA@public.gmane.org>
2016-06-21  3:10       ` Ma Shimiao
2016-06-21  5:41   ` Zefan Li
     [not found]     ` <5768D36D.3060606-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2016-06-21  6:04       ` Ma Shimiao
     [not found]         ` <5768D8F5.1060107-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2016-06-21  7:38           ` Rosen, Rami
     [not found]             ` <9B0331B6EBBD0E4684FBFAEDA55776F92CD6983C-cNwSTNrqBuVnIh7sxsoRyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2016-06-21  8:34               ` Ma Shimiao
     [not found]                 ` <5768FBF8.2060100-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org>
2016-06-22  0:44                   ` Zefan Li
     [not found]                     ` <5769DF64.1040406-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2016-06-22  7:13                       ` Rosen, Rami
     [not found]                         ` <9B0331B6EBBD0E4684FBFAEDA55776F92CD6A674-cNwSTNrqBuVnIh7sxsoRyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2016-06-22 15:36                           ` tj-DgEjT+Ai2ygdnm+yROfE0A
2016-06-27  1:42               ` James Bottomley [this message]
     [not found]                 ` <1466991769.2241.28.camel-d9PhHud1JfjCXq6kfMZ53/egYHeGw8Jk@public.gmane.org>
2016-06-27  8:22                   ` Ma Shimiao
2016-06-28 16:45                   ` tj-DgEjT+Ai2ygdnm+yROfE0A

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=1466991769.2241.28.camel@HansenPartnership.com \
    --to=james.bottomley-d9phhud1jfjcxq6kfmz53/egyhegw8jk@public.gmane.org \
    --cc=cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=lizefan-hv44wF8Li93QT0dZR+AlfA@public.gmane.org \
    --cc=mashimiao.fnst-BthXqXjhjHXQFUHtdCDX3A@public.gmane.org \
    --cc=rami.rosen-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=tj-DgEjT+Ai2ygdnm+yROfE0A@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.