Rayon performance on my Gentoo Linux 6.6.30 is wierd #1180
ZhennanWu
started this conversation in
Show and tell
Replies: 1 comment
-
If I understand you correctly, you mean thermal throttling here? If so, could you check which cpufreq driver you are using on your Gentoo system? For example, by running |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm not raising this as an issue but just to check if this is already known. I can't confirm whether it is rayon's issue or my Linux setup's issue for now.
Background
EPGI is an experimental project to test the impact of parallel speed-up in GUI applications. It is designed to fully utilize rayon's ability to parallel build and layout widget.
In an extreme example app, the framework is asked to show 40k moving, interative widgets all on the same screen. This is an optimal case to test how much rayon can speed things up. And compare against other single-threaded framework.
Hello.World.2024-07-08.03-07-26.mp4
Setup
Results
Success on Windows
The main point to checkout is
build+layout
time since currently they are the only two stages in the pipeline that are parallelized.Things are fairly nice and stable. We have a 4x speed up using 8 threads on a 8-core machine.
Wierd behavior on Linux
Things were less optimistic on Linux
Throttling
Unlike on Windows, the app immediately starts sharp throttling after ~5 seconds. The more thread I open up, the harsher the throttling kicks in. For each type of the metrics, "low" means the metric from best performing second, and else it means the average metric throughout a ~1min sustained execution. When using 8 threads, the app throttles from 43 fps down to 22 fps.
Worse performance when > 4 threads
Despite my machine has 8 cores, using 8-thread and 16-thread rayon threadpool generates significantly worse performance. This pattern is consistent and does not happen on Windows.
I'm not complaining anything. Just curious if any other users (especially stylo) has ever encountered this platform problem. Or if this is expected. The bahavior is so bad on Linux that I can't draw a conclusion whether the parallelism helps or not.
Beta Was this translation helpful? Give feedback.
All reactions