Thread 'Skia (beta) high cpu usage'

Questions and Answers : Getting started, support & suggestions : Skia (beta) high cpu usage
Message board moderation

To post messages, you must log in.

AuthorMessage
JagDoc
Source finder
Platform tester
Bug hunter
Early supporter
72 years old

Send message
Joined: 30 Sep 26
Posts: 92
Credit: 331,941,776
RAC: 10,604,855
Message 1457 - Posted: 5 Nov 2026, 20:20:18 UTC
Last modified: 5 Nov 2026, 20:35:09 UTC

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
ID: 1457 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
ProfileConan
Early supporter

Send message
Joined: 29 Sep 26
Posts: 38
Credit: 30,274,088
RAC: 855,855
Message 1467 - Posted: 6 Nov 2026, 6:57:06 UTC

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
ID: 1467 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
JagDoc
Source finder
Platform tester
Bug hunter
Early supporter
72 years old

Send message
Joined: 30 Sep 26
Posts: 92
Credit: 331,941,776
RAC: 10,604,855
Message 1468 - Posted: 6 Nov 2026, 7:47:38 UTC - in response to Message 1467.  
Last modified: 6 Nov 2026, 7:54:53 UTC

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.
ID: 1468 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
JagDoc
Source finder
Platform tester
Bug hunter
Early supporter
72 years old

Send message
Joined: 30 Sep 26
Posts: 92
Credit: 331,941,776
RAC: 10,604,855
Message 1469 - Posted: 6 Nov 2026, 8:29:06 UTC - in response to Message 1468.  

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
ID: 1469 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Alperen Yavuz
Project developer
25 years old
Avatar

Send message
Joined: 27 Sep 26
Posts: 420
Credit: 8,150,795
RAC: 241,661
Message 1472 - Posted: 6 Nov 2026, 12:52:01 UTC

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.
ID: 1472 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Drago75
Bug hunter
Early supporter
51 years old

Send message
Joined: 28 Sep 26
Posts: 80
Credit: 95,913,197
RAC: 3,721,838
Message 1474 - Posted: 6 Nov 2026, 13:52:56 UTC
Last modified: 6 Nov 2026, 14:10:02 UTC

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.
ID: 1474 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
JagDoc
Source finder
Platform tester
Bug hunter
Early supporter
72 years old

Send message
Joined: 30 Sep 26
Posts: 92
Credit: 331,941,776
RAC: 10,604,855
Message 1477 - Posted: 6 Nov 2026, 15:00:16 UTC

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.
ID: 1477 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
JagDoc
Source finder
Platform tester
Bug hunter
Early supporter
72 years old

Send message
Joined: 30 Sep 26
Posts: 92
Credit: 331,941,776
RAC: 10,604,855
Message 1482 - Posted: 6 Nov 2026, 18:12:24 UTC - in response to Message 1477.  
Last modified: 6 Nov 2026, 18:17:47 UTC

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.
ID: 1482 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Drago75
Bug hunter
Early supporter
51 years old

Send message
Joined: 28 Sep 26
Posts: 80
Credit: 95,913,197
RAC: 3,721,838
Message 1488 - Posted: 7 Nov 2026, 11:35:17 UTC

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
ID: 1488 · Rating: 1 · rate: Rate + / Rate - Report as offensive     Reply Quote
JagDoc
Source finder
Platform tester
Bug hunter
Early supporter
72 years old

Send message
Joined: 30 Sep 26
Posts: 92
Credit: 331,941,776
RAC: 10,604,855
Message 1490 - Posted: 7 Nov 2026, 12:35:40 UTC - in response to Message 1488.  
Last modified: 7 Nov 2026, 12:36:00 UTC

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:

for pid in $(pgrep -x skia_app); do
sudo taskset -apc 0-31 "$pid"
done

Great. Can it be set runnig in loop?
ID: 1490 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Drago75
Bug hunter
Early supporter
51 years old

Send message
Joined: 28 Sep 26
Posts: 80
Credit: 95,913,197
RAC: 3,721,838
Message 1491 - Posted: 7 Nov 2026, 12:39:10 UTC

propably. But I don´t have time at the moment to try...
ID: 1491 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Drago75
Bug hunter
Early supporter
51 years old

Send message
Joined: 28 Sep 26
Posts: 80
Credit: 95,913,197
RAC: 3,721,838
Message 1493 - Posted: 7 Nov 2026, 16:23:06 UTC
Last modified: 7 Nov 2026, 16:24:46 UTC

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.
ID: 1493 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote

Questions and Answers : Getting started, support & suggestions : Skia (beta) high cpu usage