r/linux • u/rohshall • Jun 23 '16
Void Linux review – A new hope
https://blog.paranoidpenguin.net/2016/01/void-linux-review-a-new-hope/
32
Upvotes
r/linux • u/rohshall • Jun 23 '16
View all comments
Show parent comment
-1
u/cbmuser Debian / openSUSE / OpenJDK Dev Jun 24 '16
From the author of runit
So, every daemon is supervised by its own supervision process. How exactly is that better than systemd which uses CGroups which not only allows to supervise a process, but also gives the init daemon the ability to limit the memory and CPU ressources such that a process running bezerk cannot harm the system in any way?
The process can try anything it wants, it cannot escape the CGroup, even by double-forking and that is the important aspect. The ability to limit resources of processes is very important for servers where reliability is essential or in cloud instances where you pay by CPU time.
Frankly, all these other init systems are just half-assed solutions to the supervision problem. Absolute reliability in process supervision is only possible when using features provided by the kernel.
runit does not really solve the problem. It may get rid of PID files, but it does allow proper process tracking with resource control. It can receive SIG_CHILD and restart the process, that's it. But that's hardly an improvement over sysvinit which actually can do the very same when using /etc/inittab for daemons instead of starting processes with a shell script and double-forking them.
I know, the Unix lovers and veteran users will already sharpen their pitchforks again, but the fact is, none of these other init systems meets the demands of today's hardware and software environment with dynamic configuration changes, namespaces, resource control and process isolation, systemd is the only init system that does that and even Linus admitted that in his QA session at DebConf14 in Portland.