Questions and Answers : Getting started, support & suggestions : Skia (beta) high cpu usage
Message board moderation
| Author | Message |
|---|---|
|
72 years old Send message Joined: 30 Sep 26 Posts: 92 Credit: 332,138,360 RAC: 10,617,290 |
Skia (beta) use up to 200% cpu (2 core). Shows in BoincTask and top. And all have validation error: https://bitboinc.athena.org.tr/results.php?userid=66&offset=0&show_names=0&state=5&appid=19&device_type= PID USER PR NI VIRT RES SHR S %CPU %MEM ZEIT+ BEFEHL 3492746 boinc 39 19 12,8g 909272 175576 S 223,8 1,4 1:48.18 skia_app 3391223 boinc 39 19 12,8g 889656 175848 S 219,1 1,4 3:14.06 skia_app 2824377 boinc 39 19 12,8g 901644 175032 S 194,7 1,4 62:57.56 skia_app |
ConanSend message Joined: 29 Sep 26 Posts: 38 Credit: 30,275,388 RAC: 855,412 |
For me they are taking 0.42% of a CPU, so not even a full CPU. This opposite of what you are seeing JagDoc Progress bar has gotten to 4.761% and has not moved with run times from 1 Hour 11 minutes down to 25 Minutes still the same percentage. Conan |
|
72 years old Send message Joined: 30 Sep 26 Posts: 92 Credit: 332,138,360 RAC: 10,617,290 |
The high cpu-load was with v 0.02 . Now with v 0.03 the cpu-load is ~10%. With v 0.02 htop (tree-mode) show over 100 tasks "shia_app/skia_app -o result.txt" for one WU. 32 of this eats cup-load between 1% and 10% jumping. With v 0.03 there are 8 (1 + 7 sub) "shia_app/skia_app -o result.txt" where only 1 of them takes 10% cpu-load jumping between the 7. It jump after start to 4.761% and stays there until finish. |
|
72 years old Send message Joined: 30 Sep 26 Posts: 92 Credit: 332,138,360 RAC: 10,617,290 |
At the Mac Mini M6 with Skia v 0.03 cpu-load is over 200%. Peak swap size 467.18 GB https://bitboinc.athena.org.tr/result.php?resultid=9558988 |
|
25 years old Send message Joined: 27 Sep 26 Posts: 420 Credit: 8,151,595 RAC: 241,579 |
It looks like we'll need to run this project on top-tier server hardware; I'll look into how I can minimize it even further.
|
|
51 years old Send message Joined: 28 Sep 26 Posts: 80 Credit: 95,928,097 RAC: 3,721,415 |
If it really uses 1,5 or even 2 cpu threads an option would be to program that into the tasks requirements. So they would be kind off multi-threading. But maybe the reason for the higher thread use could be that at least in version 0.02 every task opens up to 32 threads which it doesn't use afterwards but that could lead to a lot of unnecessary coordination of cpu processes. Skia (beta) – Excessive thread creation and CPU usage I noticed unusually high thread counts while running Skia (beta) v0.02 on my Ryzen 9 7950X3D (host 192). Each Skia task creates approximately 174 threads, including: 32 tf_XLAEigen 32 tf_XLAExecute 32 tf_XLACompile Multiple skia_app and LLVM worker threads However, most threads remain sleeping. Only a few are runnable at any given time. During a 30-second measurement, the 32 XLAEigen threads accounted for approximately 147% CPU usage, while the other thread groups contributed very little. Each task consumes around 140–160% CPU, although BOINC reserves only one CPU core per task. Interestingly, OMP_NUM_THREADS=1, OPENBLAS_NUM_THREADS=1, and XLA thread-limiting flags are already set. I also measured approximately 1,300 context switches per second for a single task. This may indicate unnecessary thread-management overhead or CPU oversubscription, although I haven't verified whether it affects performance. Perhaps the XLA thread pool configuration and BOINC CPU allocation are worth reviewing. |
|
72 years old Send message Joined: 30 Sep 26 Posts: 92 Credit: 332,138,360 RAC: 10,617,290 |
Strange behavior: I have 8 Skia WUs running. Htop shows 8 x 7 tasks "shia_app/skia_app -o result.txt" running on core 0 only the 8 "shia_app/skia_app -o result.txt" master tasks are asigned to different cores. If they finished i will try it with one or two skia WUs and see what happens. |
|
72 years old Send message Joined: 30 Sep 26 Posts: 92 Credit: 332,138,360 RAC: 10,617,290 |
Now i run some test with single Skia beside of other subproject. Running only one the cpu-load is at ~100%. Running two same time cpu-load drop to ~50% for each WU. Work is always done at core 0. The wrapper and master task is running on different core with near 0 cpu-time. This run single: https://bitboinc.athena.org.tr/result.php?resultid=9525217 This with 8 Skia parall: https://bitboinc.athena.org.tr/result.php?resultid=9525863 See different in runtime vs cputime. |
|
51 years old Send message Joined: 28 Sep 26 Posts: 80 Credit: 95,928,097 RAC: 3,721,415 |
Until the problem is solved that all Skia tasks are assigned to core 0 only, all at the same time, there is a short term remedy for all Skia tasks that are still running. At least for Linux. The following script allows each active Skia task to use one cpu thread. It works only for currently running tasks so as soon as new tasks are started the script needs to be executed again. You can do it as often as you like, it won't damage anything. You may have to adjust the field "0-31" if you have more or less cpu threads available on your machine. Mine has 32. Just copy & paste this into a terminal: for pid in $(pgrep -x skia_app); do sudo taskset -apc 0-31 "$pid" done |
|
72 years old Send message Joined: 30 Sep 26 Posts: 92 Credit: 332,138,360 RAC: 10,617,290 |
In reply to Drago75's message of 7 Nov 2026: Until the problem is solved that all Skia tasks are assigned to core 0 only, all at the same time, there is a short term remedy for all Skia tasks that are still running. At least for Linux. The following script allows each active Skia task to use one cpu thread. It works only for currently running tasks so as soon as new tasks are started the script needs to be executed again. You can do it as often as you like, it won't damage anything. You may have to adjust the field "0-31" if you have more or less cpu threads available on your machine. Mine has 32. Just copy & paste this into a terminal: Great. Can it be set runnig in loop? |
|
51 years old Send message Joined: 28 Sep 26 Posts: 80 Credit: 95,928,097 RAC: 3,721,415 |
propably. But I don´t have time at the moment to try... |
|
51 years old Send message Joined: 28 Sep 26 Posts: 80 Credit: 95,928,097 RAC: 3,721,415 |
It is possible if you use cronjob. It can be programmed to repeat that script every XX minutes. If you ask your favorite AI on how to do that it will guide you through it in around 5 steps, so it is not complicated. I set mine to 15 minutes and the number of Skia jobs has reduced significantly over the past hours. |