View previous topic :: View next topic |
Author |
Message |
technotorpedo Apprentice
Joined: 10 Dec 2019 Posts: 151
|
Posted: Mon Nov 08, 2021 2:41 pm Post subject: Please share your stats. |
|
|
While I personally very much like systemd, have long had reservations about what's reported by the systemd-analyze command. it's junk ... here's the output it reports for my old beloved beastie.
Quote: | Startup finished in 8.101s (kernel) + 19.649s (userspace) = 27.751s
graphical.target reached after 18.962s in userspace |
Specs: Dualcore T3400 @2.17ghz and an ancient mechanical hdd, Western Digi 7,200rpm type. I wanted to know boot-time to WORKING desktop, of course that being when I can actually do something, begin using my laptopasaurus. So put the following at the bottom of my Openbox autostart file, I occasionally uncomment it to get more accurate times ..
Quote: | xterm -e bash -c "uptime -s >> .realdeal && uptime >> .realdeal && systemd-analyze >> .realdeal" & |
Doing the math lets me know xterm was ready to go, accepted input and sent all that jazz above to the .realdeal file in my users home directory. Once I crunch the numbers tells me my old system is hitting working state around 55secs. Would you guys be kind enough to share your times to working desktop at boot vs what's reported by systemd-analyze, brief info about system specs ?
Thanks n advance ..
Last edited by technotorpedo on Wed Nov 10, 2021 3:02 am; edited 1 time in total |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54577 Location: 56N 3W
|
Posted: Mon Nov 08, 2021 2:55 pm Post subject: |
|
|
technotorpedo,
My system is up in about 34 sec. That includes 10 sec zeroing its RAM.
Then, I don't have clutter like an initrd or systemd or even udev.
There is no autoblackmagic of any kind. No cold plugging, no hot plugging, just boot and go. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
technotorpedo Apprentice
Joined: 10 Dec 2019 Posts: 151
|
Posted: Mon Nov 08, 2021 3:12 pm Post subject: |
|
|
^ Thanks, sounds like a pretty slick setup. Ah dratz ... no systemd, no systemd-analyze output ! Keep finding myself wondering if it's consistent across systems. For as many Linux users as there are, frustrating how hard it can be to find simple/solid stats to compare. Have had this old thing for quite awhile, planning on keeping until wheels fall off it. If had the know-how and fortitude ( I don't), pretty sure even attempting a Gentoo install would kill my old laptop.
Mind sharing some rough specs for that system NeddySeagoon ? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54577 Location: 56N 3W
|
Posted: Mon Nov 08, 2021 3:27 pm Post subject: |
|
|
technotorpedo,
Building Gentoo and Installing Gentoo can be separated.
There is no need to build on the system you want to install on.
My wife's E-350 system used to take about two weeks to update running 24/7. That was with help from distcc too.
At the weekend, I cut that to under 12 hours by building the binaries that it would have built for itself on another system, the installing the binaries.
An E-350 is a 10 year old or so AMD CPU. Its a fanless system as its mainly a media player.
To add to the interest, the CPU has a hardware bug, so it can only support one stick of RAM. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
technotorpedo Apprentice
Joined: 10 Dec 2019 Posts: 151
|
Posted: Mon Nov 08, 2021 3:53 pm Post subject: |
|
|
^ Yowza ... This workhorse is the only thing onhand here. Have mucho respect for Gentoo, a great wiki/docs + the distro users, seems finding a Linux community where people are really enthusiastic about the platform and knowing their stuff is mostly a thing of the past nowadays. Though glad Linux is reaching people and getting recognized on desktop. Am also pretty set on how Debian operates and a wee bit addicted to all the binary goodies in repositories. Debian gets along well with this old system. |
|
Back to top |
|
|
saellaven l33t
Joined: 23 Jul 2006 Posts: 654
|
Posted: Mon Nov 08, 2021 4:00 pm Post subject: |
|
|
With openrc and no initrd/initramfs, I have a working system in 15.21 seconds. Add about 10 seconds if you want to count for the time the system POSTs and starts loading the kernel. Startup time includes networking demons (sendmail, samba, nfs, named, sshd, cupds).
3700x with 32 GB RAM with / on a Samsung SSD 970 EVO Plus 500GB.
Another system with similar specs but a lot more services running takes 23 seconds (clamd being the hog there).
In my case, I virtually never care about startup time. My computers only come down to reboot to a new kernel, to test startup scripts after an update (I used to do the 1000+ days of runtime thing, but if you never check that your system boots properly, you don't know where/when the problem came in), or to add new hardware. _________________ Ryzen 3700X, Asus Prime X570-Pro, 64 GB DDR4 3200, GeForce GTX 1660 Super
openrc-0.17, ~vanilla-sources, ~nvidia-drivers, ~gcc |
|
Back to top |
|
|
Goverp Advocate
Joined: 07 Mar 2007 Posts: 2177
|
Posted: Mon Nov 08, 2021 4:05 pm Post subject: |
|
|
My desktop machine is remarkably consistent:
Power on to Grub boot menu: 15s (i.e. slow BIOS)
Grub boot to SDDM login screen: 15s (this is via OpenRC; no systemd here)
SDDM login to KDE desktop open: 15s
My laptop is faster to the desktop as it has everything on an SSD; the desktop has almost everything except /home on NVMe, but /home is on 5-disk RAID-10, and KDE seems to need time to process all its config files and so on.
AMD ryzen2 processor running at nominal 3.8 GHz. Lots of processors, but startup is mainly sequential stuff, OpenRC parallel start notwithstanding. _________________ Greybeard |
|
Back to top |
|
|
technotorpedo Apprentice
Joined: 10 Dec 2019 Posts: 151
|
Posted: Mon Nov 08, 2021 4:20 pm Post subject: |
|
|
^ Hey thanks saellaven (and Goverp.)
It's the ridiculous discrepancy in reported stats for systemd-analyze vs actually meaningful ones that make me interested in this. Not seeing how/why it wouldn't be consistently off, regardless of hardware specs. For sure agree, not like cold boot-time means much. Though not going to lie either, I do get a perverse pleasure out of being fairly confident could set this antique down next to a much higher spec + MUCH, MUCHHHH more expensive Windows based system and it/Linux would stomp the other guy.
Would like to think in all around performance. Have thought about installing a cheapie SSD in the thing. About the time I did, some major component in it will probably fail anyway !!! Think dust and cat hair is the only thing holding it together. |
|
Back to top |
|
|
technotorpedo Apprentice
Joined: 10 Dec 2019 Posts: 151
|
Posted: Mon Nov 08, 2021 4:30 pm Post subject: |
|
|
Also glad the Gentoo community is supporting OpenRC, not anything like an init guru but have looked over the features comparison charts and long came to think of it as the only other serious alternative for conventional form factor Linux (server/desktop.) |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5094 Location: Bavaria
|
Posted: Mon Nov 08, 2021 4:36 pm Post subject: |
|
|
NeddySeagoon wrote: | My system is up in about 34 sec. That includes 10 sec zeroing its RAM. |
I have the same security option configured in my kernel and for 16 GB it needs ...
Code: | [ 0.027301] mem auto-init: stack:byref_all(zero), heap alloc:on, heap free:on
[ 0.027301] mem auto-init: clearing system memory may take some time...
[ 1.353130] Memory: 16099344K/16658404K available (12296K kernel code, 1865K rwdata, 2120K rodata, 1252K init, 1596K bss, 558800K reserved, 0K cma-reserved) |
... 1.3 seconds ... so you must have a big monster machine ... (128 GB ?) |
|
Back to top |
|
|
cboldt Veteran
Joined: 24 Aug 2005 Posts: 1046
|
Posted: Mon Nov 08, 2021 4:55 pm Post subject: |
|
|
Anecdotes for you. OpenRC across the board here, but only four machines. Most machines rarely boot, one (traveling laptop) boots more often, sometimes ten times a day, sometimes once each two weeks.
Speed to start is greatly affected by hardware. SSD is remarkably quicker.
None of the machines takes a minute to boot to console. One slow one slowed by clamd, the other by spinning HD. While systemd might give marginally quicker startup, traveling laptop (SSD) goes from cold to full up, 26 windows in FVWM, in about 40 seconds. That's quick enough for me, and I value the plain text logs and other "transparency" items of OpenRC quite highly. I doubt I'd save 10 seconds by going to systemd, and even if it did that, I'd not notice.
I get similar startup time on Thinkpad T420, Thinkpad T450 (two recent incarnations of traveling laptop). |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54577 Location: 56N 3W
|
Posted: Mon Nov 08, 2021 5:41 pm Post subject: |
|
|
pietinger,
Code: | [ 0.166408] mem auto-init: clearing system memory may take some time...
[ 10.038255] Memory: 131753980K/134123032K available (16387K kernel code, 1531K rwdata, 8188K rodata, 1332K init, 1080K bss, 2368792K reserved, 0K cma-reserved) |
In May I got offered a part time job for three months. I'm still working, six months later, so I bought myself a box of bits for a 'bucket list' system.
Its unlikely I would ever have spare money for upgrades when I go back to being a pensioner, so I bought it all now, except the video card because there are none, unless you buy something second hand for silly money, that has been thrashed within an inch of its life by being used for mining. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
technotorpedo Apprentice
Joined: 10 Dec 2019 Posts: 151
|
Posted: Tue Nov 09, 2021 12:41 am Post subject: |
|
|
Quote: | so you must have a big monster machine ... (128 GB ?) |
Jebuz ... didn't know they made them that big. Thanks for the stats fellas. |
|
Back to top |
|
|
trilithium n00b
Joined: 18 Nov 2019 Posts: 43
|
Posted: Tue Nov 09, 2021 12:50 am Post subject: |
|
|
Power on to console login prompt takes 20.8 seconds on my machine (6.5 years old Skylake, 64 GB RAM, SSDs, one old HDD), most of which is spent in unavoidable BIOS initialization tasks. The only systemd part installed here is udev so no systemd-analyze, but according to the log 4.3 seconds of that is kernel initialization. OpenRC services are also started during this time, but I have pruned those down to as few as I can get away with so that does not take more than a second for a typical boot.
Login to X11 with i3wm ready for commands takes 1.5 seconds. This includes various tweaks to customize my environment, background tasks like dbus/pipewire, and one urxvt terminal, but no other applications since I prefer to launch them manually. |
|
Back to top |
|
|
figueroa Advocate
Joined: 14 Aug 2005 Posts: 3005 Location: Edge of marsh USA
|
Posted: Tue Nov 09, 2021 4:37 am Post subject: |
|
|
My old machine boots to the lightdm prompt quickly; too quickly for me to have given it a second thought -- should time it. It runs 24/7 and reboots for kernel upgrades, usually every 4-8 weeks; currently stable 5.4 series gentoo-sources.
Power button to GRUB prompt is slow -- maybe 10-15 seconds.
dmesg spans 12 seconds
boot log from mounting /sys to starting local spans 27 seconds
It means something but I'm not sure what. I usually watch the messages on the screen scanning for anomalies. _________________ Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi |
|
Back to top |
|
|
spica Guru
Joined: 04 Jun 2021 Posts: 329
|
Posted: Tue Nov 09, 2021 12:35 pm Post subject: |
|
|
OpenRC here.
According to dmesg output, the last record is wifi connection associated on 16th second.
But somewhere in the middle I unlock LUKS manually.
IMO for a laptop the boot time is not a criteria, because users tend to close the lid instead turning it off, and laptop falls asleep, and then resume happens very quickly, much faster than a cold start.
I reboot it once a week maybe, after the @world update. |
|
Back to top |
|
|
technotorpedo Apprentice
Joined: 10 Dec 2019 Posts: 151
|
Posted: Wed Nov 10, 2021 2:48 am Post subject: |
|
|
Thanks for sharing stats guys. Shouldn't be surprised Openrc is widely used among the Gentoo community. Still concluding that yes, likely times reported by people for systemd-analyze are going to be roughly double, same as for me. Have noted in the past the output will tell me I'm making or losing boot-time but when timed to working desktop nothing changed. It does make me question the value of other information that Systemd tool provides.
Ah .. not like it's a major deal. Only like to gather solid stats when trying to determine if whatever tuning is working. Rather than "it feels faster" yada yada, I want numbers. Crappo ... still have a question mark over this. Will just have to keep it on my list of things that make ya go hmmmm. Thanks again everybody. |
|
Back to top |
|
|
the_actuary n00b
Joined: 04 Apr 2021 Posts: 48
|
Posted: Wed Nov 10, 2021 3:59 am Post subject: |
|
|
Using systemd-analyze did not reflect a clear picture for me when I used to run other distros. It underestimated boot times by about 10 secs. I manually timed it instead.
Using openrc + initramfs (needed for luks), and excluding time taken to type in the password for decryption, my laptop & desktop both take about 28 secs to auto log into KDE desktop environment. In another system where I don't have encryption but use openrc, it takes about 20 secs to get into a working xfce environment. |
|
Back to top |
|
|
technotorpedo Apprentice
Joined: 10 Dec 2019 Posts: 151
|
Posted: Wed Nov 10, 2021 6:54 am Post subject: |
|
|
^ Thanks for that too.
Have noticed inconsistencies with the thing(systemd-analyze) still always far off if someone wants to know time to a system they can actually start using. Think of it as mostly gibberish stats and not all that good a metric for trying to gauge how well a system is running. Still use it, cause it gives some numbers. Formerly this old thing was getting like 43secs cold boot to working, though in the interim switched to using wicd-gtk for convenience vs was using networkd + wpasupplicant. The switch added 10-12secs apparently but the stats systemd-analyze was giving has always been badly off in terms of a working system.
Used to custom compile kernels and got some results from that in performance gains (nothing outstanding anyway) but gotten lazy and mostly just been using kernel's from the repo's. Also being a compulsive system-tuner, that added boot-time + whatever extra overhead wicd-gtk + applet is adding is bugging me. Somone knows they probably need to get a life, when they stop watch boot-time like I tend to. Been dorking around with a script + keybind to autoconnect/disconnect my wireless interface. Only haven't gotten a finished/working solution setup yet.
Long meant to mess w Openrc, it's been on the 2do-list quite awhile. Since it's receiving support from the Gentoo crowd, can feel confident in it being a good alternative init to Systemd. The size of Systemd's codebase is kind of disconcerting to me vs a saner init like Openrc. Ah .. yep, gotten lazy, so when upstream and Debian voted the thing in as default init, figured I wouldn't spend much time swimming against the upstream people and just embrace the suck. Errrr ... not that matters, overall I like Systemd well enough.
Figured ah, screw it and googled learning to use the thing vs watching many Linux users run around in circles screaming about impending and certain DOOM. Clearly the folks who know what they're doing quietly setup whichever init they prefer and got on with life. Still think if I got better acquainted with OpenRc, surely could get some gains, at least system overhead savings ? .. |
|
Back to top |
|
|
the_actuary n00b
Joined: 04 Apr 2021 Posts: 48
|
Posted: Wed Nov 10, 2021 7:23 am Post subject: |
|
|
I think some others would be far more knowledgeable than me in this, but I think the main advantage of openrc is that it makes life simple. I don't think there's a performance gain by using either openrc or systemd. systemd as an init system is ok, but I don't know what's it's doing managing a million other things? I think gentoo users in general prefer openrc because they have an option to do so, and they find it simpler to do so. In most other distros, you don't exactly get an option of swapping your init. |
|
Back to top |
|
|
technotorpedo Apprentice
Joined: 10 Dec 2019 Posts: 151
|
Posted: Wed Nov 10, 2021 8:05 am Post subject: |
|
|
^ Thinking it'd have to reduce some in terms of memory + cpu-overhead. Quick google said .. as of 2020 Systemd was about 5% the size of the dang Linux kernel !! Of course that's likely expanded further since then. OpenRc is no doubt tiny compared. No biggie either way, thing about opting for Systemd is I can be confident it's getting a bunch of upstream pro-development attention. Think the same for Openrc because the Gentoo folks endorse it.
Still major upstream players adopted Systemd, so made me disinclined to endlessly dodging whatever decisions they make, hard depends, what other open source projects end up doing, no init script's this and that's etc and blahblah. Systemd works fine for me, never had the horror stories I've seen others talk about with it. So far all issues experienced were Pebcak/self-inflicted with Systemd and not hard to resolve.
Wouldn't be too tough to switch it out still on Debian, at least don't think it'd be. Mx gnu/Linux keeps pace with stable releases and they still have the shim thing. Could install from their repo's as needed. Not astronomically confident in the ability of the people who dev/maintain that distro personally and do have udev installed here. Not saying anything negative about the Mx people either. Just my impression/feelings on things. |
|
Back to top |
|
|
technotorpedo Apprentice
Joined: 10 Dec 2019 Posts: 151
|
Posted: Wed Nov 10, 2021 9:16 am Post subject: |
|
|
Dang it more ramblings. Had reservations about the systemd-shim thing a long time. As upstream and major projects start developing to use Systemd, whatever features in it and actually expect to interact with it, require it to actually do things, having some dummy package named Systemd installed, going, yep, I'm here, Systemd is installed, yep, dependencies are satisfied here ... Then sending whatever signals-etc to /dev/null isn't likely to work out smoothly or who knows, maybe it will but am against it for the longhaul.
I don't dislike Mx (haven't tried it, no plans to), seems well thought of overall, gets positive reviews, apparently reasonably popular. Though noticed they actually resorted to putting out a paid bounty to get some developer to keep the systemd-shim thing they use working. Tells me a couple things, a) they must not have a dev inhouse with the skill to handle it, b) who'd they hire to do it, how'd they vet this person and if you don't have anyone inhouse with the know-how, how can they check this persons work ? Well then there's c) They cared enough about the userbase and a feature they want to offer to put money, where mouth is too. Oh well ... sorry getting off topic. Errrr more offtopic ?
Hey ... systemd-analyze is same on Gentoo, as anything else surely. |
|
Back to top |
|
|
technotorpedo Apprentice
Joined: 10 Dec 2019 Posts: 151
|
Posted: Wed Nov 10, 2021 11:19 am Post subject: |
|
|
In other dorkish news:
Quote: | NeddySeagoon wrote:
My system is up in about 34 sec. That includes 10 sec zeroing its RAM. |
Quote: | pietinger wrote:
I have the same security option configured in my kernel and for 16 GB it needs ... 1.3 secs |
Does anyone else get the mental image of NeddySeagoon cackling and going, HA ! I can keep .34% of the entire internet just in my system's RAM, it's mine ! All mineeeee ! Hey .. @NeddySeagoon, leave some memory for the rest us poor smoes of the world to use dude ! |
|
Back to top |
|
|
Goverp Advocate
Joined: 07 Mar 2007 Posts: 2177
|
Posted: Wed Nov 10, 2021 3:55 pm Post subject: |
|
|
Eccles, why do you need all that memory?
Well Bluebottle, to put the time in.
Why?
Well, if someone asks me the time, I can tell them.
Oooh, that's clever Eccles. Will you tell me the time please?
No Bluebottle, I can't find it.
(with apologies to spike milligna) _________________ Greybeard |
|
Back to top |
|
|
figueroa Advocate
Joined: 14 Aug 2005 Posts: 3005 Location: Edge of marsh USA
|
Posted: Wed Nov 10, 2021 5:34 pm Post subject: |
|
|
technotorpedo wrote: | Dang it more ramblings. ... |
I suggest you get actual experience with OpenRC and MX-Linux, which boots by default with sysvinit, with systemd installed but inactive and does not get in the way, although it is a well supported boot-time option. Many thousands of users are very satisfied with the MX approach, including me where I'm using it on a school's desktop and computer lab PCs (where we don't use systemd). Your trash talking MX based on a couple of news stories doesn't lend much credibility to the rambling about it.
Here is a number for you. A well developed installation of MX-18 (Debian stretch, stable) in a VirtualBox virtual machine on this machine, currently boots from the grub prompt to usable auto log in desktop in 35 seconds. It used to be about 1/3 of that, but Intel CPU security mitigations in the kernels on both sides (host and guest) have slowed down boot time considerably.
The raw MX-21_64 iso boots over NFS in a VirtualBox VM to usuable desktop in 42 seconds, but shut down and cold boot again and it comes up to usable desktop in just 20 seconds, no doubt because of caching on the host.
The raw MX-19_64 iso in same test is nearly identical (within 2-3 seconds), while the new antiX-21 iso w/sys-v-init gets to the default desktop in about 32 seconds for first cold start.
But, by comparison, a more-or-less out-of-the-box MX-21_64, sys-v-init, default 4.19 kernel, hardware installation on old spinning rust IDE connected drives on a PCCHIPS A15G/A15G, BIOS 080015, 08/13/2009, AMD Athlon(tm) 7850 Dual-Core Processor, 4 GB of RAM, takes 70 seconds from grub to fully settled down XFCE desktop.
On the same hardware, up-to-date 32 bit Gentoo w/OpenRC, gentoo-sources-4.9.288 goes from grub to lightdm login prompt in 40 seconds. Logging in takes @13 seconds for the LXDE desktop to settle down. _________________ Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|