Gentoo Archives: gentoo-user

From: "J. Roeleveld" <joost@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] How to manage load on the GPU?
Date: Wed, 20 May 2020 08:00:57
Message-Id: 5627810.lOV4Wx5bFT@eve
In Reply to: Re: [gentoo-user] How to manage load on the GPU? by tuxic@posteo.de
1 On Wednesday, May 20, 2020 9:56:07 AM CEST tuxic@××××××.de wrote:
2 > On 05/20 09:44, J. Roeleveld wrote:
3 > > On Monday, May 18, 2020 8:22:52 PM CEST tuxic@××××××.de wrote:
4 > > > On 05/18 09:58, Matt Connell (Gmail) wrote:
5 > > > > On 2020-05-18 09:40, tastytea wrote:
6 > > > > > Another solution is to modify the priority yourself, with `renice
7 > > > > > --priority 15 $(pidof blender)` for example. The priority can be
8 > > > > > from
9 > > > > > -20 (very high priority) to 19 (very low priority).
10 > > > >
11 > > > > According to the man page for renice, there is a --gpu flag that can
12 > > > > be
13 > > > > used (today I learned) that the OP may want to try as well.
14 > > >
15 > > > If it is a load/performance problem, why is only
16 > > > firefox/internet-video affected?
17 > >
18 > > firefox might be using GPU-offloading for the video playback (decoder in
19 > > GPU) where MPV might not use the GPU for decoding and is only CPU-bound.
20 > >
21 > > --
22 > > Joost
23 >
24 > Hi Joost,
25 >
26 > mpv is installed as follows:
27 >
28 >
29 > [I] media-video/mpv
30 > Available versions: 0.32.0-r1^t **9999*l^t {+X +alsa aqua archive
31 > bluray cdda +cli coreaudio cplugins cuda debug doc drm dvb dvd +egl gamepad
32 > gbm +iconv jack javascript jpeg lcms +libass libcaca libmpv +lua luajit
33 > openal +opengl oss pulseaudio raspberry-pi rubberband samba sdl selinux
34 > test tools +uchardet vaapi vdpau vulkan wayland +xv zimg zlib
35 > PYTHON_TARGETS="python3_6 python3_7 python3_8"} Installed versions:
36 > 0.32.0-r1^t(08:15:17 AM 05/16/2020)(X alsa cdda cli cuda dvb dvd egl iconv
37 > jpeg lcms libass lua luajit opengl oss rubberband sdl uchardet xv zlib
38 > -aqua -archive -bluray -coreaudio -cplugins -debug -doc -drm -gamepad -gbm
39 > -jack -javascript -libcaca -libmpv -openal -pulseaudio -raspberry-pi -samba
40 > -selinux -test -tools -vaapi -vdpau -vulkan -wayland -zimg
41 > PYTHON_TARGETS="python3_7 -python3_6 -python3_8") Homepage:
42 > https://mpv.io/ https://github.com/mpv-player/mpv Description:
43 > Media player based on MPlayer and mplayer2
44 >
45 >
46 > The USE flag "cuda" - therefore mpv should be able to utilize the
47 > GPU...
48 >
49 > Cheers!
50 > Meino
51
52 Meino,
53
54 I would agree as well, except I don't think all video-codecs can be offloaded
55 to the GPU.
56 "mpv" might also be clever enough not to use the GPU if it is too busy whereas
57 firefox/video might not have that logic.
58
59 I don't know enough about the internals to be 100% certain, but, to me, this
60 is a plausible explanation. Especially as video-cards have built-in decoders,
61 but not for all codecs.
62
63 --
64 Joost