* [gentoo-user] How to manage load on the GPU? @ 2020-05-18 4:41 tuxic 2020-05-18 14:36 ` tastytea ` (2 more replies) 0 siblings, 3 replies; 9+ messages in thread From: tuxic @ 2020-05-18 4:41 UTC (permalink / raw To: Gentoo Hi, sorry for the somehow vague subject line...no native speaker... With Blender I do a lot of experimenting and tinkering which involves rendering most of the time. With rendering comes ... waiting for the result. Often (I am trying to) watch videos, like tutorial about what I currently trying to acchieve with Blender. The problem is, that the video (the audio does not) stutters in short periods. Interestingly it does this not every time but quite often. And it only effects videos online. mpv for example is not affected. Is there any way to configure whatever it is in a way, that Online videos can be played smoothlessly also? Hardware: AMD Ryzen 5 3600 MSI Ventus RTX 2060 SUPER (NVidia) 32 GB RAM Any helpful idea is very appreciated! Cheers! Meino ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] How to manage load on the GPU? 2020-05-18 4:41 [gentoo-user] How to manage load on the GPU? tuxic @ 2020-05-18 14:36 ` tastytea 2020-05-18 14:40 ` tastytea 2020-05-20 12:55 ` Mark Knecht 2 siblings, 0 replies; 9+ messages in thread From: tastytea @ 2020-05-18 14:36 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 1046 bytes --] On 2020-05-18 06:41+0200 tuxic@posteo.de wrote: > Hi, > > sorry for the somehow vague subject line...no native speaker... > > With Blender I do a lot of experimenting and tinkering which > involves rendering most of the time. > > With rendering comes ... waiting for the result. > > Often (I am trying to) watch videos, like tutorial about > what I currently trying to acchieve with Blender. > > The problem is, that the video (the audio does not) stutters > in short periods. > > Interestingly it does this not every time but quite often. > > And it only effects videos online. > > mpv for example is not affected. > > Is there any way to configure whatever it is in a way, that Online > videos can be played smoothlessly also? At first I would look into if Blender can be configured to use a lower priority or fewer threads. Another solution is to modify the priority yourself, with -- Get my PGP key with `gpg --locate-keys tastytea@tastytea.de` or at <https://tastytea.de/tastytea.asc>. [-- Attachment #2: Digitale Signatur von OpenPGP --] [-- Type: application/pgp-signature, Size: 228 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] How to manage load on the GPU? 2020-05-18 4:41 [gentoo-user] How to manage load on the GPU? tuxic 2020-05-18 14:36 ` tastytea @ 2020-05-18 14:40 ` tastytea 2020-05-18 14:58 ` Matt Connell (Gmail) 2020-05-20 12:55 ` Mark Knecht 2 siblings, 1 reply; 9+ messages in thread From: tastytea @ 2020-05-18 14:40 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 1272 bytes --] [Please excuse the previous mail, I accidentally hit send too soon] On 2020-05-18 06:41+0200 tuxic@posteo.de wrote: > Hi, > > sorry for the somehow vague subject line...no native speaker... > > With Blender I do a lot of experimenting and tinkering which > involves rendering most of the time. > > With rendering comes ... waiting for the result. > > Often (I am trying to) watch videos, like tutorial about > what I currently trying to acchieve with Blender. > > The problem is, that the video (the audio does not) stutters > in short periods. > > Interestingly it does this not every time but quite often. > > And it only effects videos online. > > mpv for example is not affected. > > Is there any way to configure whatever it is in a way, that Online > videos can be played smoothlessly also? At first I would look into if Blender can be configured to use a lower priority or fewer threads. Another solution is to modify the priority yourself, with `renice --priority 15 $(pidof blender)` for example. The priority can be from -20 (very high priority) to 19 (very low priority). Kind regards, tastytea -- Get my PGP key with `gpg --locate-keys tastytea@tastytea.de` or at <https://tastytea.de/tastytea.asc>. [-- Attachment #2: Digitale Signatur von OpenPGP --] [-- Type: application/pgp-signature, Size: 228 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] How to manage load on the GPU? 2020-05-18 14:40 ` tastytea @ 2020-05-18 14:58 ` Matt Connell (Gmail) 2020-05-18 18:22 ` tuxic 0 siblings, 1 reply; 9+ messages in thread From: Matt Connell (Gmail) @ 2020-05-18 14:58 UTC (permalink / raw To: gentoo-user On 2020-05-18 09:40, tastytea wrote: > Another solution is to modify the priority yourself, with `renice > --priority 15 $(pidof blender)` for example. The priority can be from > -20 (very high priority) to 19 (very low priority). According to the man page for renice, there is a --gpu flag that can be used (today I learned) that the OP may want to try as well. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] How to manage load on the GPU? 2020-05-18 14:58 ` Matt Connell (Gmail) @ 2020-05-18 18:22 ` tuxic 2020-05-20 7:44 ` J. Roeleveld 0 siblings, 1 reply; 9+ messages in thread From: tuxic @ 2020-05-18 18:22 UTC (permalink / raw To: gentoo-user On 05/18 09:58, Matt Connell (Gmail) wrote: > On 2020-05-18 09:40, tastytea wrote: > > Another solution is to modify the priority yourself, with `renice > > --priority 15 $(pidof blender)` for example. The priority can be from > > -20 (very high priority) to 19 (very low priority). > > According to the man page for renice, there is a --gpu flag that can be used > (today I learned) that the OP may want to try as well. > If it is a load/performance problem, why is only firefox/internet-video affected? Cheers! Meino ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] How to manage load on the GPU? 2020-05-18 18:22 ` tuxic @ 2020-05-20 7:44 ` J. Roeleveld 2020-05-20 7:56 ` tuxic 0 siblings, 1 reply; 9+ messages in thread From: J. Roeleveld @ 2020-05-20 7:44 UTC (permalink / raw To: gentoo-user On Monday, May 18, 2020 8:22:52 PM CEST tuxic@posteo.de wrote: > On 05/18 09:58, Matt Connell (Gmail) wrote: > > On 2020-05-18 09:40, tastytea wrote: > > > Another solution is to modify the priority yourself, with `renice > > > --priority 15 $(pidof blender)` for example. The priority can be from > > > -20 (very high priority) to 19 (very low priority). > > > > According to the man page for renice, there is a --gpu flag that can be > > used (today I learned) that the OP may want to try as well. > > If it is a load/performance problem, why is only > firefox/internet-video affected? firefox might be using GPU-offloading for the video playback (decoder in GPU) where MPV might not use the GPU for decoding and is only CPU-bound. -- Joost ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] How to manage load on the GPU? 2020-05-20 7:44 ` J. Roeleveld @ 2020-05-20 7:56 ` tuxic 2020-05-20 8:00 ` J. Roeleveld 0 siblings, 1 reply; 9+ messages in thread From: tuxic @ 2020-05-20 7:56 UTC (permalink / raw To: gentoo-user On 05/20 09:44, J. Roeleveld wrote: > On Monday, May 18, 2020 8:22:52 PM CEST tuxic@posteo.de wrote: > > On 05/18 09:58, Matt Connell (Gmail) wrote: > > > On 2020-05-18 09:40, tastytea wrote: > > > > Another solution is to modify the priority yourself, with `renice > > > > --priority 15 $(pidof blender)` for example. The priority can be from > > > > -20 (very high priority) to 19 (very low priority). > > > > > > According to the man page for renice, there is a --gpu flag that can be > > > used (today I learned) that the OP may want to try as well. > > > > If it is a load/performance problem, why is only > > firefox/internet-video affected? > > firefox might be using GPU-offloading for the video playback (decoder in GPU) > where MPV might not use the GPU for decoding and is only CPU-bound. > > -- > Joost > > > Hi Joost, mpv is installed as follows: [I] media-video/mpv Available versions: 0.32.0-r1^t **9999*l^t {+X +alsa aqua archive bluray cdda +cli coreaudio cplugins cuda debug doc drm dvb dvd +egl gamepad gbm +iconv jack javascript jpeg lcms +libass libcaca libmpv +lua luajit openal +opengl oss pulseaudio raspberry-pi rubberband samba sdl selinux test tools +uchardet vaapi vdpau vulkan wayland +xv zimg zlib PYTHON_TARGETS="python3_6 python3_7 python3_8"} Installed versions: 0.32.0-r1^t(08:15:17 AM 05/16/2020)(X alsa cdda cli cuda dvb dvd egl iconv jpeg lcms libass lua luajit opengl oss rubberband sdl uchardet xv zlib -aqua -archive -bluray -coreaudio -cplugins -debug -doc -drm -gamepad -gbm -jack -javascript -libcaca -libmpv -openal -pulseaudio -raspberry-pi -samba -selinux -test -tools -vaapi -vdpau -vulkan -wayland -zimg PYTHON_TARGETS="python3_7 -python3_6 -python3_8") Homepage: https://mpv.io/ https://github.com/mpv-player/mpv Description: Media player based on MPlayer and mplayer2 The USE flag "cuda" - therefore mpv should be able to utilize the GPU... Cheers! Meino ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] How to manage load on the GPU? 2020-05-20 7:56 ` tuxic @ 2020-05-20 8:00 ` J. Roeleveld 0 siblings, 0 replies; 9+ messages in thread From: J. Roeleveld @ 2020-05-20 8:00 UTC (permalink / raw To: gentoo-user On Wednesday, May 20, 2020 9:56:07 AM CEST tuxic@posteo.de wrote: > On 05/20 09:44, J. Roeleveld wrote: > > On Monday, May 18, 2020 8:22:52 PM CEST tuxic@posteo.de wrote: > > > On 05/18 09:58, Matt Connell (Gmail) wrote: > > > > On 2020-05-18 09:40, tastytea wrote: > > > > > Another solution is to modify the priority yourself, with `renice > > > > > --priority 15 $(pidof blender)` for example. The priority can be > > > > > from > > > > > -20 (very high priority) to 19 (very low priority). > > > > > > > > According to the man page for renice, there is a --gpu flag that can > > > > be > > > > used (today I learned) that the OP may want to try as well. > > > > > > If it is a load/performance problem, why is only > > > firefox/internet-video affected? > > > > firefox might be using GPU-offloading for the video playback (decoder in > > GPU) where MPV might not use the GPU for decoding and is only CPU-bound. > > > > -- > > Joost > > Hi Joost, > > mpv is installed as follows: > > > [I] media-video/mpv > Available versions: 0.32.0-r1^t **9999*l^t {+X +alsa aqua archive > bluray cdda +cli coreaudio cplugins cuda debug doc drm dvb dvd +egl gamepad > gbm +iconv jack javascript jpeg lcms +libass libcaca libmpv +lua luajit > openal +opengl oss pulseaudio raspberry-pi rubberband samba sdl selinux > test tools +uchardet vaapi vdpau vulkan wayland +xv zimg zlib > PYTHON_TARGETS="python3_6 python3_7 python3_8"} Installed versions: > 0.32.0-r1^t(08:15:17 AM 05/16/2020)(X alsa cdda cli cuda dvb dvd egl iconv > jpeg lcms libass lua luajit opengl oss rubberband sdl uchardet xv zlib > -aqua -archive -bluray -coreaudio -cplugins -debug -doc -drm -gamepad -gbm > -jack -javascript -libcaca -libmpv -openal -pulseaudio -raspberry-pi -samba > -selinux -test -tools -vaapi -vdpau -vulkan -wayland -zimg > PYTHON_TARGETS="python3_7 -python3_6 -python3_8") Homepage: > https://mpv.io/ https://github.com/mpv-player/mpv Description: > Media player based on MPlayer and mplayer2 > > > The USE flag "cuda" - therefore mpv should be able to utilize the > GPU... > > Cheers! > Meino Meino, I would agree as well, except I don't think all video-codecs can be offloaded to the GPU. "mpv" might also be clever enough not to use the GPU if it is too busy whereas firefox/video might not have that logic. I don't know enough about the internals to be 100% certain, but, to me, this is a plausible explanation. Especially as video-cards have built-in decoders, but not for all codecs. -- Joost ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [gentoo-user] How to manage load on the GPU? 2020-05-18 4:41 [gentoo-user] How to manage load on the GPU? tuxic 2020-05-18 14:36 ` tastytea 2020-05-18 14:40 ` tastytea @ 2020-05-20 12:55 ` Mark Knecht 2 siblings, 0 replies; 9+ messages in thread From: Mark Knecht @ 2020-05-20 12:55 UTC (permalink / raw To: Gentoo User [-- Attachment #1: Type: text/plain, Size: 1764 bytes --] On Sun, May 17, 2020 at 9:42 PM <tuxic@posteo.de> wrote: > > Hi, > > sorry for the somehow vague subject line...no native speaker... > > With Blender I do a lot of experimenting and tinkering which > involves rendering most of the time. > > With rendering comes ... waiting for the result. > > Often (I am trying to) watch videos, like tutorial about > what I currently trying to acchieve with Blender. > > The problem is, that the video (the audio does not) stutters > in short periods. > > Interestingly it does this not every time but quite often. > > And it only effects videos online. > > mpv for example is not affected. > > Is there any way to configure whatever it is in a way, that Online > videos can be played smoothlessly also? > > Hardware: > AMD Ryzen 5 3600 > MSI Ventus RTX 2060 SUPER (NVidia) > 32 GB RAM > > Any helpful idea is very appreciated! > Cheers! > Meino nvidia-settings has a section for 'Application Profiles'. I've never used it but it might somehow help you if you can identify processes that you want to adjust. From the GUI help file: "Use this page to configure application profiles for use with the NVIDIA® Linux Graphics Driver. Application profiles are collections of settings that are applied on a per-process basis. When the driver is loaded into the process, it detects various attributes of the running process and determines whether settings should be applied based on these attributes. This mechanism allows users to selectively override driver settings for a particular application without the need to set environment variables on the command line prior to running the application." There's more info online. I have no idea if this would help at all. - Mark [-- Attachment #2: Type: text/html, Size: 2143 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2020-05-20 12:56 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2020-05-18 4:41 [gentoo-user] How to manage load on the GPU? tuxic 2020-05-18 14:36 ` tastytea 2020-05-18 14:40 ` tastytea 2020-05-18 14:58 ` Matt Connell (Gmail) 2020-05-18 18:22 ` tuxic 2020-05-20 7:44 ` J. Roeleveld 2020-05-20 7:56 ` tuxic 2020-05-20 8:00 ` J. Roeleveld 2020-05-20 12:55 ` Mark Knecht
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox