mailing list of musl libc
 help / color / mirror / code / Atom feed
From: idunham@lavabit.com
To: musl@lists.openwall.com
Subject: Re: Re: Vision for new platform
Date: Mon, 11 Jun 2012 22:37:38 -0700 (PDT)	[thread overview]
Message-ID: <3044.132.241.65.136.1339479458.squirrel@lavabit.com> (raw)
In-Reply-To: <20120612014840.GT163@brightrain.aerifal.cx>

> On Mon, Jun 11, 2012 at 05:59:22PM -0700, Isaac Dunham wrote:
>> runlevels come in handy, if you know how to use them.
>> Debian mutilates them, though, so they seem less handy on
>> Debian/Ubuntu systems.
>> Here's what I'd do:
>> 1. I just want to get into recovery (single-user) mode in a hurry; the
>> system is hosed as it stands.
>
> If you're just talking about booting, adding "init=/bin/sh" to the
> kernel boot line is the way to do this..
> If you're talking about taking down a running system "into single-user
> mode", that's a hard problem to do correctly and it depends on all the
> daemon stop/start stuff.
Both.
init=/bin/sh is usually good; however, I have seen at least two systems
where it wouldn't boot (one Arch Linux and one Scientific Linux)
Also, I'd rather use the same command both times...
>> 2. I want a shell, quick (maybe because there's one file I need to copy
>> over to a flash drive)
>> 3. Networking would be nice, but I don't want X just yet.
>> 4. X is handy, but maybe not networking or printing...
>> 5. Start the whole enchilada.
>>
>> And yes, I do see a need for all 5 of those, including a way to start
>> the system in any of them (which runlevels allow, via kernel
>> parameters).
>> Sometimes, starting networking or not makes a minute or more of
>> difference (yes, I've timed it: 34 seconds vs 100+).  On one of my
>
> Our aim should be <5 seconds (preferably <1 sec) from power on to full
> UI. The reason I bring this up is that A LOT of the motivations for a
> lot of the bad designs in legacy boot/init/etc. systems, including
> systemd, is due to tolerating ultra-slow crap and then trying to make
> it less hideous by doing it in the background, etc.
Tell me how you plan to handle wireless+DHCP. It can take 5+ seconds to
associate, and 20+ to get a lease.  That's not negotiable, it's the facts
of life. dhclient defaults to 60 seconds timeout, IIRC.
There are other devices that will not initialize without a 3-5 second pause.


Anyhow, I still insist on a choice at boot time of X or text.  I could
list numerous reasons other than speed, but would rather not.

> As such, I don't think "we need to be able to boot into profile X or
> profile Y because profile Y might sometimes be too slow" is a good
> argument for multiple boot profiles. Nonetheless, I think they could
> be done as long as the kernel boot passes some environment to init
> which can in turn be passed to the script init runs that starts the
> daemons or daemon supervisor.
parsing /proc/cmdline is the standard approach.

>> computers, if I let the networking daemon run in the wrong area, it
>> reliably panics the kernel (madwifi 0.10.5.6 is the most functional
>> driver, except it panics if dhclient gets run too soon). So "turn off
>> networking via boot parameter" is mandatory for me.
>
> This is extremely broken and needs fixing.
I know, but it's beyond my knowledge, the madwifi developers have
abandoned this branch, and both ath5k and madwifi 0.9.4 (the official
version) drop connections multiple times per hour--and that's been a
"known issue" since 2008, IIRC (still not fixed in kernel 3.4).
ndiswrapper may not work these days (I've heard of connection drops that
way, too), it's a pain, and I'm not touching it.
In other words, it's not getting fixed, and it's still better than the
alternatives.
And you can bet that there will be more drivers that don't work right.




  reply	other threads:[~2012-06-12  5:37 UTC|newest]

Thread overview: 57+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-18  1:06 Rich Felker
2012-05-18  3:11 ` Isaac Dunham
2012-05-18  3:26   ` Rich Felker
2012-05-19  1:28     ` Isaac Dunham
2012-05-18  6:07 ` Szabolcs Nagy
2012-05-21 20:05 ` aep
2012-05-21 20:17   ` Rich Felker
2012-05-21 20:51   ` nwmcsween
2012-05-21 20:59     ` Rich Felker
2012-05-21 21:18   ` Rich Felker
2012-05-21 21:51     ` aep
2012-05-21 22:25       ` Rich Felker
2012-05-22  0:53         ` aep
2012-05-22  1:54           ` Rich Felker
2012-05-22 12:55         ` Christoph Lohmann
2012-06-09 11:27 ` orc
2012-06-09 14:44   ` Isaac Dunham
2012-06-09 15:25     ` orc
2012-06-09 21:24     ` Rich Felker
2012-06-09 22:38       ` Christian Neukirchen
2012-06-10 12:53         ` Daniel Cegiełka
2012-06-10 13:22           ` Rich Felker
2012-06-10 14:52             ` orc
2012-06-10 14:55               ` orc
2012-06-10 15:13               ` Rich Felker
2012-06-10 15:51                 ` orc
2012-06-10 16:33                   ` Rich Felker
2012-06-10 17:53                     ` orc
2012-06-10 18:03                       ` Daniel Cegiełka
2012-06-10 18:26                         ` orc
2012-06-10 18:38                           ` Daniel Cegiełka
2012-06-10 18:58                             ` orc
2012-06-10 19:19                               ` Daniel Cegiełka
2012-06-10 19:33                             ` Rich Felker
2012-06-10 20:13                               ` Daniel Cegiełka
2012-06-11  7:24                                 ` orc
2012-06-11 12:54                               ` Init system (Re: [musl] Re: Vision for new platform) aep
2012-06-12  0:59                               ` Re: Vision for new platform Isaac Dunham
2012-06-12  1:48                                 ` Rich Felker
2012-06-12  5:37                                   ` idunham [this message]
2012-06-12  5:48                                     ` Kurt H Maier
2012-06-12  8:20                                       ` aep
2012-06-12 14:32                                         ` Rich Felker
2012-06-14  4:28                                       ` Isaac Dunham
2012-06-12 14:30                                     ` Rich Felker
2012-06-12  7:46                                   ` orc
2012-06-12  8:27                                     ` nwmcsween
2012-06-12  8:41                                       ` orc
2012-06-12  8:44                                     ` aep
2012-06-12  9:02                                       ` orc
2012-06-12 10:28                                         ` aep
2012-06-12 10:33                                           ` orc
2012-06-10 15:17               ` Daniel Cegiełka
2012-06-10 15:27                 ` Rich Felker
2012-06-10 15:12 ` Jeremy Huntwork
2012-06-10 18:03   ` Kurt H Maier
2012-06-10 18:15     ` Jeremy Huntwork

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=3044.132.241.65.136.1339479458.squirrel@lavabit.com \
    --to=idunham@lavabit.com \
    --cc=musl@lists.openwall.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).