[Nouveau] Accumulating CPU load from Xorg process with DRI3

Ilia Mirkin imirkin at alum.mit.edu
Sun Aug 16 17:42:58 UTC 2020


On Sun, Aug 16, 2020 at 8:20 AM Andrew Randrianasulu
<randrianasulu at gmail.com> wrote:
>
> В сообщении от Sunday 16 August 2020 07:20:18 Ilia Mirkin написал(а):
> > Well, if it's easy, try the patches I mailed to nouveau@ for the ddx.
>
> I applied patches manually (copy-pasted patches failed to apply by git apply,
> probably whitespace/end of line issues), and now I see in X log (after I left machine to run alone):
>
> [  3584.553] (DB) NOUVEAU(0): PRESENT: Wait for VBlank failed: Invalid argument
> [  3584.553] (DB) NOUVEAU(0): PRESENT: Wait for VBlank failed: Invalid argument
> [  3584.570] (DB) NOUVEAU(0): PRESENT: Wait for VBlank failed: Invalid argument
> [  3584.586] (DB) NOUVEAU(0): PRESENT: Wait for VBlank failed: Invalid argument
> [  3584.602] (DB) NOUVEAU(0): PRESENT: Wait for VBlank failed: Invalid argument
> [  3584.619] (DB) NOUVEAU(0): PRESENT: Wait for VBlank failed: Invalid argument
> [  3584.635] (DB) NOUVEAU(0): PRESENT: Wait for VBlank failed: Invalid argument
> [  3584.651] (DB) NOUVEAU(0): PRESENT: Wait for VBlank failed: Invalid argument
> [  3584.668] (DB) NOUVEAU(0): PRESENT: Wait for VBlank failed: Invalid argument
> [  3584.684] (DB) NOUVEAU(0): PRESENT: Wait for VBlank failed: Invalid argument
> [  3584.700] (DB) NOUVEAU(0): PRESENT: Wait for VBlank failed: Invalid argument
> [  3584.717] (DB) NOUVEAU(0): PRESENT: Wait for VBlank failed: Invalid argument
> [  3584.733] (DB) NOUVEAU(0): PRESENT: Wait for VBlank failed: Invalid argument
> [  3584.749] (DB) NOUVEAU(0): PRESENT: Wait for VBlank failed: Invalid argument
> [  3584.766] (DB) NOUVEAU(0): PRESENT: Wait for VBlank failed: Invalid argument
> [  3584.782] (DB) NOUVEAU(0): PRESENT: Wait for VBlank failed: Invalid argument
> [  3584.798] (DB) NOUVEAU(0): PRESENT: Wait for VBlank failed: Invalid argument

Aha, appears my assumption that X_DEBUG would get skipped under normal
Xorg invocations was wrong. I didn't mean for these to appear under
normal circumstances. I guess I'll #if 0 it out.

>
> and around 6mb more of those ....
>
> but X still uses small amount of CPU:
>
>  op - 15:04:41 up  1:32,  2 users,  load average: 1,25, 1,67, 1,60
> Tasks: 220 total,   2 running, 218 sleeping,   0 stopped,   0 zombie
> %Cpu(s): 22,8 us,  5,9 sy,  0,3 ni, 69,2 id,  1,4 wa,  0,0 hi,  0,4 si,  0,0 st
> MiB Mem :  11875,3 total,   7630,1 free,   1967,5 used,   2277,7 buff/cache
> MiB Swap:   1145,0 total,   1145,0 free,      0,0 used.   9172,1 avail Mem
>
>   PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
>  2777 guest     20   0 2155076   1,2g 126108 R  84,4  10,7  69:24.46 seamonkey
>  1991 root      20   0  145764  78444  27936 S  14,6   0,6   6:42.10 Xorg
>  3697 guest     20   0   61208  17268  13580 S  12,6   0,1   7:34.75 xmms
>  2045 guest     20   0    6360   3932   2668 S   2,3   0,0   0:35.90 kompmgr
>  2068 guest     20   0  102664  48952  30764 S   2,3   0,4   2:35.98 ktorrent
>  2049 guest     20   0   42792  27908  23684 S   1,7   0,2   0:12.72 kicker
>  2319 guest     20   0   40160  21248  18548 S   1,3   0,2   0:55.63 gkrellm
>  2064 guest     20   0   50900  31592  23720 S   1,0   0,3   0:25.53 konsole
>  5086 root      20   0       0      0      0 I   0,7   0,0   0:02.57 kworker/0:2-events
>    10 root      20   0       0      0      0 I   0,3   0,0   0:09.96 rcu_preempt
>  1918 root      20   0       0      0      0 I   0,3   0,0   0:04.78 kworker/3:0-events
>  2240 guest     20   0   59660  37848  30248 S   0,3   0,3   0:02.36 konqueror
>  2389 guest     20   0   33048  22592  20376 S   0,3   0,2   0:00.24 kdesu
>
> with CPU frequency set to 1.4Ghz (minimum possible). Usually around 5.6%-6.0%
> vblanks still work, at least glxgears from both cards still run at ~60 fps by default
>
> I'll run with those patches for few more hours, but so far they seems to be helpful.

Great!

  -ilia


More information about the Nouveau mailing list