
Thank you, davidm,davidm wrote:Are you really mostly focused on improving boot time though?
For overall performance I would think a SSD hard drive would help quite a bit if you don't already have one. And what kind of i3 is in there? They can range from about like an old core 2 in performance all the way up to pretty good depending on the model of the CPU. That might be a bottleneck there depending on what you have.
I wouldn't expect going to mdev to help too much...
Thank you Doc,The Doctor wrote:Mdev is a serous trade off and it probably won't save too much time because it needs to do basically the same job. Static dev would probably be faster, but again trade offs.
If you really want to speed things along, look in /etc/rc.conf and set rc_parallel="YES" after you read the warnings.
Doc ... well, no, mdev is considerably faster than udev, and though I've never used bootchart it certainly doesn't take '15.817 s' to do its thing. The size (and so complexity) of the execuatble is also a consideration ... mdev is a tiny 26K. There is a small "trade off" in using mdev, but that is mainly due to udev having set itself as somekind of 'standard' for devkitchensinkatude (ie, so >sys-apps/usbutils-007 doesn't build without it ... because, well, its udev, and the systemd developers made it so).The Doctor wrote:Mdev is a serous trade off and it probably won't save too much time because it needs to do basically the same job.
Code: Select all
# ls -lh /bin/{b,d}ash
-rwxr-xr-x 1 root root 670K 2015-08-25 13:48 /bin/bash
-rwxr-xr-x 1 root root 90K 2015-07-12 13:20 /bin/dashCode: Select all
# emerge app-shells/dash app-eselect/eselect-sh
# eselect sh list
# eselect sh set {n}samiswt ... correct, in fact it can't because if removed its nolonger there ;)samiswt wrote:[...] booting time is the same(38.5 s), and systemd-udevd time consuming is the same (15.817 s) as well. I've unmerged sys-fs/udev, systemd-udev should not be showing up, right?
Not enough information to say why that's the case ...samiswt wrote:mdev service has replaced udev at runlevel. Why is it still the same?
Well, that works here, so it has to be something your end. BTW, mdev isn't a daemon (like systemd-udevd) so it doesn't 'start', it just executes.samiswt wrote:By the way, the difference between udev and mdev is that using ctl+alt+F2, I can't switch to tty2 any more after mdev started.
You're welcome.samiswt wrote:And I'll try to replace bash with dash after that. Thank you!
Leio ... that particular meme has been shown to be fallacious, it may boot faster than Redhat's sysvrc but there is very little in the claim otherwise ... even systemd devs have played down this 'feature' as data provided counter-evidence (ie, boot times slowing down after some use ... go figure). Also, what you seem to be saying above is that systemd-udev's '15.817 s' is due to it being used improperly (ie, outside of systemd) ... so how does systemd make the running of systemd-udev faster? The irony is, of course, that systemd-udev is part of systemd, that's not '15.817 s' to run an rcscript that is the time taken by systemd-udev ... your suggested solution seems to be "more systemd".Leio wrote:If fast boot time is your concern, convert to systemd :) As in, systemd instead of openrc, not systemd-udevd - though that will then come from systemd package iirc, not sys-fs/udev
Yeah, "superior architecture" ... that is complete BS, or at minimum another unsupported claim.Leio wrote:there's nothing to tune there really, it'll be much faster thanks to the superior architecture.
Which is why I said it's a side-effect of the architecture/approach.khayyam wrote:Leio ... that particular meme has been shown to be fallacious, it may boot faster than Redhat's sysvrc but there is very little in the claim otherwise ... even systemd devs have played down this 'feature' as data provided counter-evidence
I didn't pay good attention to the initial post with the I/O times there. Seems possibly like a misconfiguration, perhaps devtmpfs isn't used and it somehow still works, but slow? Does the kernel configuration of gentoo-source (if that's what's used) have selected OpenRC or systemd configuration (whichever is used, or both), which is patched into gentoo-sources Kconfig to automatically enable for you all that's required?khayyam wrote:Also, what you seem to be saying above is that systemd-udev's '15.817 s' is due to it being used improperly (ie, outside of systemd) ... so how does systemd make the running of systemd-udev faster? The irony is, of course, that systemd-udev is part of systemd, that's not '15.817 s' to run an rcscript that is the time taken by systemd-udev ... your suggested solution seems to be "more systemd".

The warning is in the file, along with the original setting.samiswt wrote:Thank you Doc,The Doctor wrote:Mdev is a serous trade off and it probably won't save too much time because it needs to do basically the same job. Static dev would probably be faster, but again trade offs.
If you really want to speed things along, look in /etc/rc.conf and set rc_parallel="YES" after you read the warnings.
I had added that line to my rc.conf. Where could the warnings be and what do they look like? Printing on sceen? I videoed the whole booting process, there is no warning. I've done the replacement just now, I haven't got chance to check my bootchart.png, I'll update it any way, but not too much time mdev saved, as you said.
Leio ... except that you didn't say that, what you said was "f fast boot time is your concern, convert to systemd", and that was what the above was responding to. Also, its not a "side effect" if its not true, so you can't counter my contention of the claim with "its a side-effect of the architecture" ... unless you think that repeating the claim somehow makes it more true.Leio wrote:Which is why I said it's a side-effect of the architecture/approach.khayyam wrote:Leio ... that particular meme has been shown to be fallacious, it may boot faster than Redhat's sysvrc but there is very little in the claim otherwise ... even systemd devs have played down this 'feature' as data provided counter-evidence
Leio wrote:khayyam wrote:Also, what you seem to be saying above is that systemd-udev's '15.817 s' is due to it being used improperly (ie, outside of systemd) ... so how does systemd make the running of systemd-udev faster? The irony is, of course, that systemd-udev is part of systemd, that's not '15.817 s' to run an rcscript that is the time taken by systemd-udev ... your suggested solution seems to be "more systemd".
I didn't pay good attention to the initial post with the I/O times there. Seems possibly like a misconfiguration, perhaps devtmpfs isn't used and it somehow still works, but slow? Does the kernel configuration of gentoo-source (if that's what's used) have selected OpenRC or systemd configuration (whichever is used, or both), which is patched into gentoo-sources Kconfig to automatically enable for you all that's required?
Leio wrote:Regarding that URL, I can't bother to read such unreadable grey on black, sorry.
Leio wrote:If the slowness is truly from I/O, then need to look into that closer I suppose - udev install doesn't complain about any missing kernel options, right?
