LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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


Reply
  Search this Thread
Old 07-02-2025, 05:45 AM   #1
exerceo
Member
 
Registered: Oct 2022
Posts: 134

Rep: Reputation: 30
Question 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.)
 
Old 07-02-2025, 06:06 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,674

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
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)
 
Old 07-02-2025, 06:09 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,448

Rep: Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204Reputation: 4204
Memory mapping is all "smoke and mirrors". Maybe you should look all the way back to PAE in this context.
 
Old 07-03-2025, 05:03 PM   #4
Arnulf
Member
 
Registered: Jan 2022
Location: Hanover, Germany
Distribution: Slackware
Posts: 332

Rep: Reputation: 122Reputation: 122
Quote:
Originally Posted by exerceo View Post
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.
Old 07-03-2025, 08:22 PM   #5
enigma9o7
Senior Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,762

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
Quote:
Originally Posted by exerceo View Post
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.
 
Old 07-04-2025, 12:52 AM   #6
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,375

Rep: Reputation: 5389Reputation: 5389Reputation: 5389Reputation: 5389Reputation: 5389Reputation: 5389Reputation: 5389Reputation: 5389Reputation: 5389Reputation: 5389Reputation: 5389
Quote:
Originally Posted by exerceo View Post
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.
 
Old 07-05-2025, 03:22 PM   #7
clueless_dolt
Member
 
Registered: Jun 2025
Posts: 141

Rep: Reputation: 35
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.
 
Old 07-06-2025, 09:57 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,674

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by clueless_dolt View Post
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)
 
Old 07-06-2025, 12:05 PM   #9
enigma9o7
Senior Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,762

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
Yeah, that's why even with PAE and a system with 8G, a single app still has the 4G limit on 32-bit system.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Arch Linux Installer Archinstall 2.8 Increase ESP Size to 1 GiB, Fixes More Bugs LXer Syndicated Linux News 0 04-15-2024 07:45 PM
HDD FROZEN - 17 GiB - missing!! Trying to create multi-boot system! nitid Linux - Newbie 7 12-11-2010 12:02 AM
ifconfig RX and TX packets resets at 4 Gib oddo Linux - Networking 1 06-16-2008 01:40 PM
Strange units in conky (KiB, MiB, GiB) chilebiker Linux - Software 1 05-04-2007 12:44 PM
128 GiB ATA limit on old hardware with old OS version jp413 Linux - Hardware 1 05-29-2005 12:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration