Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.os.linux > #59229 > unrolled thread
| Started by | Mike Easter <MikeE@ster.invalid> |
|---|---|
| First post | 2019-10-07 12:56 -0700 |
| Last post | 2019-10-13 12:10 -0400 |
| Articles | 20 on this page of 61 — 14 participants |
Back to article view | Back to alt.os.linux
sysvinit vs systemd Mike Easter <MikeE@ster.invalid> - 2019-10-07 12:56 -0700
Re: sysvinit vs systemd F Russell <fr@random.info> - 2019-10-07 22:38 +0000
Re: sysvinit vs systemd Aragorn <thorongil@telenet.be> - 2019-10-08 08:30 +0200
Re: sysvinit vs systemd Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-08 19:14 +0200
Re: sysvinit vs systemd Aragorn <thorongil@telenet.be> - 2019-10-09 07:12 +0200
Re: sysvinit vs systemd Mike Easter <MikeE@ster.invalid> - 2019-10-08 16:40 -0700
Re: sysvinit vs systemd "Carlos E.R." <robin_listas@es.invalid> - 2019-10-13 20:11 +0200
Re: sysvinit vs systemd William Unruh <unruh@invalid.ca> - 2019-10-13 19:23 +0000
Re: sysvinit vs systemd "Carlos E.R." <robin_listas@es.invalid> - 2019-10-14 00:44 +0200
Re: sysvinit vs systemd William Unruh <unruh@invalid.ca> - 2019-10-14 05:14 +0000
Re: sysvinit vs systemd "Carlos E.R." <robin_listas@es.invalid> - 2019-10-14 13:48 +0200
Re: sysvinit vs systemd William Unruh <unruh@invalid.ca> - 2019-10-14 14:31 +0000
Re: sysvinit vs systemd "Carlos E.R." <robin_listas@es.invalid> - 2019-10-15 11:40 +0200
Re: sysvinit vs systemd "David W. Hodgins" <dwhodgins@nomail.afraid.org> - 2019-10-14 09:06 -0400
Re: sysvinit vs systemd Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-08 19:10 +0200
Re: sysvinit vs systemd William Unruh <unruh@invalid.ca> - 2019-10-08 20:59 +0000
Re: sysvinit vs systemd "Carlos E.R." <robin_listas@es.invalid> - 2019-10-13 20:07 +0200
Re: sysvinit vs systemd William Unruh <unruh@invalid.ca> - 2019-10-13 19:21 +0000
Re: sysvinit vs systemd "Carlos E.R." <robin_listas@es.invalid> - 2019-10-14 00:48 +0200
Re: sysvinit vs systemd "Carlos E.R." <robin_listas@es.invalid> - 2019-10-08 19:49 +0200
Re: sysvinit vs systemd Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-09 14:21 +0200
Re: sysvinit vs systemd "Carlos E.R." <robin_listas@es.invalid> - 2019-10-13 20:05 +0200
Re: sysvinit vs systemd F Russell <fr@random.info> - 2019-10-14 10:23 +0000
Re: sysvinit vs systemd "Carlos E.R." <robin_listas@es.invalid> - 2019-10-14 13:39 +0200
Re: sysvinit vs systemd Aragorn <thorongil@telenet.be> - 2019-10-14 14:12 +0200
F. Russell's version of "init" (Was: sysvinit vs systemd) gazelle@shell.xmission.com (Kenny McCormack) - 2019-10-14 12:42 +0000
Re: F. Russell's version of "init" (Was: sysvinit vs systemd) "F. Russell" <frussell@random.info> - 2019-10-14 13:24 +0000
Re: F. Russell's version of "init" (Was: sysvinit vs systemd) gazelle@shell.xmission.com (Kenny McCormack) - 2019-10-14 13:50 +0000
Re: F. Russell's version of "init" (Was: sysvinit vs systemd) "F. Russell" <frussell@random.info> - 2019-10-14 14:21 +0000
Re: F. Russell's version of "init" (Was: sysvinit vs systemd) gazelle@shell.xmission.com (Kenny McCormack) - 2019-10-14 15:28 +0000
Re: F. Russell's version of "init" (Was: sysvinit vs systemd) "Cybe R. Wizard" <cybe_r_wizard@WizardsTower.invalid> - 2019-10-14 11:55 -0500
Re: F. Russell's version of "init" (Was: sysvinit vs systemd) William Unruh <unruh@invalid.ca> - 2019-10-14 14:41 +0000
Re: F. Russell's version of "init" (Was: sysvinit vs systemd) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-14 18:43 +0200
Re: F. Russell's version of "init" (Was: sysvinit vs systemd) Aragorn <thorongil@telenet.be> - 2019-10-14 19:06 +0200
Re: F. Russell's version of "init" (Was: sysvinit vs systemd) Eric Pozharski <whynot@pozharski.name> - 2019-10-15 11:24 +0300
Re: F. Russell's version of "init" (Was: sysvinit vs systemd) Aragorn <thorongil@telenet.be> - 2019-10-15 11:43 +0200
Re: F. Russell's version of "init" (Was: sysvinit vs systemd) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-15 13:41 +0200
Re: F. Russell's version of "init" (Was: sysvinit vs systemd) Aragorn <thorongil@telenet.be> - 2019-10-15 14:42 +0200
Re: F. Russell's version of "init" (Was: sysvinit vs systemd) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-15 20:45 +0200
Old farts showing off their knowledge of ancient PC operating systems... (Was: F. Russell's version of "init" (Was: sysvinit vs systemd)) gazelle@shell.xmission.com (Kenny McCormack) - 2019-10-15 21:18 +0000
Re: Old farts showing off their knowledge of ancient PC operating systems... (Was: F. Russell's version of "init" (Was: sysvinit vs systemd)) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-16 02:05 +0200
Re: Old farts showing off their knowledge of ancient PC operating systems... (Was: F. Russell's version of "init" (Was: sysvinit vs systemd)) gazelle@shell.xmission.com (Kenny McCormack) - 2019-10-16 00:44 +0000
Re: Old farts showing off their knowledge of ancient PC operating systems... (Was: F. Russell's version of "init" (Was: sysvinit vs systemd)) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-16 13:49 +0200
Re: F. Russell's version of "init" (Was: sysvinit vs systemd) Eric Pozharski <whynot@pozharski.name> - 2019-10-16 11:25 +0300
More archaic OS trivia... (Was: F. Russell's version of "init" (Was: sysvinit vs systemd)) gazelle@shell.xmission.com (Kenny McCormack) - 2019-10-16 10:20 +0000
Re: More archaic OS trivia... (Was: F. Russell's version of "init" (Was: sysvinit vs systemd)) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-16 13:58 +0200
Re: More archaic OS trivia... (Was: F. Russell's version of "init" (Was: sysvinit vs systemd)) Yrrah <Yrrah-aol@aol.invalid> - 2019-10-16 14:51 +0200
Re: More archaic OS trivia... (Was: F. Russell's version of "init" (Was: sysvinit vs systemd)) gazelle@shell.xmission.com (Kenny McCormack) - 2019-10-16 20:15 +0000
Re: More archaic OS trivia... (Was: F. Russell's version of "init" (Was: sysvinit vs systemd)) Yrrah <Yrrah-aol@aol.invalid> - 2019-10-17 14:52 +0200
Re: More archaic OS trivia... (Was: F. Russell's version of "init" (Was: sysvinit vs systemd)) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-18 00:24 +0200
Re: More archaic OS trivia... Bud Frede <frede@mouse-potato.com> - 2019-10-19 06:38 -0400
Re: More archaic OS trivia... Bud Frede <frede@mouse-potato.com> - 2019-10-19 06:30 -0400
Re: F. Russell's version of "init" (Was: sysvinit vs systemd) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-16 13:56 +0200
Re: F. Russell's version of "init" (Was: sysvinit vs systemd) Eric Pozharski <whynot@pozharski.name> - 2019-10-17 09:32 +0300
Re: sysvinit vs systemd Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-14 18:33 +0200
Re: sysvinit vs systemd Bud Frede <frede@mouse-potato.com> - 2019-10-19 06:20 -0400
Re: sysvinit vs systemd Aragorn <thorongil@telenet.be> - 2019-10-19 13:12 +0200
Re: sysvinit vs systemd Bud Frede <frede@mouse-potato.com> - 2019-10-19 11:14 -0400
Re: sysvinit vs systemd Aragorn <thorongil@telenet.be> - 2019-10-19 17:45 +0200
Re: sysvinit vs systemd Ken Hart <kwhart1@frontier.com> - 2019-10-19 17:28 -0400
Re: sysvinit vs systemd Bud Frede <frede@mouse-potato.com> - 2019-10-13 12:10 -0400
Page 2 of 4 — ← Prev page 1 [2] 3 4 Next page →
| From | Soviet_Mario <SovietMario@CCCP.MIR> |
|---|---|
| Date | 2019-10-09 14:21 +0200 |
| Message-ID | <qnkjc1$kdu$1@dont-email.me> |
| In reply to | #59291 |
Il 08/10/19 19:49, Carlos E.R. ha scritto: > On 08/10/2019 19.10, Soviet_Mario wrote: >> Il 08/10/19 00:38, F Russell ha scritto: >>> On Mon, 07 Oct 2019 12:56:40 -0700, Mike Easter wrote: >>> >>>> Another large part can be condensed into a set of >>>> support tools written in C which can be reused in other init scripts (or >>>> simliar situations). >>>> >>>> That's not much different from what systemd and other members of the zoo >>>> offer, it's just more flexible >>>> >>> >>> For some odd reason, the author of the article assumes that systemd >>> is just an init system. >>> >>> RedHat's goals for systemd, as they have clearly stated, are to make >>> it the sole interface between the kernel and userspace. This means >>> that ALL software that is written for Linux will have to be written >>> for systemd. >> >> the abstract question and practical aspect here diverge a lot. >> From a only formal view, to define a single uniform interface (a >> standardization of the interface layer) is a good thing in itself. >> Posix is an attempt in that direction, and separates the interface layer >> (declarative) and its implementation >> >> what could be (and seem to be bad) is another : to implement the layer >> interface as a single monolithic behemoth instead of independent modules. >> There is no true necessity this should happen > > But it is not a behemoth: > > -rwxr-xr-x 1 root root 1161608 Feb 18 2019 /usr/lib/systemd/systemd* > > one megabyte... I was not speaking about its disk or ram footprint ... I've read SystemD has surpassed some a million lines of code, just this >> >> top - 19:46:21 up 1 day, 7:21, 2 users, load average: 0.52, 0.54, 0.47 >> Tasks: 460 total, 1 running, 458 sleeping, 0 stopped, 1 zombie >> %Cpu(s): 5.6 us, 1.5 sy, 0.1 ni, 91.7 id, 1.0 wa, 0.0 hi, 0.0 si, 0.0 st >> KiB Mem : 8161224 total, 1394832 free, 5257324 used, 1509068 buff/cache >> KiB Swap: 25165820 total, 23194540 free, 1971280 used. 2352116 avail Mem >> >> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND >> 11994 root 20 0 40216 3780 2916 R 17.65 0.046 0:00.04 top >> 1 root 20 0 233124 8508 5072 S 0.000 0.104 0:24.52 systemd > > 5 megabits in shared ram, 5 in shared ram. > > > And it is modular, in fact. > >> >> This said, I do not have the particular skill even to assess if this >> standard interface has been chosen as the best possible. Ample >> discussion should precede a similar approach (the longlasting birth of >> POSIX itself and its partial yet coverage and support is symptomatic of >> the difficulty of having everybody to agree to an external formal >> standard ... but it is the only good way to describe interactions >> between things loosely bound) > > VERY ample discussion was made. I saw it, in the distribution I use > places. Similarly on many other places. > What was possibly was what was available, though. Anybody or group was > free to create other candidates. > -- 1) Resistere, resistere, resistere. 2) Se tutti pagano le tasse, le tasse le pagano tutti Soviet_Mario - (aka Gatto_Vizzato)
[toc] | [prev] | [next] | [standalone]
| From | "Carlos E.R." <robin_listas@es.invalid> |
|---|---|
| Date | 2019-10-13 20:05 +0200 |
| Message-ID | <qk5c7g-69h.ln1@Telcontar.valinor> |
| In reply to | #59299 |
On 09/10/2019 14.21, Soviet_Mario wrote: > Il 08/10/19 19:49, Carlos E.R. ha scritto: >> On 08/10/2019 19.10, Soviet_Mario wrote: >>> Il 08/10/19 00:38, F Russell ha scritto: >>>> On Mon, 07 Oct 2019 12:56:40 -0700, Mike Easter wrote: >>>> >>>>> Another large part can be condensed into a set of >>>>> support tools written in C which can be reused in other init >>>>> scripts (or >>>>> simliar situations). >>>>> >>>>> That's not much different from what systemd and other members of >>>>> the zoo >>>>> offer, it's just more flexible >>>>> >>>> >>>> For some odd reason, the author of the article assumes that systemd >>>> is just an init system. >>>> >>>> RedHat's goals for systemd, as they have clearly stated, are to make >>>> it the sole interface between the kernel and userspace. This means >>>> that ALL software that is written for Linux will have to be written >>>> for systemd. >>> >>> the abstract question and practical aspect here diverge a lot. >>> From a only formal view, to define a single uniform interface (a >>> standardization of the interface layer) is a good thing in itself. >>> Posix is an attempt in that direction, and separates the interface layer >>> (declarative) and its implementation >>> >>> what could be (and seem to be bad) is another : to implement the layer >>> interface as a single monolithic behemoth instead of independent >>> modules. >>> There is no true necessity this should happen >> >> But it is not a behemoth: >> >> -rwxr-xr-x 1 root root 1161608 Feb 18 2019 /usr/lib/systemd/systemd* >> >> one megabyte... > > I was not speaking about its disk or ram footprint ... > I've read SystemD has surpassed some a million lines of code, just this Yes, but not in one program. In hundreds of them. Adding up all of the programs and modules makes up that million lines. cer@Telcontar:~> rpm -ql systemd | wc -l 686 cer@Telcontar:~> That's not a single huge program. Not a "single monolithic behemoth". -- Cheers, Carlos.
[toc] | [prev] | [next] | [standalone]
| From | F Russell <fr@random.info> |
|---|---|
| Date | 2019-10-14 10:23 +0000 |
| Message-ID | <qo1ibv01ii0@news2.newsguy.com> |
| In reply to | #59529 |
On Sun, 13 Oct 2019 20:05:46 +0200, Carlos E.R. wrote: >> >> I've read SystemD has surpassed some a million lines of code, just this > > Yes, but not in one program. In hundreds of them. Adding up all of the > programs and modules makes up that million lines. > My "init" program is 3415 bytes -- that's bytes and not kilo- or mega-bytes -- and about half of those bytes are comments. Thus, there is no possible way to justify the enormous bloat that is systemd without descending into technical madness and mass delusion. Welcome to the new Linux.
[toc] | [prev] | [next] | [standalone]
| From | "Carlos E.R." <robin_listas@es.invalid> |
|---|---|
| Date | 2019-10-14 13:39 +0200 |
| Message-ID | <1d3e7g-4u6.ln1@Telcontar.valinor> |
| In reply to | #59579 |
On 14/10/2019 12.23, F Russell wrote: > On Sun, 13 Oct 2019 20:05:46 +0200, Carlos E.R. wrote: > >>> >>> I've read SystemD has surpassed some a million lines of code, just this >> >> Yes, but not in one program. In hundreds of them. Adding up all of the >> programs and modules makes up that million lines. >> > > My "init" program is 3415 bytes -- that's bytes and not kilo- > or mega-bytes -- and about half of those bytes are comments. *you* are not using a distribution unmodified init system. Your comparison is invalid. -- Cheers, Carlos.
[toc] | [prev] | [next] | [standalone]
| From | Aragorn <thorongil@telenet.be> |
|---|---|
| Date | 2019-10-14 14:12 +0200 |
| Message-ID | <20191014141201.337a210e@nx-74205> |
| In reply to | #59582 |
On 14.10.2019 at 13:39, Carlos E.R. scribbled: > On 14/10/2019 12.23, F Russell wrote: > > On Sun, 13 Oct 2019 20:05:46 +0200, Carlos E.R. wrote: > > > >>> > >>> I've read SystemD has surpassed some a million lines of code, > >>> just this > >> > >> Yes, but not in one program. In hundreds of them. Adding up all of > >> the programs and modules makes up that million lines. > >> > > > > My "init" program is 3415 bytes -- that's bytes and not kilo- > > or mega-bytes -- and about half of those bytes are comments. > > *you* are not using a distribution unmodified init system. Your > comparison is invalid. And his line count does not include that of the services his init system starts. If it even starts something as small as ntpd, then his 3415 bytes aren't going to cover it anymore. systemd is more than an init system. It's a system daemon. It starts and monitors userspace services, and it automatically restarts them if they crash, which is essentially what GNU HURD also does on top of the Mach microkernel, except that HURD controls lower-level userspace daemons for things which in the Linux kernel run in kernelspace itself, such as the driver modules, filesystems, security/authentication, et al. -- With respect, = Aragorn =
[toc] | [prev] | [next] | [standalone]
| From | gazelle@shell.xmission.com (Kenny McCormack) |
|---|---|
| Date | 2019-10-14 12:42 +0000 |
| Subject | F. Russell's version of "init" (Was: sysvinit vs systemd) |
| Message-ID | <qo1qgi$v7g$1@news.xmission.com> |
| In reply to | #59579 |
In article <qo1ibv01ii0@news2.newsguy.com>, F Russell <fr@random.info> wrote: >On Sun, 13 Oct 2019 20:05:46 +0200, Carlos E.R. wrote: > >>> >>> I've read SystemD has surpassed some a million lines of code, just this >> >> Yes, but not in one program. In hundreds of them. Adding up all of the >> programs and modules makes up that million lines. >> > >My "init" program is 3415 bytes -- that's bytes and not kilo- >or mega-bytes -- and about half of those bytes are comments. Care to post it? I assume from your comment about comments that it is 3415 bytes of source code, not binary. Seriously, I'm quite interested. I'd like to setup a system running such a minimalist style. I'm not bullshitting here. I'm not asking you to post it the way most Usenet requests would be doing so. -- The randomly chosen signature file that would have appeared here is more than 4 lines long. As such, it violates one or more Usenet RFCs. In order to remain in compliance with said RFCs, the actual sig can be found at the following URL: http://user.xmission.com/~gazelle/Sigs/Infallibility
[toc] | [prev] | [next] | [standalone]
| From | "F. Russell" <frussell@random.info> |
|---|---|
| Date | 2019-10-14 13:24 +0000 |
| Subject | Re: F. Russell's version of "init" (Was: sysvinit vs systemd) |
| Message-ID | <qo1stg0123e@news1.newsguy.com> |
| In reply to | #59585 |
On Mon, 14 Oct 2019 12:42:58 +0000, Kenny McCormack wrote: > > Care to post it? I assume from your comment about comments that it is 3415 > bytes of source code, not binary. > I'll post it either later this evening or sometime tomorrow. I'm stuck with the MS junk at my job right now. Keep in mind that my solution applies to a stand-alone, desktop, workstation with only a single user (me) and no network other than an Internet connection through a router/modem. But it's also not just the init script. Since I assemble my own hardware, I use static device nodes (with no udev and no ram disk) and these must be prepared beforehand. My setup also depends on a custom configured kernel to eliminate most dependencies that are found in most distros. The system boots into console mode with a bash shell. Nothing else is running. For example, if you want sound then you can invoke that when needed. The same for the network. The same for X. All that requires short, extra scripts, which involve only the loading of modules. If you understand how Linux works, then, IMO, it is the best way to go. Every aspect of the system is under your control. Nothing is automatic. I have been running Linux this way for over 10 years and have had nearly zero maintenance issues and nearly zero problems. All my software, including the kernel, is the very latest.
[toc] | [prev] | [next] | [standalone]
| From | gazelle@shell.xmission.com (Kenny McCormack) |
|---|---|
| Date | 2019-10-14 13:50 +0000 |
| Subject | Re: F. Russell's version of "init" (Was: sysvinit vs systemd) |
| Message-ID | <qo1ufj$3ju$1@news.xmission.com> |
| In reply to | #59589 |
In article <qo1stg0123e@news1.newsguy.com>,
F. Russell <frussell@random.info> wrote:
>On Mon, 14 Oct 2019 12:42:58 +0000, Kenny McCormack wrote:
>
>>
>> Care to post it? I assume from your comment about comments that it is 3415
>> bytes of source code, not binary.
>>
>
>I'll post it either later this evening or sometime tomorrow.
>I'm stuck with the MS junk at my job right now.
>
>Keep in mind that my solution applies to a stand-alone,
>desktop, workstation with only a single user (me) and no
>network other than an Internet connection through a
>router/modem.
>
>But it's also not just the init script.
>
>Since I assemble my own hardware, I use static device
>nodes (with no udev and no ram disk) and these must be prepared
>beforehand.
>
>My setup also depends on a custom configured kernel to eliminate
>most dependencies that are found in most distros.
>
>The system boots into console mode with a bash shell. Nothing
>else is running. For example, if you want sound then you can
>invoke that when needed. The same for the network. The same
>for X. All that requires short, extra scripts, which involve
>only the loading of modules.
>
>If you understand how Linux works, then, IMO, it is the best
>way to go. Every aspect of the system is under your control.
>Nothing is automatic.
>
>I have been running Linux this way for over 10 years and
>have had nearly zero maintenance issues and nearly zero
>problems. All my software, including the kernel, is the
>very latest.
>
Sounds cool.
I think for a first pass, I'd be just interested in taking a look at it, to
get some idea of what you're about.
If it reaches the point where I actually want to try running it, I'd
probably ask you for more details (and more code).
Maybe you should wrap it all up into a distro - call it FRLinux.
--
To my knowledge, Jacob Navia is not a Christian.
- Rick C Hodgin -
[toc] | [prev] | [next] | [standalone]
| From | "F. Russell" <frussell@random.info> |
|---|---|
| Date | 2019-10-14 14:21 +0000 |
| Subject | Re: F. Russell's version of "init" (Was: sysvinit vs systemd) |
| Message-ID | <qo209g013n4@news1.newsguy.com> |
| In reply to | #59592 |
On Mon, 14 Oct 2019 13:50:43 +0000, Kenny McCormack wrote: > > If it reaches the point where I actually want to try running it, I'd > probably ask you for more details (and more code). > There's no so much code involved as there is configuration. One just has to know how most things fit together. But Linux really is very, very simple. I started Linux with a distro, but as I began to explore the innards of the distro I always kept asking myself why do they do it this way. It's not necessary. So I did it myself. It worked and it kept on working.
[toc] | [prev] | [next] | [standalone]
| From | gazelle@shell.xmission.com (Kenny McCormack) |
|---|---|
| Date | 2019-10-14 15:28 +0000 |
| Subject | Re: F. Russell's version of "init" (Was: sysvinit vs systemd) |
| Message-ID | <qo247d$9er$1@news.xmission.com> |
| In reply to | #59598 |
In article <qo209g013n4@news1.newsguy.com>, F. Russell <frussell@random.info> wrote: >On Mon, 14 Oct 2019 13:50:43 +0000, Kenny McCormack wrote: > >> >> If it reaches the point where I actually want to try running it, I'd >> probably ask you for more details (and more code). >> > >There's no so much code involved as there is configuration. >One just has to know how most things fit together. > >But Linux really is very, very simple. I hear ya! For a long time, I booted (and used) quite usable Linux systems from floppy. I was a big fan of Tom's RTBT system. I wonder if that still exists in any form nowadays... Of course, kids these days have it so easy, what with their bootable CDs, DVDs, and USB sticks... -- Note that Oprah actually is all the things that The Donald only wishes he were. For one thing, she actually *is* a billionaire. She's also actually self-made, came from nothing, knows how to run businesses, never went bankrupt, is smart and is mentally stable.
[toc] | [prev] | [next] | [standalone]
| From | "Cybe R. Wizard" <cybe_r_wizard@WizardsTower.invalid> |
|---|---|
| Date | 2019-10-14 11:55 -0500 |
| Subject | Re: F. Russell's version of "init" (Was: sysvinit vs systemd) |
| Message-ID | <20191014115549.391ec079@WizardsTower> |
| In reply to | #59602 |
On Mon, 14 Oct 2019 15:28:45 -0000 (UTC)
gazelle@shell.xmission.com (Kenny McCormack) wrote:
> In article <qo209g013n4@news1.newsguy.com>,
> F. Russell <frussell@random.info> wrote:
> >On Mon, 14 Oct 2019 13:50:43 +0000, Kenny McCormack wrote:
> >
> >>
> >> If it reaches the point where I actually want to try running it,
> >> I'd probably ask you for more details (and more code).
> >>
> >
> >There's no so much code involved as there is configuration.
> >One just has to know how most things fit together.
> >
> >But Linux really is very, very simple.
>
> I hear ya!
>
> For a long time, I booted (and used) quite usable Linux systems from
> floppy. I was a big fan of Tom's RTBT system. I wonder if that still
> exists in any form nowadays...
There is Peter Garrett's "INX ...is not X"
...but its a hundred ninety one MB of data so no floppy and it is
several years old and no longer being developed, I think. That doesn't
hurt its usefulness, though. I read that it _can_ be installed to a
hard drive (wants it all) or inside a virtual machine.
;-]
>
> Of course, kids these days have it so easy, what with their bootable
> CDs, DVDs, and USB sticks...
>
Yep, the only bootable thing in my youth was my arse when I got caught.
--
Cybe R. Wizard
Technology distinguishable from magic is insufficiently advanced.
[toc] | [prev] | [next] | [standalone]
| From | William Unruh <unruh@invalid.ca> |
|---|---|
| Date | 2019-10-14 14:41 +0000 |
| Subject | Re: F. Russell's version of "init" (Was: sysvinit vs systemd) |
| Message-ID | <qo21eg$tiv$1@dont-email.me> |
| In reply to | #59592 |
On 2019-10-14, Kenny McCormack <gazelle@shell.xmission.com> wrote: > In article <qo1stg0123e@news1.newsguy.com>, > F. Russell <frussell@random.info> wrote: >>On Mon, 14 Oct 2019 12:42:58 +0000, Kenny McCormack wrote: >> >>> >>> Care to post it? I assume from your comment about comments that it is 3415 >>> bytes of source code, not binary. >>> >> >>I'll post it either later this evening or sometime tomorrow. >>I'm stuck with the MS junk at my job right now. >> >>Keep in mind that my solution applies to a stand-alone, >>desktop, workstation with only a single user (me) and no >>network other than an Internet connection through a >>router/modem. >> >>But it's also not just the init script. >> >>Since I assemble my own hardware, I use static device >>nodes (with no udev and no ram disk) and these must be prepared >>beforehand. >> >>My setup also depends on a custom configured kernel to eliminate >>most dependencies that are found in most distros. >> >>The system boots into console mode with a bash shell. Nothing >>else is running. For example, if you want sound then you can >>invoke that when needed. The same for the network. The same >>for X. All that requires short, extra scripts, which involve >>only the loading of modules. >> >>If you understand how Linux works, then, IMO, it is the best >>way to go. Every aspect of the system is under your control. >>Nothing is automatic. >> >>I have been running Linux this way for over 10 years and >>have had nearly zero maintenance issues and nearly zero >>problems. All my software, including the kernel, is the >>very latest. >> > > Sounds cool. > > I think for a first pass, I'd be just interested in taking a look at it, to > get some idea of what you're about. > > If it reaches the point where I actually want to try running it, I'd > probably ask you for more details (and more code). > > Maybe you should wrap it all up into a distro - call it FRLinux. > There was once an operating sysem called DOS. It all fit onto a little floppy disk. Dropped you into a terminal window. If you needed anything you ran a program to do it. In fact there was no init system. It was jus the kernel that did it all (well, and the tiny BIOS). Maybe that is what he is talking about?
[toc] | [prev] | [next] | [standalone]
| From | Soviet_Mario <SovietMario@CCCP.MIR> |
|---|---|
| Date | 2019-10-14 18:43 +0200 |
| Subject | Re: F. Russell's version of "init" (Was: sysvinit vs systemd) |
| Message-ID | <qo28jf$de9$1@dont-email.me> |
| In reply to | #59601 |
On 14/10/2019 16:41, William Unruh wrote: > On 2019-10-14, Kenny McCormack <gazelle@shell.xmission.com> wrote: >> In article <qo1stg0123e@news1.newsguy.com>, >> F. Russell <frussell@random.info> wrote: >>> On Mon, 14 Oct 2019 12:42:58 +0000, Kenny McCormack wrote: >>> >>>> >>>> Care to post it? I assume from your comment about comments that it is 3415 >>>> bytes of source code, not binary. >>>> >>> >>> I'll post it either later this evening or sometime tomorrow. >>> I'm stuck with the MS junk at my job right now. >>> >>> Keep in mind that my solution applies to a stand-alone, >>> desktop, workstation with only a single user (me) and no >>> network other than an Internet connection through a >>> router/modem. >>> >>> But it's also not just the init script. >>> >>> Since I assemble my own hardware, I use static device >>> nodes (with no udev and no ram disk) and these must be prepared >>> beforehand. >>> >>> My setup also depends on a custom configured kernel to eliminate >>> most dependencies that are found in most distros. >>> >>> The system boots into console mode with a bash shell. Nothing >>> else is running. For example, if you want sound then you can >>> invoke that when needed. The same for the network. The same >>> for X. All that requires short, extra scripts, which involve >>> only the loading of modules. >>> >>> If you understand how Linux works, then, IMO, it is the best >>> way to go. Every aspect of the system is under your control. >>> Nothing is automatic. >>> >>> I have been running Linux this way for over 10 years and >>> have had nearly zero maintenance issues and nearly zero >>> problems. All my software, including the kernel, is the >>> very latest. >>> >> >> Sounds cool. >> >> I think for a first pass, I'd be just interested in taking a look at it, to >> get some idea of what you're about. >> >> If it reaches the point where I actually want to try running it, I'd >> probably ask you for more details (and more code). >> >> Maybe you should wrap it all up into a distro - call it FRLinux. >> > > There was once an operating sysem called DOS. It all fit onto a little > floppy disk. Dropped you into a terminal window. If you needed anything > you ran a program to do it. In fact there was no init system. I'm not so sure how to classify CONFIG.SYS and AUTOEXEC.BAT In order to get most peripherals drivers work you had to manually load these with config (prequel) or autoexec (sequel), so imho they were sort of halfway between configuration files and init system, as they affected the way the DOS would start > It was jus > the kernel that did it all in DOS????? dos kernel did very very little basic work, not even able to see the whole memory without some further drivers such as "highmem or himem.SYS" (i cant recall the exact spell). It just managed to support FAT and low / middle level disk operations. Also the CD was not supported natively by many DOS, and had to be "inited" by another external driver loaded in config.sys windows itself relied on these and other hybrid parameters/instruction configuration files, before passing on to the "registry" >(well, and the tiny BIOS). Maybe that is what > he is talking about? > -- 1) Resistere, resistere, resistere. 2) Se tutti pagano le tasse, le tasse le pagano tutti Soviet_Mario - (aka Gatto_Vizzato)
[toc] | [prev] | [next] | [standalone]
| From | Aragorn <thorongil@telenet.be> |
|---|---|
| Date | 2019-10-14 19:06 +0200 |
| Subject | Re: F. Russell's version of "init" (Was: sysvinit vs systemd) |
| Message-ID | <20191014190632.3ee14ff6@nx-74205> |
| In reply to | #59608 |
On 14.10.2019 at 18:43, Soviet_Mario scribbled: > On 14/10/2019 16:41, William Unruh wrote: > > > There was once an operating sysem called DOS. It all fit onto a > > little floppy disk. Dropped you into a terminal window. If you > > needed anything you ran a program to do it. In fact there was no > > init system. > > I'm not so sure how to classify CONFIG.SYS and AUTOEXEC.BAT > In order to get most peripherals drivers work you had to > manually load these with config (prequel) or autoexec > (sequel), so imho they were sort of halfway between > configuration files and init system, as they affected the > way the DOS would start It's a good analogy, yes. CONFIG.SYS would load device drivers and a few TSRs, and AUTOEXEC.BAT would set up the runtime environment, which could also include the loading of TSRs. > > It was just the kernel that did it all > > in DOS????? dos kernel did very very little basic work, not > even able to see the whole memory without some further > drivers such as "highmem or himem.SYS" (i cant recall the > exact spell). HIMEM.SYS (later HIMEM.EXE) for XMS support, and EMM386.SYS (later EMM386.EXE) for either EMS or UMB support — it could not do both at the same time. In addition to that, all Windows versions up until and including Windows ME — but excluding the NT-based Windows versions — still ran all code and data in the processor's ring 0, using DPMS (DOS Protected Mode Specification). > It just managed to support FAT and low / middle level disk > operations. Also the CD was not supported natively by many > DOS, and had to be "inited" by another external driver > loaded in config.sys I think what Bill means is that in DOS, *everything* ran in kernel mode — even user applications — because the 8086/8088 processor (and any later x86 processor when running in real mode) doesn't have privilege separation, nor does it have access to the processor's memory management unit. So there were plenty of occasions where DOS didn't have a device driver for a specific device to be used in a certain application, but whereby the application itself came with its own device driver. For instance, WordPerfect 5.x came with its own mouse driver, its own printer drivers and its own graphics driver. So did Lotus 123, dBASE III/IV, TurboPascal, Freehand, and several other applications. DOS was therefore not a real operating system. It was essentially an executable loader on top of the BIOS firmware, and it had some rudimentary file management and memory management utilities. As soon as an application was loaded into memory, DOS would take a step back, and the application had full control over the machine until it exited again. Then DOS had to reload its command interpreter COMMAND.COM, either from the hard-coded default — i.e. the root directory of the boot drive — or the path to COMMAND.COM as set via the %COMSPEC variable, which was commonly set in AUTOEXEC.BAT. -- With respect, = Aragorn =
[toc] | [prev] | [next] | [standalone]
| From | Eric Pozharski <whynot@pozharski.name> |
|---|---|
| Date | 2019-10-15 11:24 +0300 |
| Subject | Re: F. Russell's version of "init" (Was: sysvinit vs systemd) |
| Message-ID | <slrnqqb0id.tku.whynot@orphan.zombinet> |
| In reply to | #59613 |
with <20191014190632.3ee14ff6@nx-74205> Aragorn wrote: *SKIP* > As soon as an application was loaded into memory, DOS would take a > step back, and the application had full control over the machine until > it exited again. Then DOS had to reload its command interpreter > COMMAND.COM, either from the hard-coded default — i.e. the root > directory of the boot drive — or the path to COMMAND.COM as set via > the %COMSPEC variable, which was commonly set in AUTOEXEC.BAT. No. command.com was/is(?) executing autoexec.bat line-by-line. If last line of autoexec.bat was some kind of shell (in my corner of the world nc was hugely popular; but I was special snowflake -- I did everything with 4dos; good thing I wasn't exposed to crowd, it would be mind-blowing) then command.com would stay behind until that shell would finish. And then command.com would go in prompt mode, eg C:\> _ However, indeed, anything spawned from whatever was found in autoexec.bat by command.com would overtake control and that (found) would stay behind doing nothing only eating memory. I have no experience with FreeDOS though. I've been told it does some incredible things -- like true multitasking, background and such. But I don't have first-hand experience. -- Torvalds' goal for Linux is very simple: World Domination Stallman's goal for GNU is even simpler: Freedom
[toc] | [prev] | [next] | [standalone]
| From | Aragorn <thorongil@telenet.be> |
|---|---|
| Date | 2019-10-15 11:43 +0200 |
| Subject | Re: F. Russell's version of "init" (Was: sysvinit vs systemd) |
| Message-ID | <20191015114316.02b600b3@nx-74205> |
| In reply to | #59668 |
On 15.10.2019 at 11:24, Eric Pozharski scribbled: > with <20191014190632.3ee14ff6@nx-74205> Aragorn wrote: > > *SKIP* > > As soon as an application was loaded into memory, DOS would take a > > step back, and the application had full control over the machine > > until it exited again. Then DOS had to reload its command > > interpreter COMMAND.COM, either from the hard-coded default — i.e. > > the root directory of the boot drive — or the path to COMMAND.COM > > as set via the %COMSPEC variable, which was commonly set in > > AUTOEXEC.BAT. > > No. command.com was/is(?) executing autoexec.bat line-by-line. Yes, I know that. > If last line of autoexec.bat was some kind of shell (in my corner of the > world nc was hugely popular; but I was special snowflake -- I did > everything with 4dos; good thing I wasn't exposed to crowd, it would > be mind-blowing) then command.com would stay behind until that shell > would finish. And then command.com would go in prompt mode, eg > > C:\> _ > > However, indeed, anything spawned from whatever was found in > autoexec.bat by command.com would overtake control and that (found) > would stay behind doing nothing only eating memory. Yes, but I'm afraid you've misread me. My reference to AUTOEXEC.BAT was merely that this is commonly where DOS environment variables are set, and so it was quite common — especially for hard disk installations — to have something in AUTOEXEC.BAT like... SET COMSPEC=C:\DOS\COMMAND.COM And if you were to start a heavyweight application from the likes of WordPerfect 5.x or dBASE IV, then this application would overwrite as much of the used RAM as possible, including COMMAND.COM. Then, after WordPerfect or dBASE were shut down, DOS would reload COMMAND.COM into memory from where the COMSPEC variable says it should be loaded from. > I have no experience with FreeDOS though. I've been told it does some > incredible things -- like true multitasking, background and such. > But I don't have first-hand experience. I didn't know FreeDOS could do multitasking, but I'm not surprised. I haven't had a chance to experiment with it yet, although I do have an old Pentium MMX box that I was given for free sitting in a corner somewhere, and that I've reserved that box for testing FreeDOS. -- With respect, = Aragorn =
[toc] | [prev] | [next] | [standalone]
| From | "Carlos E.R." <robin_listas@es.invalid> |
|---|---|
| Date | 2019-10-15 13:41 +0200 |
| Subject | Re: F. Russell's version of "init" (Was: sysvinit vs systemd) |
| Message-ID | <4sng7g-cqo.ln1@Telcontar.valinor> |
| In reply to | #59669 |
On 15/10/2019 11.43, Aragorn wrote: > On 15.10.2019 at 11:24, Eric Pozharski scribbled: > >> with <20191014190632.3ee14ff6@nx-74205> Aragorn wrote: >> >> *SKIP* >>> As soon as an application was loaded into memory, DOS would take a >>> step back, and the application had full control over the machine >>> until it exited again. Then DOS had to reload its command >>> interpreter COMMAND.COM, either from the hard-coded default — i.e. >>> the root directory of the boot drive — or the path to COMMAND.COM >>> as set via the %COMSPEC variable, which was commonly set in >>> AUTOEXEC.BAT. >> >> No. command.com was/is(?) executing autoexec.bat line-by-line. > > Yes, I know that. > >> If last line of autoexec.bat was some kind of shell (in my corner of the >> world nc was hugely popular; but I was special snowflake -- I did >> everything with 4dos; good thing I wasn't exposed to crowd, it would >> be mind-blowing) then command.com would stay behind until that shell >> would finish. And then command.com would go in prompt mode, eg >> >> C:\> _ >> >> However, indeed, anything spawned from whatever was found in >> autoexec.bat by command.com would overtake control and that (found) >> would stay behind doing nothing only eating memory. > > Yes, but I'm afraid you've misread me. My reference to AUTOEXEC.BAT > was merely that this is commonly where DOS environment variables are > set, and so it was quite common — especially for hard disk > installations — to have something in AUTOEXEC.BAT like... > > SET COMSPEC=C:\DOS\COMMAND.COM > > And if you were to start a heavyweight application from the likes of > WordPerfect 5.x or dBASE IV, then this application would overwrite as > much of the used RAM as possible, including COMMAND.COM. Not completely. A small stub remained. Yes, MsDOS was an operating system, but limited by today's standards. It was not only the 3 system files (io.sys, command.com and another one I forget), but all the utilities in the \dos directory. -- Cheers, Carlos.
[toc] | [prev] | [next] | [standalone]
| From | Aragorn <thorongil@telenet.be> |
|---|---|
| Date | 2019-10-15 14:42 +0200 |
| Subject | Re: F. Russell's version of "init" (Was: sysvinit vs systemd) |
| Message-ID | <20191015144202.2981cb26@nx-74205> |
| In reply to | #59679 |
On 15.10.2019 at 13:41, Carlos E.R. scribbled: > On 15/10/2019 11.43, Aragorn wrote: > > > Yes, but I'm afraid you've misread me. My reference to AUTOEXEC.BAT > > was merely that this is commonly where DOS environment variables are > > set, and so it was quite common — especially for hard disk > > installations — to have something in AUTOEXEC.BAT like... > > > > SET COMSPEC=C:\DOS\COMMAND.COM > > > > And if you were to start a heavyweight application from the likes of > > WordPerfect 5.x or dBASE IV, then this application would overwrite > > as much of the used RAM as possible, including COMMAND.COM. > > Not completely. A small stub remained. > > Yes, MsDOS was an operating system, but limited by today's standards. > It was not only the 3 system files (io.sys, command.com and another > one I forget), [... For Microsoft MS-DOS, the three system files were... - IO.SYS - MSDOS.SYS - COMMAND.COM For IBM PC-DOS, the three system files were... - IBMBIO.COM - IBMDOS.COM - COMMAND.COM COMMAND.COM was only the command interpreter. The core system was MSDOS.SYS/IBMDOS.COM, with IO.SYS/IMBIO.COM being essentially the boot loader, as an extension of the legacy BIOS firmware. > ...] but all the utilities in the \dos directory. Yes, it did have utilities, but not all that many, and DOS did not distinguish between "kernel" and "userland", because the processor did not support privilege separation. Every application running on DOS had full control of the machine, including full write access to all writeable memory addresses and to the memory addresses between the 640 KiB boundary and the 1024 KiB boundary that were reserved for hardware access. So in essence, once you loaded an application into memory, the application in question would effectively become the operating system, and DOS would move out of the way. -- With respect, = Aragorn =
[toc] | [prev] | [next] | [standalone]
| From | "Carlos E.R." <robin_listas@es.invalid> |
|---|---|
| Date | 2019-10-15 20:45 +0200 |
| Subject | Re: F. Russell's version of "init" (Was: sysvinit vs systemd) |
| Message-ID | <ingh7g-g33.ln1@Telcontar.valinor> |
| In reply to | #59681 |
On 15/10/2019 14.42, Aragorn wrote: > On 15.10.2019 at 13:41, Carlos E.R. scribbled: > >> On 15/10/2019 11.43, Aragorn wrote: >> >>> Yes, but I'm afraid you've misread me. My reference to AUTOEXEC.BAT >>> was merely that this is commonly where DOS environment variables are >>> set, and so it was quite common — especially for hard disk >>> installations — to have something in AUTOEXEC.BAT like... >>> >>> SET COMSPEC=C:\DOS\COMMAND.COM >>> >>> And if you were to start a heavyweight application from the likes of >>> WordPerfect 5.x or dBASE IV, then this application would overwrite >>> as much of the used RAM as possible, including COMMAND.COM. >> >> Not completely. A small stub remained. >> >> Yes, MsDOS was an operating system, but limited by today's standards. >> It was not only the 3 system files (io.sys, command.com and another >> one I forget), [... > > For Microsoft MS-DOS, the three system files were... > > - IO.SYS > - MSDOS.SYS > - COMMAND.COM > > For IBM PC-DOS, the three system files were... > > - IBMBIO.COM > - IBMDOS.COM > - COMMAND.COM > > COMMAND.COM was only the command interpreter. The core system was > MSDOS.SYS/IBMDOS.COM, with IO.SYS/IMBIO.COM being essentially the boot > loader, as an extension of the legacy BIOS firmware. > >> ...] but all the utilities in the \dos directory. > > Yes, it did have utilities, but not all that many, and DOS did not > distinguish between "kernel" and "userland", because the processor did > not support privilege separation. > > Every application running on DOS had full control of the machine, > including full write access to all writeable memory addresses and to > the memory addresses between the 640 KiB boundary and the 1024 KiB > boundary that were reserved for hardware access. All correct :-) > > So in essence, once you loaded an application into memory, the > application in question would effectively become the operating system, > and DOS would move out of the way. I would not go that far. The BIOS was there, and applications made extensive use of it. Int 21, for instance. The operating system was bypassed when one needed more speed or things that were not supported. The typical one was the screen. Nobody replaced the disk file operation, for instance, unless you were writing a disk editor, repair tool, defrager... > > -- Cheers, Carlos.
[toc] | [prev] | [next] | [standalone]
| From | gazelle@shell.xmission.com (Kenny McCormack) |
|---|---|
| Date | 2019-10-15 21:18 +0000 |
| Subject | Old farts showing off their knowledge of ancient PC operating systems... (Was: F. Russell's version of "init" (Was: sysvinit vs systemd)) |
| Message-ID | <qo5d38$849$1@news.xmission.com> |
| In reply to | #59669 |
In article <20191015114316.02b600b3@nx-74205>,
Aragorn <thorongil@telenet.be> wrote:
...
>Yes, but I'm afraid you've misread me. My reference to AUTOEXEC.BAT
>was merely that this is commonly where DOS environment variables are
>set, and so it was quite common — especially for hard disk
>installations — to have something in AUTOEXEC.BAT like...
>
> SET COMSPEC=C:\DOS\COMMAND.COM
>
>And if you were to start a heavyweight application from the likes of
>WordPerfect 5.x or dBASE IV, then this application would overwrite as
>much of the used RAM as possible, including COMMAND.COM.
>
>Then, after WordPerfect or dBASE were shut down, DOS would reload
>COMMAND.COM into memory from where the COMSPEC variable says it should
>be loaded from.
Since this thread seems to have degenerated into us old farts displaying
our archaic knowledge of archaic OSes, let me add this:
In DOS 2.x, the COMSPEC variable existed, but was not recognized as such,
for the purpose of re-loading COMMAND.COM. As far as I can tell, it
existed for the purpose of telling programs what to use when "shelling
out", much like $SHELL does in Unix-land.
That is, if you booted from a floppy (as we all did back in those days), a
common trick was to create a small RAM disk, and stash a copy of
COMMAND.COM there. Then you'd set COMSPEC=F:\COMMAND.COM (assuming the
ramdisk was F:) and expect it do the right thing. Unfortunately, this
didn't work, because the system still expected COMMAND.COM to be on the
floppy. If you had removed/swapped/changed the floppy since booting,
you'd get the dreaded "Can't load COMMAND.COM. System halted" message.
Notes on the above:
1) Somebody wrote a little utility (called, I think, SHELL.COM) that
allowed you to do what "set COMSPEC" should have done; namely,
change the actual data value inside DOS that tells it from whence
to reload COMMAND.COM. This little utility was quite handy, back
in the day.
2) The underlying bug was fixed in DOS 3.x (and beyond), so that
setting COMSPEC did the right thing.
--
Just for a change of pace, this sig is *not* an obscure reference to
comp.lang.c...
[toc] | [prev] | [next] | [standalone]
Page 2 of 4 — ← Prev page 1 [2] 3 4 Next page →
Back to top | Article view | alt.os.linux
csiph-web