Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Available memory is only 755MB, not 1024MB (solved)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
carbonated
n00b
n00b


Joined: 17 Nov 2004
Posts: 11
Location: Denmark

PostPosted: Thu Jun 23, 2005 9:36 am    Post subject: Available memory is only 755MB, not 1024MB (solved) Reply with quote

I've got 1GB of memory installed in my powerbook G4 1Ghz, but only 755MB seems available to the system.

When i do
Code:

GentooG4 ~ # cat /proc/cpuinfo
processor       : 0
cpu             : 7455, altivec supported
clock           : 1000MHz
revision        : 3.3 (pvr 8001 0303)
bogomips        : 997.37
machine         : PowerBook5,1
motherboard     : PowerBook5,1 MacRISC3 Power Macintosh
detected as     : 287 (PowerBook G4 17")
pmac flags      : 0000000a
L2 cache        : 256K unified
memory          : 1024MB
pmac-generation : NewWorld

It shows 1024Mb. (all fine and correct)


But when i do
Code:

GentooG4 ~ # cat /proc/meminfo
MemTotal:       773288 kB
MemFree:          5392 kB
Buffers:         73540 kB
Cached:         459628 kB
SwapCached:          0 kB
Active:         471604 kB
Inactive:       240888 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:       773288 kB
LowFree:          5392 kB
SwapTotal:      524280 kB
SwapFree:       521644 kB
Dirty:             104 kB
Writeback:           0 kB
Mapped:         240044 kB
Slab:            46216 kB
CommitLimit:    910924 kB
Committed_AS:   410324 kB
PageTables:       1808 kB
VmallocTotal:   185972 kB
VmallocUsed:      6504 kB
VmallocChunk:   179424 kB


it only shows 755MB, which is what the system thinks is available - (269(~256) missing)

Can anyone point me in the direction of a solution?

(edit:) kernel is vanilla 2.6.10


Last edited by carbonated on Thu Jun 23, 2005 10:37 am; edited 1 time in total
Back to top
View user's profile Send private message
mattengi
n00b
n00b


Joined: 07 Jun 2002
Posts: 4

PostPosted: Thu Jun 23, 2005 9:56 am    Post subject: Reply with quote

Check your kernel config for 1GB memory
Code:
make menuconfig -> Processor type and features -> High Memory Support -> (X) 4GB

then, dmesg show this message
Code:
127MB HIGHMEM available.
896MB LOWMEM available.


If you dont check that kernel option, only LOWMEM availabe(896MB)

gentoo-sources-2.6.12
P4 2.4C
1G MEM
...


Last edited by mattengi on Thu Jun 23, 2005 9:59 am; edited 1 time in total
Back to top
View user's profile Send private message
RuiP
l33t
l33t


Joined: 15 Jan 2005
Posts: 643

PostPosted: Thu Jun 23, 2005 9:57 am    Post subject: Reply with quote

Hi,
what was your choice for 'High Memory Support' when you compile your kernel?

edit: mattengi was faster by 1 minute :)
Back to top
View user's profile Send private message
carbonated
n00b
n00b


Joined: 17 Nov 2004
Posts: 11
Location: Denmark

PostPosted: Thu Jun 23, 2005 10:06 am    Post subject: Reply with quote

Ok i'm trying that (it was not enabled), compile is running :)

I have allways thought that it only made a difference at 4GB+

I will return with the result.
_________________
We can't stop here, this is batcountry!
Back to top
View user's profile Send private message
RuiP
l33t
l33t


Joined: 15 Jan 2005
Posts: 643

PostPosted: Thu Jun 23, 2005 10:14 am    Post subject: Reply with quote

In fact it represent a certain waste (there is a lot of information around about that, do a goggle search...) for the specific case of 1G of memory. It was in a way a choice of have only ~800M available or some waste of ressources.

Kernel sources like Con Kolivas's, Nitro sources, etc, had a patch to "solve" that, but it as not hit vanilla sources or gentoo-sources...
Back to top
View user's profile Send private message
carbonated
n00b
n00b


Joined: 17 Nov 2004
Posts: 11
Location: Denmark

PostPosted: Thu Jun 23, 2005 10:37 am    Post subject: Reply with quote

That worked :) Thanks a lot guys!

**hitting myself for never having tried this (i have looked at the option many times :oops: )**
_________________
We can't stop here, this is batcountry!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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