Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-02-2025, 05:45 AM
|
#1
|
|
Member
Registered: Oct 2022
Posts: 134
Rep:
|
How does a 32-bit OS handle more than 4 GiB of video RAM (VRAM)?
[ Log in to get rid of this advertisement]
From what I understand, the maximum available RAM on a 32-bit OS is 4 GiB (not GB) minus VRAM (video RAM), so with 1 GiB of VRAM, the system can use up to 3 GiB RAM, regardless how how much larger the RAM is.
But what if you give it more than 4 GiB of VRAM? Will it just fail to boot? Or will it split into 2 GiB RAM, 2 GiB VRAM or something like that?
(Note: GiB are powers of two, GB are powers of ten.)
|
|
|
|
07-02-2025, 06:06 AM
|
#2
|
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,674
|
the video ram is used by the gpu, can be some part of the main ram, but in some cases it has its own dedicated ram (which is not available/visible by the cpu)
|
|
|
|
07-02-2025, 06:09 AM
|
#3
|
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,448
|
Memory mapping is all "smoke and mirrors". Maybe you should look all the way back to PAE in this context.
|
|
|
|
07-03-2025, 05:03 PM
|
#4
|
|
Member
Registered: Jan 2022
Location: Hanover, Germany
Distribution: Slackware
Posts: 332
Rep: 
|
Quote:
Originally Posted by exerceo
From what I understand, the maximum available RAM on a 32-bit OS is 4 GiB (not GB) minus VRAM (video RAM)
|
No!
VRAM is handled by GPU exclusively. Therefore it has nothing to do with the 32-bit = 4 GiB address space limit of a 32-bit OS. A little bit more complicate is a system with a chipset or processor IGP that uses "shared memory" (a portion of installed RAM).
If CPU doesn't provide PAE (physical addrerss extension) or mainboard doesn't provide "memory remapping", 4 GiB minus address spaces of mainboard components and add-in cards are available for addressing main memory (RAM). A common limit is 3,25 GiB for addressing RAM.
If CPU provides PAE and mainboard provides "memory remapping", 64 GiB minus address spaces of mainboard components and add-in cards are available for addressing RAM.
In reality, the 4 GiB limit can be reached with late ia32 mainboards (e.g. socket-478, socket-775, socket-A) or with x86_64 mainboards, and the 64 GiB limit can be reached with newer x86_64 mainboards.
On ia32 mainboards with AGP slot and without "memory remapping" support, another limit occurs if an Ati AGP graphics card is used: If more than 2,75 GiB RAM is installed the system is useless because it doesn't work stable. Start of address range of Ati AGP graphics cards is fixed at 2,75 GiB. This collides with installed RAM > 2,75 GiB (commonly 3 GiB or 4 GiB) that cannot be remapped due to missing "memory remapping" support from mainboard.
A solution in this case ist reducing installed RAM to commonly 2,5 GiB (3 slots: 1 GiB + 1 GiB + 512 MiB; 4 slots: 1 GiB + 1 GiB + 256 MiB + 256 MiB).
Another solution is replacing the Ati AGP graphics card with a nvidia AGP graphics card to enable full use of installed 3 GiB RAM or use of about 3,25 GiB of 4 GiB installed RAM, but Linux & nvidia graphics cards is something like matter & antimatter … 
|
|
|
2 members found this post helpful.
|
07-03-2025, 08:22 PM
|
#5
|
|
Senior Member
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,762
|
Quote:
Originally Posted by exerceo
From what I understand, the maximum available RAM on a 32-bit OS is 4 GiB (not GB) minus VRAM (video RAM), so with 1 GiB of VRAM, the system can use up to 3 GiB RAM, regardless how how much larger the RAM is.
But what if you give it more than 4 GiB of VRAM? Will it just fail to boot? Or will it split into 2 GiB RAM, 2 GiB VRAM or something like that?
|
The BIOS wouldn't let you give it that much. The only time you assign system memory to a gpu is if its an integrated GPU (either on cpu like modern chips or on motherboards like back in the 32-bit days), and the system isn't gunna let you assign too much. Usually its 1G or less. A discrete GPU (video card) has its own VRAM, and not used by the OS...
Last edited by enigma9o7; 07-03-2025 at 09:31 PM.
|
|
|
|
07-04-2025, 12:52 AM
|
#6
|
|
LQ Guru
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,375
|
Quote:
Originally Posted by exerceo
From what I understand, the maximum available RAM on a 32-bit OS is 4 GiB (not GB) minus VRAM (video RAM), so with 1 GiB of VRAM, the system can use up to 3 GiB RAM, regardless how how much larger the RAM is.
|
Yeah.... that's not correct.
|
|
|
|
07-05-2025, 03:22 PM
|
#7
|
|
Member
Registered: Jun 2025
Posts: 141
Rep:
|
I actually have no real clue about this, but I would guess it would be like MIDI instrument banks.
Midi can only do program (instrument) changes from 0-127, aka, an 8 bit value.
So there's "banks" to increase that limit, then you have 128 banks each with 128 instruments.
So I would guess that a 32 bit system can handle a lot more ram by just dividing it into chunks that have 4gig boundaries, or something, divided into banks, which would be tracked by the system.
Again, though, this is pure speculation and I'm not even looking it up to see if I'm right or wrong. Lol.
It's just such a 'direct' solution to that problem that I'd be surprised if it weren't the thing that's being done.
|
|
|
|
07-06-2025, 09:57 AM
|
#8
|
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,674
|
Quote:
Originally Posted by clueless_dolt
So I would guess that a 32 bit system can handle a lot more ram by just dividing it into chunks that have 4gig boundaries, or something, divided into banks, which would be tracked by the system.
|
The CPU cannot address more RAM (than 4G) at a time, but obviously you can switch on/off those banks to use different ones.
see for example here: https://www.golinuxhub.com/2014/02/u...-pae-in-linux/ (post #3)
|
|
|
|
07-06-2025, 12:05 PM
|
#9
|
|
Senior Member
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,762
|
Yeah, that's why even with PAE and a system with 8G, a single app still has the 4G limit on 32-bit system.
|
|
|
|
All times are GMT -5. The time now is 03:29 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|