Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
4GB RAM -> Missing a Gig?!
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
Cyker
Veteran
Veteran


Joined: 15 Jun 2006
Posts: 1746

PostPosted: Wed Dec 10, 2008 7:25 pm    Post subject: 4GB RAM -> Missing a Gig?! Reply with quote

I just nabbed a couple of 1GB DDR sticks which a friend was throwing out (:shock:), so now I have 4GB! \o/

Now, previously, my server had 3GB - On swapping out the 2x512's for 2x1GBs, the usual only-3.2GB-or-so-visible thing kicked in, so I went to the BIOS, changed a few things around (MTRR: Continuous->Discrete, S/W MemHole Remapping->Enabled) and the BIOS could now see the whole lot!

Booted Linux, checked dmesg:

3200MB HIGHMEM available. (Used to be 2175MB HIGHMEM available.)
896MB LOWMEM available.

Woo!

But then when it finishes booting up, I find that actually I only have 3290M available :(

Any ideas where the rest went, and how/if I can get it back?

And before anyone says 64-bit, yes yes that is coming along but I can't even start it until I have a big stretch of time (Like... Xmas??! :mrgreen:), but in the *meantime*, how can I go about recovering this space?

The server has no video card aside from an old PCI 4MB ATI Mach64V, so it's not the V-RAM stealing the space, which is the usual culprit!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Wed Dec 10, 2008 7:38 pm    Post subject: Reply with quote

Cyker,

You have various memory mapped hardware items mapped into the top of the 4G address space, e.g. The BIOS, the PCI space which you cannot map out, well, not if you want them to use them anyway.

The RAM you just fitted cannot be addressed here - you get your BIOS/Hardware instead.
Motherboards do two things - throw the excess RAM away by hiding it from you, often startting at a fairly arbitaray sounding address like 3.2G.
64 bit systems map it into the the address space above 4G and can use it there. As you have a 32 bit install, that does not apply to you.

You can try to turn on 64G himem in the kernel but this comes at a performance price because the kernel uses Physical Address space Extension to page memory into the 4G space you can use, a little like Expanded Memory on 286 and older systems.
Its not worth bothering with until you can go 64 bit
_________________
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
Cyker
Veteran
Veteran


Joined: 15 Jun 2006
Posts: 1746

PostPosted: Wed Dec 10, 2008 8:31 pm    Post subject: Reply with quote

Awww...

Thanks for such a quick reply; I was hoping I could shrink that reserved area a bit, since this thing has virtually no peripherals.

I even removed anything that used mmapio in the kernel! O.o

I might try the 64GB mode just to see what the difference is, but on reflection I think I might be better off putttng the RAM in my desktop system :/

(Or find a cheap cool quiet motherboard that can take 8+GB of DDR1 >:P)
Back to top
View user's profile Send private message
Cyker
Veteran
Veteran


Joined: 15 Jun 2006
Posts: 1746

PostPosted: Thu Dec 11, 2008 11:02 am    Post subject: Reply with quote

Curiously, setting the BIOS back to MTRR Continuous and disabling the memory hole remap gives me 3408MB of usable memory vs the 3290MB, despite the BIOS saying 3440MB available, vs ~3980MB. Weird!

Haven't tried PAE yet 'tho; Having the BIOS set to Discrete + Remap enabled seems to be causing weird stability issues... smells like the A8N32 w/ remapped hole 4GB is causing some weird data corruption?!
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9890
Location: almost Mile High in the USA

PostPosted: Fri Dec 12, 2008 6:17 pm    Post subject: Reply with quote

I've found I have to use 64GB PAE to access all 4GB RAM I have in my Foxconn G9657MA (Core2 E6700 CPU) motherboard. I don't think it's motherboard dependent, if it has only 4GB of address space to work with, you can't fit in any io address space or deal with shared/kernel memory.

I've not noticed a large penalty to using 64G PAE - but the main reason for this is that I do not typically run two processes that are big enough to require page flipping between them. There is a penalty to get to kernel code, and thus there is a small penalty that I do pay for 64G PAE but I can't really tell it's there (my E6700 is still faster than my Q6600 in single-thread apps, and maybe I should swap motherboards for these machines as the Q6600's m/b only supports 2GB...).
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Cyker
Veteran
Veteran


Joined: 15 Jun 2006
Posts: 1746

PostPosted: Fri Dec 12, 2008 8:48 pm    Post subject: Reply with quote

eccerr0r wrote:
I've found I have to use 64GB PAE to access all 4GB RAM I have in my Foxconn G9657MA (Core2 E6700 CPU) motherboard. I don't think it's motherboard dependent, if it has only 4GB of address space to work with, you can't fit in any io address space or deal with shared/kernel memory.

Yeah, I was hoping that the total lack of any peripherals on my server would allow more of that space to be used, but it seems that PCI has a minimum reserved address space 'as standard' which I can't do much about.
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