public inbox for gentoo-amd64@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Canek Peláez Valdés" <caneko@gmail.com>
To: gentoo-amd64@lists.gentoo.org
Subject: Re: [gentoo-amd64] Please get me straight about sysvinit vs. systemd, udev vs eudev vs mdev, virtuals and other things...
Date: Sun, 2 Mar 2014 11:45:49 -0600	[thread overview]
Message-ID: <CADPrc837SNpp2oY=poNQL5ckyWQBW-aLNs2Fs+xKgpdKsS-=GA@mail.gmail.com> (raw)
In-Reply-To: <CAK2H+edHWBYS6e_am0M3OCqKVS0CBC20vRAYLQUSyjFj9cOXAQ@mail.gmail.com>

On Sun, Mar 2, 2014 at 10:57 AM, Mark Knecht <markknecht@gmail.com> wrote:
> Hi all,
>    I'd like to check in and get some education concerning future
> configuration of my Gentoo machines. Thanks in advance.
>
>    In the last few days there is a news announcement about needing to
> change kernel my configuration to enable CONFIG_FHANDLE to support
> udev-210. I'm currently at udev-208 and virtual/udev-208-r1 so no big
> deal yet. However reading the news announcement it appears this has
> more to do with systemd than anything else and I don't use systemd so
> does/will this effect my machines?

Yes, it will; udev (independently of systemd) is using FHANDLE to find
the devices in the computer.

udev is part of systemd, but it can be used separately. This is
supported by upstream (i.e., systemd). The change in the kernel config
is needed by udev.

>    NOTE: I have no problem I know about today enabling CONFIG_FHANDLE
> if it's recommended.

It is: udev will not work without it. Even more: eudev (when they
catch up) will not work without it either, since eudev does no
original work; they just exorcise systemd from udev.

>    That said there's an interesting (if it is to be believed) little
> rant thread over the last couple of days on LKML about Debian
> leadership forcing people into systemd.

The Debian Technical Committee took the technical decision of using
systemd as default init system. There is no "forcing" here; Debian is
ruled by a Constitution, and they (very slowly) followed their rules
and laws to reach that decision.

> I think the Gentoo devs forked
> udev to make either mdev or eudev but when it was announced it was too
> new for me so I just let it go by.

Gentoo, by default, uses udev without systemd. Again, this is
supported by upstream (i.e., systemd), nothing special about it.
*Some* Gentoo developers "forked" systemd  into eudev, so you can have
a "udev without systemd" (although, as stated above, upstream supports
udev without systemd). I don't know the exact numbers, but it's my
impression (by reading -dev and -user), that eudev is used in Gentoo
(and only Gentoo) by a handful of people. The great majority is using
sys-fs/udev, and I'm willing to bet that more people are using systemd
directly than eudev.

> Maybe now it's time for me to look
> into making a change of some type? I see eudev in portage, but not
> mdev.

Using eudev will gain you nothing; the FHANDLE change will reach them
eventually. If you use mdev, you will have a noticeable loss of
functionality. I think even less people use mdev than eudev.

>    A (really, really, really) quick scan of the current install docs
> makes me think sysvinit/OpenRC/udev is still the default for new
> installs. Is this true?

Yes, it's true, and no one will propose changing this, at least in the
near future. And even if systemd becomes the standard Gentoo init
system, OpenRC will be (almost surely) supported until the end of
times.

> If so why is this kernel change being
> required?

Because is new functionality provided by the kernel required by
*udev*, not (necessarily) systemd. Happens all the time; new
technology in the kernel is pretty useless if userspace doesn't start
taking advantage of it.

>    Also, I seem to have virtual/udev installed which says it's about
> enabling switching between udev & eudev. However there are no files
> associated with virtual/udev. (equery files virtual/udev returns
> nothing)

That's why it's a virtual; a virtual pulls in different
implementations of the (in theory) same functionality.

> It appears I cannot install eudev without removing udev so
> this seems a big step to take:
[ snip]

It is a big step to take, and it will gain you nothing: eventually,
eudev *will* require FHANDLE, unless they diverge even more from
upstream, a thing I believe they cannot afford to do.

>    At this point I'm not even sure what my other questions might be as
> I'm just trying to get my head around what others are using these
> days.

Well, it's undeniable that systemd usage is on the raising everywhere,
including Gentoo (specially since GNOME pulls it in). I myself use
systemd, and could not be happier.

However, OpenRC is (and will be for the foreseeable future) the
default init system.

> I do have a second Gentoo install on this system on an SSD so
> (once updated) I could do a switch there as a test.

My suggestion is for you to enable FHANDLE. From the kernel:

"""
config FHANDLE
        bool "open by fhandle syscalls"
        select EXPORTFS
        help
          If you say Y here, a user level program will be able to map
          file names to handle and then later use the handle for
          different file system operations. This is useful in implementing
          userspace file servers, which now track files using handles instead
          of names. The handle would remain the same even if file names
          get renamed. Enables open_by_handle_at(2) and name_to_handle_at(2)
          syscalls.
"""

It enables a couple of syscalls, and I don't think it will increase
much your kernel size. All systemd forks (including eudev) will need
it at some point, since it makes things easier for the developers. You
*could* use mdev instead of udev, but is **NOT** a drop in
replacement: you *will* lose some (if not much) functionality.

So just enable the thing and go on with your life.

My 0.02 ${CURRENCY}.

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México


  reply	other threads:[~2014-03-02 17:45 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-02 16:57 [gentoo-amd64] Please get me straight about sysvinit vs. systemd, udev vs eudev vs mdev, virtuals and other things Mark Knecht
2014-03-02 17:45 ` Canek Peláez Valdés [this message]
2014-03-02 18:12   ` Mark Knecht
2014-03-02 18:38     ` Canek Peláez Valdés
2014-03-02 18:10 ` Rich Freeman
2014-03-02 18:32   ` Mark Knecht
2014-03-02 18:42     ` Canek Peláez Valdés
2014-03-02 18:58       ` Mark Knecht
2014-03-02 20:04         ` B Vance
2014-03-03 17:15   ` Tanstaafl
2014-03-03 17:40     ` Rich Freeman
2014-03-03 18:12       ` Frank Peters
2014-03-03 18:20         ` Canek Peláez Valdés
2014-03-03 18:36           ` Barry Schwartz
2014-03-03 18:40             ` Canek Peláez Valdés
2014-03-03 18:57               ` Barry Schwartz
2014-03-03 19:10                 ` Canek Peláez Valdés
2014-03-03 19:10           ` Frank Peters
2014-03-03 19:20             ` Canek Peláez Valdés
2014-03-03 19:20             ` Mark Knecht
2014-03-03 21:51               ` Frank Peters
2014-03-03 22:00                 ` Rich Freeman
2014-03-03 22:02                 ` Mark Knecht
2014-03-03 19:26             ` Barry Schwartz
2014-03-03 18:32         ` Barry Schwartz
2014-03-03 17:44     ` [gentoo-amd64] " Duncan
2014-03-03 17:58       ` Canek Peláez Valdés
2014-03-03 18:38         ` Mark Knecht
2014-03-03 18:57           ` Rich Freeman
2014-03-03 19:09             ` Mark Knecht
2014-03-03 19:18           ` Drake Donahue
     [not found]           ` <5314d594.85a12b0a.3030.ffffda67SMTPIN_ADDED_BROKEN@mx.google.com>
2014-03-03 22:50             ` Mark Knecht
2014-03-03 19:43         ` Duncan
2014-03-03 19:56           ` Rich Freeman
2014-03-13 10:10           ` Duncan
2014-03-13 13:45         ` [gentoo-amd64] Systemd Was: Please get me straight about sysvinit vs. systemd [...] Duncan
2014-03-13 17:24           ` Phil Turmel
2014-03-13 17:55           ` Rich Freeman
2014-03-13 19:20           ` [gentoo-amd64] " Duncan
2014-03-15  6:21             ` Jonathan Callen
2014-03-15 10:11               ` [gentoo-amd64] Systemd and journald Was: Systemd Duncan
2014-03-03 17:47     ` [gentoo-amd64] Please get me straight about sysvinit vs. systemd, udev vs eudev vs mdev, virtuals and other things Canek Peláez Valdés

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='CADPrc837SNpp2oY=poNQL5ckyWQBW-aLNs2Fs+xKgpdKsS-=GA@mail.gmail.com' \
    --to=caneko@gmail.com \
    --cc=gentoo-amd64@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