LWN.net Logo

Interview with Lennart Poettering (LinuxFR.org)

Interview with Lennart Poettering (LinuxFR.org)

Posted Jul 6, 2011 16:08 UTC (Wed) by iabervon (subscriber, #722)
In reply to: Interview with Lennart Poettering (LinuxFR.org) by tialaramex
Parent article: Interview with Lennart Poettering (LinuxFR.org)

Actually, I think the most sensible thing to do would be to come up with a way to make init run systemd service units. One big advantage of systemd's format is that it is amenable to being parsed, rather than just executed with arguments; since it can examine what's supposed to be done, a wrapper using a systemd service unit (as the only service-specific part) ought to be able to work about as well as a custom init script. (The main lack being when there is some service-specific method that works for identifying children, which systemd would not need due to using cgroups, and which would therefore not be included in the unit.)


(Log in to post comments)

Interview with Lennart Poettering (LinuxFR.org)

Posted Jul 6, 2011 16:18 UTC (Wed) by nevets (subscriber, #11875) [Link]

This cgroups thing is what bothers me the most about systemd. It now makes my system require it. If I want to boot a kernel that does not support cgroups or just an older kernel, now my system wont even work. This alone is the one thing keeping me away from systemd.

Interview with Lennart Poettering (LinuxFR.org)

Posted Jul 6, 2011 17:25 UTC (Wed) by tuna (guest, #44480) [Link]

What is it that you are planning to do with systemd?

Interview with Lennart Poettering (LinuxFR.org)

Posted Jul 6, 2011 17:33 UTC (Wed) by nevets (subscriber, #11875) [Link]

Install it.

Interview with Lennart Poettering (LinuxFR.org)

Posted Jul 6, 2011 17:49 UTC (Wed) by zdzichu (subscriber, #17118) [Link]

So you will be relieved that cgroups aren't hard dependencies anymore. Systemd will complain and breakage can occur, but you can run some older kernels. But why would you like to not enable cgroups?

Interview with Lennart Poettering (LinuxFR.org)

Posted Jul 6, 2011 17:51 UTC (Wed) by dlang (✭ supporter ✭, #313) [Link]

because cgroups have a significant amount of overhead on the system right now, so unless I am doing something that needs cgroups, I don't enable them in the kernels that I compile (even the new ones)

Interview with Lennart Poettering (LinuxFR.org)

Posted Jul 6, 2011 18:34 UTC (Wed) by SEJeff (subscriber, #51588) [Link]

Just out of curiosity, can you link to any benchmarks or whatnot on the overhead of cgroups? I'm not saying they don't impact things, but am curious if this has actually be quantified using some synthetic benchmarks or whatnot.

Interview with Lennart Poettering (LinuxFR.org)

Posted Jul 6, 2011 19:02 UTC (Wed) by dlang (✭ supporter ✭, #313) [Link]

I think there have been a number of discussions recently (on the kernel list and on LWN that have talked about the overhead of cgroups (in part because they are bolted on rather than fully integrated.

I could be remembering things incorrectly.

but in any case, as a standard security best practice, if I don't need a feature I don't enable it. This also makes my systems more reliable as there is less code compiled in.

Interview with Lennart Poettering (LinuxFR.org)

Posted Jul 6, 2011 22:38 UTC (Wed) by mezcalero (subscriber, #45103) [Link]

systemd requires only the grouping part of cgroup, i.e. no controllers. The impact of some controllers might be high, but the basic grouping logic is barely measurable.

The people who complain the loudest tend to mix up cgroups with its controllers. I'd prefer if people could make the distinction there. But hey, if people were well informed they probably wouldn't whine that loud. Educated whining?

Interview with Lennart Poettering (LinuxFR.org)

Posted Jul 6, 2011 19:30 UTC (Wed) by michich (subscriber, #17902) [Link]

systemd wants a kernel with CONFIG_CGROUPS=y, but it does not care if you have the cgroups-aware scheduler (CONFIG_GROUP_SCHED) or any of the subsystems or resource controllers (they all have distinct kernel config options). I don't think the overhead from CONFIG_CGROUPS alone is significant.

Interview with Lennart Poettering (LinuxFR.org)

Posted Jul 6, 2011 20:31 UTC (Wed) by tuna (guest, #44480) [Link]

Well, systemd needs cgroups :)

Interview with Lennart Poettering (LinuxFR.org)

Posted Jul 6, 2011 20:33 UTC (Wed) by dlang (✭ supporter ✭, #313) [Link]

so that sounds like a reason to not use systemd to me.

especially if it's only requirement is that the kernel configure them, but that they don't actually do anything.

Interview with Lennart Poettering (LinuxFR.org)

Posted Jul 6, 2011 20:46 UTC (Wed) by raven667 (subscriber, #5198) [Link]

They do do something, the main thing systemd uses them for, which is to identify which processes are related to one another by name and to differentiate between multiple identical processes which belong to different named services.

Interview with Lennart Poettering (LinuxFR.org)

Posted Jul 6, 2011 20:53 UTC (Wed) by nevets (subscriber, #11875) [Link]

And that limits me to what kernels I can boot. As a kernel developer, I may not be the focus of Lennart's users, but it totally eliminates me from ever testing his work. If systemd requires that all my kernels must have CGROUPS enabled, then I can't use it. My job requires that I test various configurations, and !CGROUPS is one of them.

Cgroups are still rather new and hasn't matured yet to be something that I would push as a must have for a distro. There is a lot that I do not agree with Lennart, but its OK as long as I am not forced to use it. I'll stick to Fedora 13 for a long time (and Debian on my own computers).

I'm getting a strong feeling that I will soon be having a custom install on all my boxes (no systemd and no gnome3). Well, I may have one box (or partition) that has systemd for testing why it broke.

Interview with Lennart Poettering (LinuxFR.org)

Posted Jul 7, 2011 10:20 UTC (Thu) by rahulsundaram (subscriber, #21946) [Link]

As has been pointed several times, systemd doesn't require cgroups and will still boot just fine without it. It won't have all the features that take advantage of cgroups but that is expected.

Interview with Lennart Poettering (LinuxFR.org)

Posted Jul 7, 2011 11:56 UTC (Thu) by michich (subscriber, #17902) [Link]

I wouldn't say it runs just fine. It runs crippled. The only reason it does not crash immediately is to allow a kernel developer to see if his modified kernel still boots. Please don't use it for more than that. You would not get a good impression of systemd.

Interview with Lennart Poettering (LinuxFR.org)

Posted Jul 7, 2011 9:07 UTC (Thu) by Karellen (subscriber, #67644) [Link]

Agreed. I've thought it might be interesting to try to write a systemd-unit-file to init-shell-script "compiler".

Some systemd features won't necessarily be available, and the scripts might only work reliably for well-behaved daemons; but then, those features aren't available in current init scripts, and init scripts only work correctly with well-behaved daemons anyway.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds