![]() |
|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
![]() |
|
Thread Tools | Display Modes |
|
|||
![]()
Hello guys,I'm new here and also new to OpenBSD,which I first tried about a month ago.
I installed it on two totally different laptops. In both cases,it's the only BSD that has all important drivers and I wanted to finally get rid of Linux for various reasons. The one laptop has a Intel Atom x7-Z8700 CPU with 4x1.6 GHz and 64GB eMMC storage,the other has a Intel Pentium Silver N5000 CPU with 4x1.1 GHz and 250GB NVME SSD storage. With Linux and FreeBSD,both start within only a few seconds and perform well. Now,with OpenBSD,the second laptop takes about 2-3 Minutes to boot to the graphical Login Prompt,while the other laptop takes only 10-20 seconds,which is totally okay. Both systems were installed in the same week with nearly identical configuration. I get that the CPU of the second laptop is a bit slower,but that doesn't explain this huge difference. Also,it took me a few hours to install OpenBSD on that laptop because the installer took more than a minute each time to respond to most of the questions,while it responded nearly instant on the other laptop. After the boot is finished,the "problematic" laptop also works rather good,sometimes WebKit2GTK-based browsers hang,but it can even play videos smoothly in Firefox. Does anyone have a idea what causes that huge boot delay on one of the laptops? I suspect it doesn't like that specific hardware,maybe some driver issue? Is there a change to work-around it using some configuration options? Or can I try to fix it in the source code with my very very very limited C knowledge? (But I need to know what to look for,in the first place...) |
|
|||
![]()
Here's my dmesg: https://paste.bka.li/view/5bedb26a
|
|
|||
![]()
The internal SSD is set as first boot option already.
And I don't think it has anything to do with the UEFI settings,as it's slow in OpenBSDs own boot process. For example,it hangs a quite long time at reordering libraries and then again at starting the X server. |
|
||||
![]()
Just like Head_on_a_Stick, I don't see a probable cause of the delay from your dmesg(8) alone. I can see its a 4GB RAM amd64 platform running the most recent kernel syspatch(8), with Intel DRM graphics.
|
|
|||
![]()
Here's my Xorg log: https://paste.bka.li/view/64c8df4c
Additionally I wrote a empty file with 1GB size to the disk to see if I/O performance is the bottleneck,but the dd command finished in 4.593 seconds,so that's clearly not the issue. |
|
||||
![]()
The Xorg log looks OK to me.
Two other considerations:
Last edited by jggimi; 6th January 2023 at 07:49 PM. Reason: clarity |
|
|||
![]()
I don't have any swap partition on any of the laptops as 4GB ram is more than enough for me.
Both have 4GB memory,so having too few RAM available can't be the reason for the slow boot on one of them as well. On both devices,top shows a bit more than 300MB RAM used,about 800MB in cache and lots of free space. Also,both laptops are connected to the same Wifi network and if I disable the Wifi connection of the slower laptop (moving hostname.iwm0 to somewhere else) that removes the 2 seconds delay at "starting network",but doesn't speed up the boot progress significantly otherwise. |
|
||||
![]()
You may want to broaden your audience for this issue -- consider posting to the misc@ mailing list with your issue description and dmesg.
The only other suggestion I would have would be to disable KARL to see if that is the root cause of the delay. |
|
|||
![]()
Thank you very much for your help.
I searched a bit for how to disable KARL but couldn't find anything. Can you please tell me how KARL can be disabled? |
|
||||
![]() Code:
echo no > /usr/share/compile/GENER*/SHA256 |
|
||||
![]()
I don't think /usr/share/compile/* exists these days.
When needed to, I have disabled it through the checksum hash file, with # echo disabled > /var/db/kernel.SHA256 . I can then re-enable with # sha256 -h /var/db/kernel.SHA256 /bsd .
|
|
|||
![]()
That worked,it now shows a message that kernel relinking failed at boot.
It didn't really help against the slow boot,however. It's still stuck at reordering libraries for a quite long time. And I know that it may be nonsense,but I have the feeling that Xorg/Xenodm starts *a lot* faster if I move the mouse cursor on the black screen. |
|
|||
![]()
I did some more research and I'm finally getting an idea what goes wrong here.
I found this interesting topic about the same problem: https://teddit.net/r/openbsd/comment...ncredibly_slow They recommend disabling library relinking with rcctl disable library_aslr,which I did and now my laptop really boots a lot faster. I'm still not quite happy with the overall system performance,so I tried some of the things mentioned in that thread. While not doing complicated things,apm -v shows: Quote:
Quote:
It looks like OpenBSD isn't using the turbo boost feature on my machine at all,which results in bad performance at compute-heavy tasks. The output of openssl speed sha256 also isn't that great compared to that in the thread I linked above: Quote:
|
|
|||
![]()
I did some more experiments about the performance thing.
apm -H forces the cpu to stay at 1101MHz permanently,the value it automatically set when doing something like the openssl speed benchmark. I misinterpreted that value,however. As https://forums.freebsd.org/threads/f...boboost.65842/ shows,the +1MHz is a sign that turbo boost *is* supported and used,so everything is okay here. Maybe I should just accept things as they stand currently,at least the huge boot delay could be reduced and it's fast enough for surfing. |
|
||||
![]()
You might experiment with sysutils/obsdfreqd.
Quote:
|
|
|||
![]()
Thank you again for your help.
I installed and enabled it and it feels like the speed has already improved with obsdfreqds default settings. I'll have to keep an eye on that for the next days,but I'm quite happy for now. |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
The linker starts at the boot process. | Zielonykid123 | OpenBSD General | 2 | 7th May 2022 11:24 AM |
OpenBSD laptops and vendor firmware updates? | fvgit | OpenBSD General | 4 | 7th February 2020 03:30 PM |
Games are slow on OpenBSD 6.4 | ripe | OpenBSD Packages and Ports | 6 | 2nd January 2019 01:35 PM |
OpenBSD slow internet? | guitarscn | OpenBSD General | 4 | 27th November 2010 05:25 PM |
Xorg starts with numlock on | Mantazz | FreeBSD Ports and Packages | 6 | 10th July 2009 02:17 AM |