had to check what was the context switch...
I think, it is normal, in bbr or lyra2, the gpu compute a smaller number of threads than in x11 so to process the entire range of nonce it will require more gpu calls, meaning the program will go back more often on the cpu.
However this shouldn't really increase cpu usage.
Would be interesting to get some feedback on cpu usage on linux
OK, that would explain it more-less
that is cpu usage on linux during BBR mining on Celeron above:
top - 18:10:54 up 23 days, 3:32, 1 user, load average: 3,01, 2,87, 2,94
Tasks: 101 total, 2 running, 99 sleeping, 0 stopped, 0 zombie
%Cpu0 : 58,0 us, 41,7 sy, 0,0 ni, 0,0 id, 0,0 wa, 0,3 hi, 0,0 si, 0,0 st
%Cpu1 : 58,3 us, 41,6 sy, 0,0 ni, 0,0 id, 0,0 wa, 0,2 hi, 0,0 si, 0,0 st
KiB Mem: 4020192 total, 1743208 used, 2276984 free, 65124 buffers
KiB Swap: 0 total, 0 used, 0 free. 1107168 cached Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
27849 root 20 0 32,980g 264564 176740 S 199,2 6,6 1926:13 cpuminer
18522 root 20 0 0 0 0 S 0,7 0,0 0:02.47 kworker/0:1
329 root 39 19 0 0 0 S 0,2 0,0 106:54.09 kipmi0
1 root 20 0 33792 3164 1472 S 0,0 0,1 0:02.21 init
that is BBR mining on Xeon from example above
top - 18:12:43 up 14 days, 54 min, 1 user, load average: 5,00, 4,96, 5,00
Tasks: 125 total, 3 running, 122 sleeping, 0 stopped, 0 zombie
%Cpu0 : 62,8 us, 37,2 sy, 0,0 ni, 0,0 id, 0,0 wa, 0,0 hi, 0,0 si, 0,0 st
%Cpu1 : 61,4 us, 38,6 sy, 0,0 ni, 0,0 id, 0,0 wa, 0,0 hi, 0,0 si, 0,0 st
%Cpu2 : 58,1 us, 41,9 sy, 0,0 ni, 0,0 id, 0,0 wa, 0,0 hi, 0,0 si, 0,0 st
%Cpu3 : 61,9 us, 38,1 sy, 0,0 ni, 0,0 id, 0,0 wa, 0,0 hi, 0,0 si, 0,0 st
KiB Mem: 4015084 total, 1281640 used, 2733444 free, 57232 buffers
KiB Swap: 0 total, 0 used, 0 free. 548544 cached Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
15654 root 20 0 41,375g 388208 290616 S 399,4 9,7 992:05.78 cpuminer
3304 root 20 0 0 0 0 S 2,3 0,0 0:13.35 kworker/0:3
1 root 20 0 33648 2984 1456 S 0,0 0,1 0:01.75 init
2 root 20 0 0 0 0 S 0,0 0,0 0:00.55 kthreadd
and the same set for Lyra2RE:
top - 20:07:53 up 20 days, 5:29, 2 users, load average: 2,92, 2,54, 2,71
Tasks: 116 total, 3 running, 113 sleeping, 0 stopped, 0 zombie
%Cpu0 : 0,0 us, 42,7 sy, 54,9 ni, 2,0 id, 0,0 wa, 0,3 hi, 0,0 si, 0,0 st
%Cpu1 : 0,0 us, 43,5 sy, 55,8 ni, 0,7 id, 0,0 wa, 0,0 hi, 0,0 si, 0,0 st
KiB Mem: 4020192 total, 1308852 used, 2711340 free, 63156 buffers
KiB Swap: 0 total, 0 used, 0 free. 713548 cached Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1817 root 20 0 32,864g 238604 181900 S 196,1 5,9 8:14.27 ccminer
29671 root 20 0 0 0 0 S 0,7 0,0 0:00.91 kworker/0:1
4708 root 20 0 31408 1592 1112 R 0,3 0,0 0:00.07 top
1 root 20 0 33792 3164 1472 S 0,0 0,1 0:02.13 init
top - 23:11:17 up 2 days, 14:14, 2 users, load average: 4,71, 4,91, 5,00
Tasks: 175 total, 1 running, 174 sleeping, 0 stopped, 0 zombie
%Cpu0 : 2,2 us, 46,1 sy, 48,5 ni, 3,2 id, 0,0 wa, 0,0 hi, 0,0 si, 0,0 st
%Cpu1 : 3,0 us, 48,1 sy, 47,9 ni, 1,0 id, 0,0 wa, 0,0 hi, 0,0 si, 0,0 st
%Cpu2 : 0,2 us, 47,4 sy, 52,0 ni, 0,4 id, 0,0 wa, 0,0 hi, 0,0 si, 0,0 st
%Cpu3 : 1,8 us, 47,0 sy, 48,0 ni, 3,2 id, 0,0 wa, 0,0 hi, 0,0 si, 0,0 st
KiB Mem: 4012956 total, 1730088 used, 2282868 free, 111084 buffers
KiB Swap: 0 total, 0 used, 0 free. 785488 cached Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
11682 root 20 0 41,250g 383464 297076 S 381,7 9,6 4:02.48 ccminer
1150 root 20 0 298808 38068 3080 S 2,2 0,9 7:06.31 polkitd
703 message+ 20 0 39936 2080 1040 S 0,8 0,1 2:33.04 dbus-daemon
11675 root 20 0 0 0 0 S 0,6 0,0 0:00.15 kworker/0:7
1123 root 20 0 347312 6424 4784 S 0,4 0,2 1:22.94 NetworkManage