Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
request for comments: how many vram do you grant your APU?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
jpsollie
Guru
Guru


Joined: 17 Aug 2013
Posts: 322

PostPosted: Fri Apr 12, 2024 11:35 am    Post subject: request for comments: how many vram do you grant your APU? Reply with quote

Hi everyone,

I accidentally came by the Smokeless_UMAF project,
which is extremely useful for my laptop:
HP limits all its Amd APU laptops to a =2GB VRAM,
which is a lot for someone who's never gaming nor using multiple monitors.
But ... how much vram does a APU actually need these days?
You can say 2G is too much, but is 1G the sweet spot for regular desktop work?
or is 512MB a better idea?
I see, using radeontop, at normal office work, the GPU is using 3-400MB VRAM.

What would you say that a "non-ridiculous" amount of VRAM is these days?
_________________
The power of Gentoo optimization (not overclocked): [img]https://www.passmark.com/baselines/V10/images/503714802842.png[/img]
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2367

PostPosted: Fri Apr 12, 2024 1:28 pm    Post subject: Reply with quote

Integrated display: 2560x1600;
External display: 1280x1024;

4k YouTube video playing on the integrated display, full screen;

VRAM in use: ~1.6G

I don't think 512MB is a good choice.

p.s. the integrated Vega (Ryzen 7 5800H) cannot play a 4k video on a 4k external display. Not because of memory but because of lack of iGPU computational power. If I want to do that I must switch on the nvidia card.

p.s.2 it takes 1GB without playing anything in the browser. So unless you're really short on memory, I wouldn't recommend cutting the vRAM for the iGPU.

Best Regards,
Georgi
Back to top
View user's profile Send private message
jpsollie
Guru
Guru


Joined: 17 Aug 2013
Posts: 322

PostPosted: Fri Apr 12, 2024 7:13 pm    Post subject: Reply with quote

logrusx wrote:
Integrated display: 2560x1600;
External display: 1280x1024;

4k YouTube video playing on the integrated display, full screen;

VRAM in use: ~1.6G

I don't think 512MB is a good choice.

p.s. the integrated Vega (Ryzen 7 5800H) cannot play a 4k video on a 4k external display. Not because of memory but because of lack of iGPU computational power. If I want to do that I must switch on the nvidia card.

p.s.2 it takes 1GB without playing anything in the browser. So unless you're really short on memory, I wouldn't recommend cutting the vRAM for the iGPU.

Best Regards,
Georgi


Thank you for your comments.
Regarding the video playing: have you tried using the hardware codec?
according to wikipedia, VCN 2.0 should play up to 8K
_________________
The power of Gentoo optimization (not overclocked): [img]https://www.passmark.com/baselines/V10/images/503714802842.png[/img]
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2367

PostPosted: Sat Apr 13, 2024 4:51 am    Post subject: Reply with quote

It is hardware accelerated, it just can't do it over HDMI. It may have something to do with the outputs being driven by the dGPU. I'm sure they are, because when I completely power off the dGPU, they are inactive.

Best Regards,
Georgi
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54572
Location: 56N 3W

PostPosted: Sat Apr 13, 2024 9:52 am    Post subject: Reply with quote

jpsollie,


For 2D, the absolute bare minimum is two pixel buffers.
That's X * Y * 2 * (colour depth bits /4) bytes.
Note that 24 bit colour uses 32 bits as there in no way to address a 24 bit quantity on x86/amd64.
Many GPUs won't like the bare minimum as they insist on working with X and Y that are integer multiples of 8.

Some off screen space in good too, as GPUs like to compose primitives in the GPU RAM and move them to the pixel buffer, as required.
Copying a region of RAM (Bit Blitting) is much faster than drawing it and at 60Hz refresh, there is only 16.666 ms to render each frame.

With 3D, it gets much more complicated. However, if you don't allocate enough Video RAM, the APU will borrow some main memory.
This is a bad thing, as the main memory access is slow.

It comes down to your usage.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
jpsollie
Guru
Guru


Joined: 17 Aug 2013
Posts: 322

PostPosted: Wed Apr 17, 2024 6:47 am    Post subject: Reply with quote

NeddySeagoon wrote:
jpsollie,


For 2D, the absolute bare minimum is two pixel buffers.
That's X * Y * 2 * (colour depth bits /4) bytes.
Note that 24 bit colour uses 32 bits as there in no way to address a 24 bit quantity on x86/amd64.
Many GPUs won't like the bare minimum as they insist on working with X and Y that are integer multiples of 8.

Some off screen space in good too, as GPUs like to compose primitives in the GPU RAM and move them to the pixel buffer, as required.
Copying a region of RAM (Bit Blitting) is much faster than drawing it and at 60Hz refresh, there is only 16.666 ms to render each frame.

With 3D, it gets much more complicated. However, if you don't allocate enough Video RAM, the APU will borrow some main memory.
This is a bad thing, as the main memory access is slow.

It comes down to your usage.


Yes, so the "complicated" thing is what matters here:
a 1080p screen should need 32MB for 2D
These days, many programs (like the browser, or even kwin) use opengl / vulkan rendering even though they don't really do fancy graphics stuff.
is there a way to "monitor" the VRAM usage, eg during a day, and then check "it needed at most xx MiB of RAM"?
_________________
The power of Gentoo optimization (not overclocked): [img]https://www.passmark.com/baselines/V10/images/503714802842.png[/img]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum