public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Daniel Campbell <zlg@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] Changing order of default virtual/udev provider
Date: Tue, 9 Feb 2016 05:06:28 -0800	[thread overview]
Message-ID: <56B9E454.1010609@gentoo.org> (raw)
In-Reply-To: <CAGfcS_mNC+t29d6Jv9kQRMXrvNjVFLwktxNXLSKXqWCj42SEcw@mail.gmail.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 02/09/2016 04:17 AM, Rich Freeman wrote:
> On Tue, Feb 9, 2016 at 3:43 AM, Kent Fredric
> <kentfredric@gmail.com> wrote:
>> 
>> A pure udev system is in comparison, much simpler than a systemd
>> system.
> 
> I don't buy that at all.  In systemd you have a unified object
> model across device nodes, mountpoints, services, and cron jobs.
> In the alternate model you have completely different
> implementations of all of those, each with their own configurations
> and behaviors.

Perhaps that's because each of those things should not actually be
considered the same object type. That sort of design may be convenient
to users, but is more akin to treating everything like a nail when you
have a hammer.

Also note that in the 'alternate' model, each of the above is handled
by a different tool. It's obvious that using a combination of
different tools will result in different conceptualizations of each of
those parts in a system. I see little benefit in a single project
pretending to understand everything about each of them.

> 
>> 
>> And that's much of the beauty of OpenRC. Its simple, it achieves
>> the same goals as Systemd and Upstart, etc, but does so with a
>> lot less mechanics under the hood, and doesn't clutter up systems
>> with features you don't need prematurely.
> 
> OpenRC doesn't achieve MANY of the goals of systemd.  Maybe you
> don't personally care about some of them, but you really can't
> compare the feature sets at this point.
> 
>> And there are great benefits from simplicity over complexity.
> 
> Absolutely.  It is great to create a text file and symlink it in a 
> directory named after a service to make that service auto-restart,
> or have a memory limit, or set an IO priority for that service.  It
> is great to not have to think about anything to have just about all
> your processes organized into a sensible cgroup hierarchy.  It is
> great to be able to tweak one config file to ensure that users who
> log out of a system can't leave any processes behind.
> 
> It is great to be able to tweak something in policykit and change 
> things like who can shut down the system, or who can restart a 
> service.
> 
> The simplicity of systemd comes from the fact that it has brought
> what used to be a collection of many independent tools under one
> roof, and created a converging set of interfaces for all of them.

If I didn't know any better I'd say this reads like shilling. Firstly,
there's a real problem if you're depending on a daemon restarting
itself. Why is it stopping in the first place? If it's stopping,
something wrong is happening and restarting it *isn't* going to fix it.

Existing permission systems handle a lot of cases. *kit (logind, is
more like it) has some extra things to make it a bit more granular.
It's mostly unneeded complexity. The biggest benefit logind brings to
a system is multi-seat capability.
> 
>> And a lot of Gentoo is surprisingly simple: Like our use of bash 
>> scripts for recipies to build things, like using rsync to
>> deploy/relay not just those recipies, but security notices and
>> news items, which are themselves reasonably simple formats.
> 
> Well, one thing about Gentoo that certainly isn't simple is our
> init.d scripts.
> 
> Compare this: http://pastebin.com/sSDtpF4t
> 
> With this: http://pastebin.com/Lfn8r7qP
> 
> Systemd does the job in 10% of the code (and half of it is a
> comment), and doesn't implement its own service polling and killer
> script during shutdown independently for every service (not that
> every init.d script even does this - most of them will just leave
> orphans behind, and systemd will catch orphans that even the
> lengthy init.d script for apache misses).

This is a dishonest comparison. You're comparing a declarative
configuration file with a Turing-complete scripting language. If we're
going by SLOC, we would need to also consider all the C code that
systemd uses to *act* on said declarative file. One could argue that
rc scripts in this case are a lot of repetition, and that'd be
correct. There's nothing stopping rc scripts from becoming similar to
systemd's unit files. It'd be akin to our eclass system. But why is
this important? OpenRC supports cgroups, so if a daemon isn't reaping
its children correctly, a bug needs to be filed, either on the package
providing the script or on OpenRC itself.
> 
>> 
>> The only preference I see here is the preference to not have and 
>> install things your system has no use for, which I find an odd 
>> preference to be complaining about, and depending on your system 
>> requirements, that may also be not so much "preference".
>> 
> 
> And hence my suggestion that we simply get this stuff out of the 
> stage3s in the first place.  Then everybody can just pick the 
> implementation that best suits their requirements.

I can get behind that. This dodges all sorts of arguments regarding
initial installations. There's still the issue of the virtual,
however; would we add sys-fs/udev to p.mask in non-systemd profiles to
clarify the decision, or make eudev the default choice in the virtual?
I think we can all agree on making it an additional step in the
handbook, but the default is still at hand.
> 
> If you want to talk about default providers, the most
> straightforward one to use is systemd.  It is what people are going
> to be used to coming from other distros, it is what every upstream
> package expects to be running anyway, and it is the simpler tool
> that does everything that most people want.
> 
> For people who want a more exotic configuration, there are 
> alternatives, and Gentoo should certainly support using them as
> long as people care to maintain them.

This is the same argument other distros used before they switched
completely to systemd. When has Gentoo ever been about marching to the
beat of other distros? Are you advocating for following what others do
simply because it's popular?

We have nothing to gain by making systemd the default init system, and
it would tick off a considerable portion of our userbase, even with it
being changeable. It's one thing to put it on the live media, or even
as part of (a flavor of) a stage4, but to push for it being a default
across the board on a standard install is a bit much.

The e-mails I've seen from you in this thread seem out of the
ordinary. Has the systemd team been talking with you, or people from
other distributions urging for Gentoo to switch?

To clarify, there's nothing wrong with systemd as a choice. It's
special enough that it has its own set of profiles. I think that's
enough, and creates a workable path for both.

For this thread, it seems that we need to do something similar with
eudev. sys-fs/udev already comes with the systemd profile, and eudev
fulfills all the same needs. Maybe we should speak with our users and
find out just how many people are using systemd-udev intentionally
rather than going along with it as a default, and their reasoning for
doing so. The same could go for eudev. Not so much for numbers
(because unlike Debian, we have nothing comparable to popcon), but to
see where people are standing on it.

- -- 
Daniel Campbell - Gentoo Developer
OpenPGP Key: 0x1EA055D6 @ hkp://keys.gnupg.net
fpr: AE03 9064 AE00 053C 270C  1DE4 6F7A 9091 1EA0 55D6
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJWueRSAAoJEAEkDpRQOeFw7DYP/i4hqRWuhSVUZsAXE8DX9GAa
vapYjX43fb5S5BzgqS5KVbRWUdDUQNAghyy9kywPUFjjQRArzTF+xX3EmBhj5rUG
Agar+BB3fGh19NbvMtwoJ3C+eHBw7aNGkmlj65vpMOmOnZ/7lDZNU0PbZ4GtDdmp
FoQ2ooR5+TAV7xZaMRf5liwcptMcIPrOhksvUWtzRPhFjGyJLRtg60xO6hxC5Zc0
yF+hrO8/QNnqIvKn5u1sXAx3GyRE2UZtPX+Fad6Z376gH+8T7CtbqjLT1rxIZedd
CYLusg/AdENLsS6EVy6KN5exIH1oAeAqWwtiUS88VURzP7QY7TA3RbCPVVgCFe0M
kM2J5JZqlrdCxG935zEk3kiO9dtW4wBQNbjyLD7G3PCkWWnv2eZsP+lk+pFQlIvw
+Sfbb4nrtusSu8MYkeLnAQJ3oyt8qYUQN0Ip07Y/5h+3pKizMi/A2NVjLdoH35tx
KXnpy5LPYn7Hk7UrVGPdgNQC/GckRcIAgwjH90fvO2cOAV6pdcPAR/VYxaodQeWZ
AUZdT6ksmuZuhfBgZBEU2X2ilEVZsDI22egjz5/+FCDZjr2c56cURCP6+GXcW4ao
LaM/OoTmHkEQSG4PVTSNE6wXN9lrVx5v/TvH9vDjdViugdzOUHyt58gXiC+Bk8wA
XD8LH56ilZGFcoJWdmSR
=Ggkl
-----END PGP SIGNATURE-----


  reply	other threads:[~2016-02-09 13:06 UTC|newest]

Thread overview: 178+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-08  9:08 [gentoo-dev] Changing order of default virtual/udev provider Patrick Lauer
2016-02-08  9:25 ` Brian Dolbec
2016-02-08 11:12   ` Anthony G. Basile
2016-02-08 11:19     ` Andrew Savchenko
2016-02-08 13:20       ` Dale
2016-02-08 12:52   ` Kristian Fiskerstrand
2016-02-08 12:30 ` Daniel Campbell
2016-02-08 12:32   ` Patrick Lauer
2016-02-08 12:37     ` Daniel Campbell
2016-02-11  2:04       ` Nicolas Sebrecht
2016-02-08 12:46 ` Michał Górny
2016-02-08 12:56   ` Daniel Campbell
2016-02-08 15:01   ` Kent Fredric
2016-02-08 16:00   ` Ian Stakenvicius
2016-02-11  1:46     ` Nicolas Sebrecht
2016-02-11  5:13       ` [gentoo-dev] " Duncan
2016-02-11 16:42       ` [gentoo-dev] " Ian Stakenvicius
2016-02-09  0:47   ` [gentoo-dev] " Duncan
2016-02-09  1:01     ` Anthony G. Basile
2016-02-09 19:26   ` [gentoo-dev] " Mike Frysinger
2016-02-09 22:39     ` [gentoo-dev] " Duncan
2016-02-09 23:38       ` Alex McWhirter
2016-02-09 23:42         ` M. J. Everitt
2016-02-10  5:09       ` Mike Frysinger
2016-02-10 14:27         ` waltdnes
2016-02-10 14:52           ` Rich Freeman
2016-02-10 16:26             ` William Hubbs
2016-02-10 17:09               ` Brian Dolbec
2016-02-11  1:15                 ` Ian Stakenvicius
2016-02-11  1:27                   ` Daniel Campbell
2016-02-14  6:31                   ` Joshua Kinard
2016-02-10 15:25           ` Michał Górny
2016-02-10 23:10           ` »Q«
2016-02-17  2:54   ` [gentoo-dev] " Richard Yao
2016-02-17  6:37     ` Michał Górny
2016-02-17  8:17       ` Patrick Lauer
2016-02-17 10:23         ` Michał Górny
2016-02-17 13:29       ` Richard Yao
2016-02-08 16:18 ` Rich Freeman
2016-02-08 17:01   ` Ian Stakenvicius
2016-02-08 17:31     ` Brian Dolbec
2016-02-09  0:07     ` Rich Freeman
2016-02-09  1:15       ` Alex McWhirter
2016-02-09  7:43         ` waltdnes
2016-02-09 12:19           ` Daniel Campbell
2016-02-09  0:46   ` Daniel Campbell
2016-02-09  0:58     ` Anthony G. Basile
2016-02-09  3:09       ` Rich Freeman
2016-02-09  5:27         ` Anthony G. Basile
2016-02-09  9:03           ` Kent Fredric
2016-02-09 12:36             ` Daniel Campbell
2016-02-09 12:43               ` Rich Freeman
2016-02-09 19:10                 ` Anthony G. Basile
2016-02-14 15:14             ` Patrick Lauer
2016-02-14 16:00               ` Rich Freeman
2016-02-14 16:17                 ` Patrick Lauer
2016-02-14 19:41                 ` Brian Dolbec
2016-02-14 20:17                   ` Rich Freeman
2016-02-14 20:27                     ` Patrick Lauer
2016-02-14 20:32                       ` Rich Freeman
2016-02-14 20:23                   ` Mike Frysinger
2016-02-14 20:31                     ` Alon Bar-Lev
2016-02-14 20:34                       ` Rich Freeman
2016-02-14 20:34                       ` Mike Frysinger
2016-02-14 20:47                         ` Anthony G. Basile
2016-02-14 20:50                           ` Mike Frysinger
2016-02-15  1:34                             ` William Hubbs
2016-02-15  9:29                               ` Alexis Ballier
2016-02-15 10:01                                 ` Daniel Campbell
2016-02-15 12:11                                 ` Rich Freeman
2016-02-16 17:45                                   ` William Hubbs
2016-02-16 18:12                                     ` Alexis Ballier
2016-02-16 18:34                                       ` Chí-Thanh Christopher Nguyễn
2016-02-16 18:35                                         ` William Hubbs
2016-02-16 18:53                                           ` Chí-Thanh Christopher Nguyễn
2016-02-16 18:55                                             ` Chí-Thanh Christopher Nguyễn
2016-02-16 19:14                                             ` Brian Dolbec
2016-02-16 22:03                                               ` Chí-Thanh Christopher Nguyễn
2016-02-16 19:05                                         ` Alexis Ballier
2016-02-16 19:14                                           ` Chí-Thanh Christopher Nguyễn
2016-02-16 19:33                                             ` Michał Górny
2016-02-16 19:57                                               ` Patrick Lauer
2016-02-16 20:05                                                 ` Rich Freeman
2016-02-16 20:26                                                   ` Anthony G. Basile
2016-02-16 20:51                                                     ` Brian Dolbec
2016-02-16 22:16                                                 ` Michał Górny
2016-02-16 22:56                                                   ` Alexis Ballier
2016-02-16 23:21                                                   ` Brian Dolbec
2016-02-17  4:09                                                   ` [gentoo-dev] " Duncan
2016-02-16 20:07                                               ` [gentoo-dev] " Alexis Ballier
2016-02-16 22:16                                               ` Chí-Thanh Christopher Nguyễn
2016-02-16 19:59                                             ` Alexis Ballier
2016-02-16 22:41                                               ` Chí-Thanh Christopher Nguyễn
2016-02-17 12:43                                                 ` Michał Górny
2016-02-17 12:53                                                   ` Richard Yao
2016-02-17 12:58                                                     ` Michał Górny
2016-02-17 13:03                                                       ` Alexis Ballier
2016-02-17 13:39                                                       ` Richard Yao
2016-02-17 13:47                                                         ` Ben Kohler
2016-02-17 13:55                                                           ` Richard Yao
2016-02-17 14:01                                                             ` Ben Kohler
2016-02-17 14:41                                                               ` Richard Yao
2016-02-17 14:45                                                                 ` Richard Yao
2016-02-17 14:54                                                               ` brettrsears
2016-02-17 16:04                                                                 ` Richard Yao
2016-02-17 18:47                                                                   ` Rich Freeman
2016-02-18  2:57                                                                     ` Richard Yao
2016-02-17 13:09                                                   ` Chí-Thanh Christopher Nguyễn
2016-02-17 13:32                                                     ` Michał Górny
2016-02-17 13:38                                                       ` Chí-Thanh Christopher Nguyễn
2016-02-17 13:42                                                         ` M. J. Everitt
2016-02-17 16:16                                                         ` Michał Górny
2016-02-17 18:12                                                           ` Richard Yao
2016-02-17 23:40                                                           ` Chí-Thanh Christopher Nguyễn
2016-02-18  0:19                                                   ` Daniel Campbell
2016-02-16 20:09                                         ` Rich Freeman
2016-02-16 20:39                                           ` Alexis Ballier
2016-02-14 20:31                     ` Patrick Lauer
2016-02-14 20:39                       ` Mike Frysinger
2016-02-14 20:42                     ` Anthony G. Basile
2016-02-14 20:47                       ` Mike Frysinger
2016-02-14 20:56                         ` Anthony G. Basile
2016-02-15  1:29                           ` Alex McWhirter
2016-02-15  2:16                           ` Mike Frysinger
2016-02-15  2:31                             ` M. J. Everitt
2016-02-15  5:28                               ` Mike Frysinger
2016-02-15  5:54                                 ` M. J. Everitt
2016-02-15 12:13                     ` Francesco Riosa
2016-02-15 14:40                       ` Mike Frysinger
2016-02-16  1:05                       ` [gentoo-dev] " Duncan
2016-02-09 11:59           ` [gentoo-dev] " Rich Freeman
2016-02-09 12:14             ` Anthony G. Basile
2016-02-09 12:39               ` Rich Freeman
2016-02-09 13:39                 ` Ulrich Mueller
2016-02-09 13:46                   ` Rich Freeman
2016-02-09 14:23                     ` Ulrich Mueller
2016-02-09 16:57                       ` William Hubbs
2016-02-09 17:28                         ` boot loader in @system, was " Chí-Thanh Christopher Nguyễn
2016-02-09 17:24                   ` Kristian Fiskerstrand
2016-02-09 23:48                 ` Dale
2016-02-09 18:25             ` Alon Bar-Lev
2016-02-09 18:38               ` Rich Freeman
2016-02-09  8:43         ` Kent Fredric
2016-02-09 12:17           ` Rich Freeman
2016-02-09 13:06             ` Daniel Campbell [this message]
2016-02-09 13:44               ` Rich Freeman
2016-02-09 14:44                 ` Daniel Campbell
2016-02-09 15:04                   ` Rich Freeman
2016-02-10  0:11                   ` [gentoo-dev] " Duncan
2016-02-09 17:18                 ` [gentoo-dev] " Brian Dolbec
2016-02-09 18:02                   ` Rubin
2016-02-09 18:29                   ` Rich Freeman
2016-02-09 23:47                     ` Daniel Campbell
2016-02-10  3:59                       ` waltdnes
2016-02-10  0:24                     ` [gentoo-dev] " Duncan
2016-02-10 17:36                 ` [gentoo-dev] The Beauty of Unix Paul Varner
2016-02-10 17:58                   ` Rich Freeman
2016-02-10 19:30                     ` Gregory Woodbury
2016-02-10 19:51                       ` brettrsears
2016-02-09 13:13             ` [gentoo-dev] Changing order of default virtual/udev provider Francesco Riosa
2016-02-14 12:10             ` Patrick Lauer
2016-02-15 10:55               ` Lars Wendler
2016-02-09 16:33         ` Luca Barbato
2016-02-17  4:00         ` Richard Yao
2016-02-17 10:34           ` Michał Górny
2016-02-17 13:19             ` Richard Yao
2016-02-17 10:52           ` Alexis Ballier
2016-02-17 13:44             ` Richard Yao
2016-02-17 12:25           ` Rich Freeman
2016-02-17 12:58             ` Richard Yao
2016-02-08 18:12 ` William Hubbs
2016-02-08 19:37   ` Pacho Ramos
2016-02-09 19:02 ` Alexis Ballier
2016-02-17  2:42 ` Richard Yao
2016-02-26 12:31 ` Rich Freeman
2016-02-26 13:35   ` Alexis Ballier
2016-02-27 17:14   ` Rich Freeman
2016-03-01 18:17 ` Patrick Lauer

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=56B9E454.1010609@gentoo.org \
    --to=zlg@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox