Re: [gentoo-user] How to manage load on the GPU?

2020-05-20 Thread Mark Knecht
On Sun, May 17, 2020 at 9:42 PM  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


Re: [gentoo-user] How to manage load on the GPU?

2020-05-20 Thread J. Roeleveld
On Wednesday, May 20, 2020 9:56:07 AM CEST tu...@posteo.de wrote:
> On 05/20 09:44, J. Roeleveld wrote:
> > On Monday, May 18, 2020 8:22:52 PM CEST tu...@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 ***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






Re: [gentoo-user] How to manage load on the GPU?

2020-05-20 Thread tuxic
On 05/20 09:44, J. Roeleveld wrote:
> On Monday, May 18, 2020 8:22:52 PM CEST tu...@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 ***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





Re: [gentoo-user] How to manage load on the GPU?

2020-05-20 Thread J. Roeleveld
On Monday, May 18, 2020 8:22:52 PM CEST tu...@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





Re: [gentoo-user] How to manage load on the GPU?

2020-05-18 Thread tuxic
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





Re: [gentoo-user] How to manage load on the GPU?

2020-05-18 Thread Matt Connell (Gmail)

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.




Re: [gentoo-user] How to manage load on the GPU?

2020-05-18 Thread tastytea
[Please excuse the previous mail, I accidentally hit send too soon]

On 2020-05-18 06:41+0200
tu...@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 tasty...@tastytea.de` or at
.


pgpxsV1UUvqgd.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] How to manage load on the GPU?

2020-05-18 Thread tastytea
On 2020-05-18 06:41+0200
tu...@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 tasty...@tastytea.de` or at
.


pgpes7xgaHZa7.pgp
Description: Digitale Signatur von OpenPGP


[gentoo-user] How to manage load on the GPU?

2020-05-17 Thread tuxic
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