bedrocklinux / bedrocklinux-userland

This tracks development for the things such as scripts and (defaults for) config files for Bedrock Linux
https://bedrocklinux.org
GNU General Public License v2.0
614 stars 67 forks source link

Why do I have such big performace drop when on bedrock linux? #232

Closed TruncatedDinoSour closed 3 years ago

TruncatedDinoSour commented 3 years ago

Issue

Hello, I converted arch to bedrock just a few hours ago and what I noticed is that I got a huge drop in performace, why is that?

Well the performace drop is noticable for the first like 10 minutes of the boot, but why does that even happen, I'd like to fix it, but where?

And on poweroff, reboot or shutdown i get these errors: image

Maybe they have something to do in the performace drop? Maybe other users have expierienced it, if you have, how did you fix it?

Version

Bedrock Linux 0.7.21 Poki

Init system

SystemD

Converted from

Arch linux -> Bedrock

TruncatedDinoSour commented 3 years ago

Found something intresting

the systemd-update-utmp.service service was failing, so this this is what I did:

sudo systemctl start systemd-update-utmp.service

sudo systemctl enable systemd-update-utmp.service

reboot

and as it looks like I have gotten some performace back, still is performing slower than usual, but better :)

paradigm commented 3 years ago

Can you go into detail on the characteristics of the performance drop?

TruncatedDinoSour commented 3 years ago

Can you go into detail on the characteristics of the performance drop?

slow command execution, programs start slower, slower graphics/stuff takes longer to render

paradigm commented 3 years ago

Bedrock adds overhead to file access from /etc and a new /bedrock/cross directory that programs are configured to look at (e.g. it is added to the $PATH). This can slow down some things those which make excessive use of the previous two mentioned directories. For example, a ways back we found KDE's window manager was excessively reading from /etc/localtime which meant dragging windows around had lower performance. (KDE promptly fixed this when we brought it to their attention.)

However, my understanding of Bedrock's overhead cannot explain everything running slower, starting slower, and rendering slower. I'm at a complete loss from your broad description of the problem at hand.

TruncatedDinoSour commented 3 years ago

Bedrock adds overhead to file access from /etc and a new /bedrock/cross directory that programs are configured to look at (e.g. it is added to the $PATH). This can slow down some things those which make excessive use of the previous two mentioned directories. For example, a ways back we found KDE's window manager was excessively reading from /etc/localtime which meant dragging windows around had lower performance. (KDE promptly fixed this when we brought it to their attention.)

However, my understanding of Bedrock's overhead cannot explain everything running slower, starting slower, and rendering slower. I'm at a complete loss from your broad description of the problem at hand.

Hm, I don't know, I reaslly noticed a big performace drop. But it might just have been my hardware heh

paradigm commented 3 years ago

Your hardware may explain why the normally negligible overhead for /etc and /bedrock/cross would be noticeable in the specific, select scenarios where those arise. However, again, that would only affect some software. Your hardware wouldn't explain why everything runs slower, starts slower, and renders slower. Most processes run and start and render without hitting /etc or /bedrock/cross very much if at all.

TruncatedDinoSour commented 3 years ago

Your hardware may explain why the normally negligible overhead for /etc and /bedrock/cross would be noticeable in the specific, select scenarios where those arise. However, again, that would only affect some software. Your hardware wouldn't explain why everything runs slower, starts slower, and renders slower. Most processes run and start and render without hitting /etc or /bedrock/cross very much if at all.

Yeah, I'm as confused as you, my system became slower, the resource usage wasn't even affected or anything, but now I am back on vanilla arch linux, I will test bedrock in a VM and I will see if the same thing happens

TruncatedDinoSour commented 3 years ago

Your hardware may explain why the normally negligible overhead for /etc and /bedrock/cross would be noticeable in the specific, select scenarios where those arise. However, again, that would only affect some software. Your hardware wouldn't explain why everything runs slower, starts slower, and renders slower. Most processes run and start and render without hitting /etc or /bedrock/cross very much if at all.

Yeah, I'm as confused as you, my system became slower, the resource usage wasn't even affected or anything, but now I am back on vanilla arch linux, I will test bedrock in a VM and I will see if the same thing happens

Update: It is causing the same issues, but some programs seem to have not been affected, not mainly firefox, lightdm and cinnamon are being affected in the VM, other apps seem to be better than on my real hardware

TruncatedDinoSour commented 3 years ago

Your hardware may explain why the normally negligible overhead for /etc and /bedrock/cross would be noticeable in the specific, select scenarios where those arise. However, again, that would only affect some software. Your hardware wouldn't explain why everything runs slower, starts slower, and renders slower. Most processes run and start and render without hitting /etc or /bedrock/cross very much if at all.

Yeah, I'm as confused as you, my system became slower, the resource usage wasn't even affected or anything, but now I am back on vanilla arch linux, I will test bedrock in a VM and I will see if the same thing happens

Update: It is causing the same issues, but some programs seem to have not been affected, not mainly firefox, lightdm and cinnamon are being affected in the VM, other apps seem to be better than on my real hardware

Okay, it definally was my hardware, now after using the VM for half an hour everything in performing fine, though I wonder what caused it on my hardware, should I close this issue?

paradigm commented 3 years ago

I am completely, totally bewildered as to why Bedrock would have performance issues on native hardware that it does not present in a VM.

If you think you have a lead we can use to debug what's going on and fix it, do feel free to leave this issue open so we can keep working at it. Otherwise, if we don't have any leads, I don't see value in leaving the issue open.

TruncatedDinoSour commented 3 years ago

I am completely, totally bewildered as to why Bedrock would have performance issues on native hardware that it does not present in a VM.

If you think you have a lead we can use to debug what's going on and fix it, do feel free to leave this issue open so we can keep working at it. Otherwise, if we don't have any leads, I don't see value in leaving the issue open.

Yeah, I think it was just my hardware, I don't know, but most people seem to be fine, so I don't think we need to keep this issue open haha, thanks for the help and have a nice day :)

paradigm commented 3 years ago

Happy to help, you also have a nice day :)