News for hackers. Stuff that matters.
Re:Interview: Lennart Poettering by fsniper on Friday January 16, 2015 @09:38AM (#8899116)
I'm not sure if he is really clueless or just trying to flame wars.
Re:Interview: Lennart Poettering by dinergy on Friday January 16, 2015 @10:07AM (#8899282)
i honestly think he believes his stance is the only correct one. you can see it in the way he answered the questions.

the bit where he picks apart upstart, gentoo, etc., are nothing more than callous, myopic opinions yet he answers them with cheerful conviction.

technical arguments can be made for or against any piece of code. but, he dismisses other projects with a wave of his hand firmly stating that systemd is the "only" correct evolution.

i'm am neutral on systemd. do i think the old init system(s) are the right way? not really. do i think systemd is the right way? not really. would i be fine with systemd in the future? perhaps. would i be fine with another bit of code? perhaps.

but to dismiss the concerns of a large number of community members, to neglect or downright deny bugs and issues, to shoehorn a project into _everything_ while closing your ears to everyone else, these are my issues with the project.

if it works, great. but at least open your eyes and ears and work with everyone.

i migrated my home kit to freebsd from debian because i was having errors. failed boots. crashes. config problems. and i didn't have a decade of old crusty init scripts to begin with.

what used to be rock solid on my hardware became annoying to deal with.

i'm all for change and evolution in software/systems and i don't personally have a problem with poettering or what he is trying to do, but he's doing it in a piss poor way.

Re:Interview: Lennart Poettering by XorNot on Friday January 16, 2015 @10:12AM (#8899322)
I don't get how an opinion like this:

"...to make it clear, I think Upstart actually has its benefits. The source code is very, very nice, and it’s very simple, but I think it’s too simple. It doesn’t have this engine that can figure out what the computer is supposed to be doing."

is callous and myopic?

Re:Interview: Lennart Poettering by digi_owl on Friday January 16, 2015 @10:15AM (#8899341)
I find myself wondering why the init is supposed to figure out what the computer is to be doing. That kind of "automagical" behavior is what drove me bonkers when trying to use Windows for more than a games console...
Re:Interview: Lennart Poettering by pachydermic on Friday January 16, 2015 @10:32AM (#8899471)
I dunno. If it's able to do what you want automatically that's amazing. If I can just plug the printer in and have it work that's amazing. If I can turn the wireless on my laptop on and it works that's amazing. And so on.

The problems arise when it doesn't automatically do what you want it to do and you don't have a good way of fixing it yourself. I'm not in a position to understand init systems so I will be in this camp if there's ever any problem with any init system. What matters to me, as the end user, is how likely it is to work automatically.

If systemd 'just works', then what's the problem? If systemd is broken... well, that's a problem, isn't it. But from what I've seen a lot (though not all, of course) of the arguments against it are highly political/philosophical and aren't based on whether it's actually working or not.

Re:Interview: Lennart Poettering by vezzy-fnord on Friday January 16, 2015 @10:45AM (#8899585)
Hotplug isn't the job of systemd to begin with, though. It's the job of the device manager, which on Linux is usually udev (but alternatives like eudev, mdev, smdev and vdev exist) - udev being a part of the systemd repository and to an extent coupled with it (which will become complete when kdbus is merged into mainline Linux), however it's still a rather distinct piece of software that maintains the hardware database and listens to kernel uevents.

So if your init system is handling hotplug events, then that's some bad design. systemd doesn't stoop that low, though it still has plenty of mistakes - like putting the INI parser in PID1. As an example, even Apple put launchd's XML parser as a separate process!

Re:Interview: Lennart Poettering by digi_owl on Friday January 16, 2015 @12:53PM (#8900375)
There is tight interaction between udev and systemd. Heck, udev was folded into the systemd code (you find it now as a sub-dir of the systemd source tree over at freedesktop.org) because they didn't want code duplication...

This after having udev exist as a independent project for a decade.

These days the only way to download and install udev manually is to download the whole of systemd and then extract udev from that. Something that caused Gentoo to fork udev into eudev.

Re:Interview: Lennart Poettering by chousuke on Friday January 16, 2015 @02:42PM (#8901170)
It's not really "automagical"; it's all quite well defined.

Honestly, I'll take a dozen 5-line unit files over a single "portable" init script that implements its own utility library, or yet another "simple" init script that's 90% standard boilerplate and still doesn't work because the 10% doing the real work doesn't check PID files correctly ("I can't just kill all processes called foo?") ...

Anyway, the point is that systemd models system states declaratively, solves the dependencies and executes the necessary steps required to reach that state, all without explicitly telling it what to do. If your dependencies are declared correctly, there is little danger of misbehaviour. The advantage to this is that parallelization is free and you never need explicit waits. In practice of course there will be misbehaving units and incomplete dependency declarations, but I think as admins gain experience with systemd those kinds of issues will drastically decrease. You'll still be able to run plain old scripts from unit files. I do that on my home server to start containers. since the contained process doesn't background itself and just prints to stdout and stderr, when started via systemd all its output will go into the journal and the tail shows up when I do "service container@foo status".

Analogous to SQL, I suppose something like "systemctl explain" might be useful. There's list-dependencies, which gets halfway there.

Re:Interview: Lennart Poettering by fsniper on Friday January 16, 2015 @03:37PM (#8901520)
pkill foo or killall foo?
Re:Interview: Lennart Poettering by mercurial on Friday January 16, 2015 @12:37PM (#8900278)
I believe it's not about between magical in the general case, but about how you specify dependencies between services, an area where systemd and upstart work differently.

See the 'On Upstart' section here [1].

1: http://0pointer.de/blog/projects/systemd.html

Re:Interview: Lennart Poettering by digi_owl on Friday January 16, 2015 @01:12PM (#8900493)
Reminds me why slackware packages do not have dependency resolution, because it invariably breaks. This most often in the sense of X wants Y while Z wants Y+-1. And so you are at an impasse because the dependency resolver can't handle having two versions of Y installed at the same time.

A recent failure of systemd i have seen was related to NFS. For some reason systemd would yank the network down before dismounting NFS.

If you don't unmount NFS before taking down the network, it will sit there forever waiting for that final server response.

Another example was where while mount would happily ignore a flawed fstab entry but mount the rest, systemd would bail on the whole mount task and so halt the boot process.

Re:Interview: Lennart Poettering by acdha on Friday January 16, 2015 @01:56PM (#8900858)
> A recent failure of systemd i have seen was related to NFS. For some reason systemd would yank the network down before dismounting NFS.

This isn't specific to systemd – I had to deploy workarounds to the same bug in RHEL, Debian, Ubuntu, FreeBSD, etc.

Re:Interview: Lennart Poettering by forgottenpass on Friday January 16, 2015 @11:22AM (#8899809)
I find myself wondering why the init is supposed to figure out what the computer is to be doing.

I've never messed with systemd configuration too much, but is it much more complicated than a make-style "how do I get there from here? OK lets do that"?

Re:Interview: Lennart Poettering by MertsA on Friday January 16, 2015 @01:14PM (#8900513)
That's actually a pretty good summary of the difference between Upstart and systemd, with systemd your services declare what they depend on and your runlevel is now a "target" that declares that it depends on certain services. It does dependency resolution just like a package manager does.
Re:Interview: Lennart Poettering by digi_owl on Friday January 16, 2015 @02:08PM (#8900953)
The term "dependency hell" comes to mind...
Re:Interview: Lennart Poettering by MertsA on Friday January 16, 2015 @07:52PM (#8902820)
If that were true you could never start those services in sysvinit either. It works great because there aren't cyclic references and practically no conflicting services. The dependency tree will always be pretty simple.
Re:Interview: Lennart Poettering by random28345 on Friday January 16, 2015 @10:45AM (#8899579)
> how an opinion [...] is callous and myopic?

There have been hundreds of thousands of words written on how simple utilities can form the basis of supportable, complex systems and still retain the ability to be comprehensible. He has dismissed all that as beneath consideration, and he has the One True Vision™ on how Unix should be architected.

Don't get me wrong, hubris and self-righteousness have given us great things: GNU, OpenBSD, qmail, etc. But I don't think anyone would accuse rms or theo or djb of not being callous and myopic.

Re:Interview: Lennart Poettering by forgottenpass on Friday January 16, 2015 @11:36AM (#8899898)
He has dismissed all that as beneath consideration, and he has the One True Vision™ on how Unix should be architected.

I don't see him passing a value judgement on how it should be done, just dismissing a particular criticism as poorly founded. If you look at the difference between the Unix and Linux development models, there is a point. There are a lot of properties to Unix so it's a bad argument to say "not Unixy enough" when you really mean something more along the lines of "components take on too many responsibilities at once and are too tightly coupled."

Re:Interview: Lennart Poettering by digi_owl on Friday January 16, 2015 @01:16PM (#8900524)
Focusing on the repository is a distraction.

the whole of systemd sits in a single source tree in freedesktop.org. You don't find system-networkd in one tree, udev in another, systemd-init in a third.

In contrast, each part of XFCE, the window manager, the panel, etc, sit as their own source trees within the XFCE repository.

Re:Interview: Lennart Poettering by antientropic on Friday January 16, 2015 @10:08AM (#8899296)
Care to point out which remarks were clueless or trollish?
Re:Interview: Lennart Poettering by bhaak on Friday January 16, 2015 @10:39AM (#8899515)
The interview wasn't as bad as I expected from the OP's opinion but this one seems mind-bogglingly wrong:

"What’s typical for Unix, for example, is that all the tools, the C library, the kernel, are all maintained in the same repository, right? And they’re released in sync, have the same coding style, the same build infrastructure, the same release cycles – everything’s the same. So you get the entire central part of the operating system like that. If people claim that, because we stick a lot of things into the Systemd repository, then it’s un-Unixish, then it’s absolutely the opposite. It’s more Unix-ish than Linux ever was!"

I don't even know how you could get this misconception. This really does sound clueless or trollish.

The rest of the interview is of a better quality and you follow his reasoning much better even if in the end you would still disagree with him.

Re:Interview: Lennart Poettering by jdub on Friday January 16, 2015 @10:56AM (#8899651)
He's talking about UNIX, not Linux, and he's 100% right. Look at the BSDs some time, or the Solaris forks.

The disconnect between the Linux kernel and basic userland has been a criticism of UNIX traditionalists for years. It's part of the reason why BSD has a few forks and Linux has hundreds of distributions.

Re:Interview: Lennart Poettering by makomk on Friday January 16, 2015 @07:06PM (#8902614)
Yeah, and from what I've heard most Solaris (and proprietary Unix) installs wound up with a copy of the GNU utilities installed somewhere and added to the sysadmin's PATH because the bundled ones were shit. Before Linux came along, this was the main use of stuff like GNU coreutils. I'm not sure this is really an aspect of traditional Unix we want to be imitating.
Re:Interview: Lennart Poettering by bhaak on Friday January 16, 2015 @11:31AM (#8899868)
I'm very well aware of the difference of Unix and Linux. I even smiled slighty as he also could just have claimed Linux to not be Unix and that would have been undisputable.

I actually don't know what you mean with "criticism of UNIX traditionalists for years" in regards to the Linux kernel and the userland.

I know of Linus' disregard of POSIX where it's crappy or doesn't make any sense anymore in his opinion but that can't extend to the userland as Linus doesn't do userland.

Some clarification or links to said criticism would be welcome.

Re:Interview: Lennart Poettering by elwin on Friday January 16, 2015 @12:12PM (#8900139)
> I actually don't know what you mean with "criticism of UNIX traditionalists for years" in regards to the Linux kernel and the userland.

There's a joke from the 90's that goes something like "FreeBSD is what you get when Unix hackers write a Unix clone for the PC. Linux is what you get when PC hackers write a Unix clone for the PC." From the point of view of BSD or proprietary Unix fans, the early Linux distros were just throwing together a haphazard collection of poorly tested components.

Re:Interview: Lennart Poettering by forgottenpass on Friday January 16, 2015 @12:14PM (#8900149)
I actually don't know what you mean with "criticism of UNIX traditionalists for years"

"of" meaning "belonging to" not "directed at." Confused me for a bit too.

Re:Interview: Lennart Poettering by the_why_of_y on Friday January 16, 2015 @02:34PM (#8901112)
It is you who is "mind-bogglingly wrong". Perhaps you should read up a bit on real UNIX systems.

https://www.over-yonder.net/~fullermd/rants/bsd4linux/03

Re:Interview: Lennart Poettering by bhaak on Monday January 19, 2015 @02:04PM (#8913411)
Thank you for the link.

I see now what he meant with "disconnect between the Linux kernel and basic userland". As others have already pointed out, I also don't think that this is an integral part of what being like Unix is and I stand by my first assessment of him being wrong, trollish, or as an additional option, throwing in this argument to detract from the real criticism.

The article doesn't go into much detail why having the kernel and the userland being maintained by the same group is better. Neither on theoretical grounds nor with actual examples.

On theoretical grounds, I would agree that it should be benefitial although in my personal experience (Solaris, FreeBSD, OSX, Windows with Cygwin, Linux (normal userland and busybox for low-spec devices), it's not a given that this means necessarily a better user experience.

Solaris used to have (some years ago, haven't used it lately) and OSX still has a really bad default set and the sooner you replace them with the GNU tools, the better for your peace of mind. I'd even go so far and claim that Windows with Cygwin is a better user experience than those two.

Re:Interview: Lennart Poettering by erglkjahlkh on Friday January 16, 2015 @10:45AM (#8899582)
He mentioned kernel, c libraries, and "all the tools". Well, kernel is in one repository. The (gnu) c library is in one repository. The tools, well the category of stuff like "ls" and "cat" is afaik in one repository. In similar manner, he seems to think that systemd should manage the set of most crucial processes of the base system.

I am not saying that he is correct, I am just interpreting!

Re:Interview: Lennart Poettering by fsniper on Friday January 16, 2015 @10:53AM (#8899627)
Thank you. That's well said. I wish I could read all the piece with the pay per view part. But with this part he is absolutely sure , he is the righteous on every aspect of computing and it's history that he just tries to "create un realistic lines" to make his point.