Development issues regarding the cerowrt test router project
 help / color / mirror / Atom feed
From: Michal Schmidt <mschmidt@redhat.com>
To: Valdis.Kletnieks@vt.edu
Cc: "cerowrt-devel@lists.bufferbloat.net"
	<cerowrt-devel@lists.bufferbloat.net>
Subject: Re: [Cerowrt-devel] SQM in mainline openwrt, fq_codel considered for fedora default
Date: Tue, 21 Oct 2014 16:50:59 +0200	[thread overview]
Message-ID: <544672D3.8020709@redhat.com> (raw)
In-Reply-To: <9382.1413826910@turing-police.cc.vt.edu>

On 10/20/2014 07:41 PM, Valdis.Kletnieks@vt.edu wrote:
> On Mon, 20 Oct 2014 10:03:55 -0700, Dave Taht said:
>> See:
>>
>> http://cgit.freedesktop.org/systemd/systemd/commit/?id=e6c253e363dee77ef7e5c5f44c4ca55cded3fd47
> 
> Those guys must be stopped.  Yet another time they tweak a kernel parameter
> without bothering to check the return code.

Well, the return code is checked, but in case of -ENOENT the error
message is intentionally downgraded to debug level:
http://cgit.freedesktop.org/systemd/systemd/tree/src/sysctl/sysctl.c?id=14f27b4e3b009d10bb9a3b43b74585c73a7c7626#n105

I guess the intention is to not bother warning about sysctls that get
removed from new kernels. Unfortunately, writing an invalid
default_qdisc returns -ENOENT, causing write_string_file() to return the
same, confusing apply_sysctl() into thinking the sysctl does not exist
at all. We can certainly improve that.

> (Yes, I'm still pissed at them for suddenly deciding to require cgroup
> support in the kernel, and not even adding a check at startup and a
> printf "Sorry, no cgroup support found".  It just kept going, trying
> to use cgroups support taht wasn't there, and hilarity and hijinks
> ensued...

Suddenly? CONFIG_CGROUPS was systemd's requirement from its very
beginning. It used to print:

   Failed to mount /sys/fs/cgroup: No such file or directory.

and stop booting at this point.
This was changed in 2011 in response to Ingo Molnar's request to be
able to test !CGROUPS kernels. So systemd try to boot after printing
this warning:

   CONFIG_CGROUPS was not set when your kernel was compiled.
   Systems without control groups are not supported.
   We will now sleep for 10s, and then continue boot-up.
   Expect breakage and please do not file bugs.
   Instead fix your kernel and enable CONFIG_CGROUPS.

Since running on !CGROUPS kernels was not in anybody's test plans,
the ability to boot without cgroups later bitrotted. When it was noticed
in May 2014, the code was reverted to again consider the failure to
mount cgroups as fatal and print the original error message.

I don't know what hilarity you observed, but at no point should the
failure to mount cgroups have been silent.

Regards,
Michal

  reply	other threads:[~2014-10-21 14:51 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-17 18:56 Dave Taht
2014-10-17 19:30 ` Valdis.Kletnieks
2014-10-20 17:03   ` Dave Taht
2014-10-20 17:41     ` Valdis.Kletnieks
2014-10-21 14:50       ` Michal Schmidt [this message]
2014-10-21 16:27         ` Valdis.Kletnieks
2014-10-21 16:57           ` Dave Taht
2014-10-21 17:05             ` Michal Schmidt
2014-10-21 17:24               ` Tom Gundersen
2014-10-21 17:44                 ` Michal Schmidt
2014-10-21 17:52                   ` David Personette
2014-10-21 18:00                   ` Michal Schmidt
2014-10-21 18:06                   ` Tom Gundersen
2014-10-21 19:21                     ` Dave Taht
2014-10-21 19:51                       ` Dave Taht
2014-10-21 20:59                         ` Dave Taht
2014-12-04 16:09                           ` Tom Gundersen
2014-12-04 18:24                             ` Dave Taht
2014-10-21 23:18                 ` Toke Høiland-Jørgensen
2014-12-04 15:05                   ` Tom Gundersen
2014-12-04 15:08                     ` Toke Høiland-Jørgensen

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

  List information: https://lists.bufferbloat.net/postorius/lists/cerowrt-devel.lists.bufferbloat.net/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=544672D3.8020709@redhat.com \
    --to=mschmidt@redhat.com \
    --cc=Valdis.Kletnieks@vt.edu \
    --cc=cerowrt-devel@lists.bufferbloat.net \
    /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