Skip to contentSkip to conversation

RAM installed vs reported

DISCUSSION Thanasis 3 participants 13 messages Dec 30, 2009 – Jan 4, 2010 3 messages not in the archive

lore
Share & tools
lore

Thanasis

author
#0 lore raw

I have a netbook (Acer Aspire One A110L) and installed a 1GB DDR2 in the available slot, for a total of 1.5GB or RAM.
The BIOS reports it as 1.5GB and so does grml linux (booting from usb), but the installed gentoo linux reports only 904600 kB:

# free
             total       used       free     shared    buffers     cached
Mem:        904600      82316     822284          0       9752      37712
-/+ buffers/cache:      34852     869748
Swap:      1638588          0    1638588
# cat /proc/meminfo
MemTotal:         904600 kB
MemFree:          822284 kB
Buffers:            9752 kB
Cached:            37712 kB
SwapCached:            0 kB
Active:            32232 kB
Inactive:          28780 kB
Active(anon):      13848 kB
Inactive(anon):        0 kB
Active(file):      18384 kB
Inactive(file):    28780 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       1638588 kB
SwapFree:        1638588 kB
Dirty:                 4 kB
Writeback:             0 kB
AnonPages:         13548 kB
Mapped:            11256 kB
Shmem:               300 kB
Slab:              10356 kB
SReclaimable:       6132 kB
SUnreclaim:         4224 kB
KernelStack:        1424 kB
PageTables:          892 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     2090888 kB
Committed_AS:      73552 kB
VmallocTotal:     122880 kB
VmallocUsed:        9688 kB
VmallocChunk:     109832 kB
DirectMap4k:       11832 kB
DirectMap4M:      905216 kB

I suspect it has to do with my kernel (2.6.32-gentoo-r1) configuration, but do not know where to look.
Any suggestions ?

A message that is not in the archive (sent off-list or not yet received): [email protected]

author
#2 lore raw

on 12/30/2009 01:08 PM Dirk Heinrichs wrote the following:

Quoted 9 lines

Am Mittwoch 30 Dezember 2009 11:49:39 schrieb Thanasis:

Quoted 4 lines

I have a netbook (Acer Aspire One A110L) and installed a 1GB DDR2 in the available slot, for a total of 1.5GB or RAM.
The BIOS reports it as 1.5GB and so does grml linux (booting from usb), but the installed gentoo linux reports only 904600 kB:

With more than 1G of memory, you should set CONFIG_HIGHMEM4G=y. HTH...
Dirk

I thought CONFIG_HIGHMEM4G had to do with more than 4GB of RAM. Now I can see that the associated help says it is for an amount between 1 and 4GB.
That should be it. The option name confused me.
I will try it and report back.
Thanks :-)

#3 lore raw
Quoted 3 lines · Thanasis

I thought CONFIG_HIGHMEM4G had to do with more than 4GB of RAM. Now I can see that the associated help says it is for an amount between 1 and 4GB.

Depends on the "split" used. With 2 GB : 2 GB you can have all-lowmem 1.5 GB RAM, without CONFIG_HIGHMEM*. 2 GB of per-process address space is usually not a problem.

x86-64 removes such limits.

Signature · 1 line
Krzysztof Halasa
author
#4 lore raw

on 12/31/2009 04:59 PM Krzysztof Halasa wrote the following:

Quoted 9 lines
Quoted 3 lines · Thanasis

I thought CONFIG_HIGHMEM4G had to do with more than 4GB of RAM. Now I can see that the associated help says it is for an amount between 1 and 4GB.

Depends on the "split" used. With 2 GB : 2 GB you can have all-lowmem 1.5 GB RAM, without CONFIG_HIGHMEM*. 2 GB of per-process address space is usually not a problem.

How do you implement that? What do you mean 2GB:2GB split ?

#5 lore raw
Quoted 4 lines · Thanasis
Quoted 3 lines

Depends on the "split" used. With 2 GB : 2 GB you can have all-lowmem 1.5 GB RAM, without CONFIG_HIGHMEM*. 2 GB of per-process address space is usually not a problem.

How do you implement that? What do you mean 2GB:2GB split ?

See "make menuconfig", Processor type and features -> Memory split. You need to select "EMBEDDED" and "EXPERIMENTAL" first. What you need for 1.5 GB RAM is VMSPLIT_2G.

The idea is that the CPU address space is divided: ca. 2 GB (in this configuration) for user space (for each process - instead of 3 GB), 2 GB - 128 MB (or something like that, I don't remember exactly) for physical RAM, and the last 128 MB or so for PCI devices and other things.

Signature · 1 line
Krzysztof Halasa
author
#6 lore raw

on 01/01/2010 03:38 PM Krzysztof Halasa wrote the following:

Quoted 13 lines
Quoted 6 lines · Thanasis
Quoted 4 lines

Depends on the "split" used. With 2 GB : 2 GB you can have all-lowmem 1.5 GB RAM, without CONFIG_HIGHMEM*. 2 GB of per-process address space is usually not a problem.

How do you implement that? What do you mean 2GB:2GB split ?

See "make menuconfig", Processor type and features -> Memory split. You need to select "EMBEDDED" and "EXPERIMENTAL" first. What you need for 1.5 GB RAM is VMSPLIT_2G.

Quoted 6 lines

The idea is that the CPU address space is divided: ca. 2 GB (in this configuration) for user space (for each process - instead of 3 GB), 2 GB - 128 MB (or something like that, I don't remember exactly) for physical RAM, and the last 128 MB or so for PCI devices and other things.

Hmm..., but are EMBEDDED options suitable for a netbook like the A110L ?

#7 lore raw
Quoted 1 line · Thanasis

Hmm..., but are EMBEDDED options suitable for a netbook like the A110L ?

This "EMBEDDED" just means "don't touch these unless you really know what you're doing".

BTW I remember using VMSPLIT 2 GB : 2 GB on server-class machines, before they were upgraded to x86-64.

Signature · 1 line
Krzysztof Halasa
author
#8 lore raw

on 01/04/2010 01:10 AM Krzysztof Halasa wrote the following:

Quoted 11 lines
Quoted 2 lines · Thanasis

Hmm..., but are EMBEDDED options suitable for a netbook like the A110L ?

This "EMBEDDED" just means "don't touch these unless you really know what you're doing".

BTW I remember using VMSPLIT 2 GB : 2 GB on server-class machines, before they were upgraded to x86-64.

Do you mean that I should try it? Is there any gain over using CONFIG_HIGHMEM4G ?

#9 lore raw
Quoted 2 lines · Thanasis

Do you mean that I should try it? Is there any gain over using CONFIG_HIGHMEM4G ?

You may want to try, HIGHMEM4G is (may be) slower, depending on load. Google should find something about that.

Signature · 1 line
Krzysztof Halasa

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

author
#12 lore raw

on 01/04/2010 07:51 PM Thanasis wrote the following:

Quoted 17 lines

on 01/04/2010 04:51 PM Joshua Murphy wrote the following:

Quoted 16 lines

2010/1/3 Thanasis <[email protected]>:

Quoted 14 lines

on 01/04/2010 01:10 AM Krzysztof Halasa wrote the following:

Quoted 12 lines
Quoted 2 lines · Thanasis

Hmm..., but are EMBEDDED options suitable for a netbook like the A110L ?

This "EMBEDDED" just means "don't touch these unless you really know what you're doing".

BTW I remember using VMSPLIT 2 GB : 2 GB on server-class machines, before they were upgraded to x86-64.

Quoted 8 lines
Quoted 7 lines
Quoted 3 lines

Do you mean that I should try it? Is there any gain over using CONFIG_HIGHMEM4G ?

Likely nothing noticeable, but here's a bit of a good coverage of the topic:

http://kerneltrap.org/node/6067

Thanks, I think I'll give it a try. :-)

I tried option: 2G/2G user/kernel split (for full 2G low memory), but X would not start. So i reverted back to CONFIG_HIGHMEM4G.

#13 lore raw
Quoted 2 lines · Thanasis

I tried option: 2G/2G user/kernel split (for full 2G low memory), but X would not start. So i reverted back to CONFIG_HIGHMEM4G.

Binary proprietary module maybe?

Signature · 1 line
Krzysztof Halasa
author
#14 lore raw
In reply to a message not in the archive

on 12/30/2009 01:08 PM Dirk Heinrichs wrote the following:

Quoted 7 lines

Am Mittwoch 30 Dezember 2009 11:49:39 schrieb Thanasis:

Quoted 4 lines

I have a netbook (Acer Aspire One A110L) and installed a 1GB DDR2 in the available slot, for a total of 1.5GB or RAM.
The BIOS reports it as 1.5GB and so does grml linux (booting from usb), but the installed gentoo linux reports only 904600 kB:

Quoted 5 lines

With more than 1G of memory, you should set CONFIG_HIGHMEM4G=y.

HTH...

Dirk

That did it !
Thanks again.
:-)

#15 lore raw
Quoted 9 lines · Thanasis

on 12/30/2009 01:08 PM Dirk Heinrichs wrote the following:

Quoted 8 lines

Am Mittwoch 30 Dezember 2009 11:49:39 schrieb Thanasis:

Quoted 4 lines

I have a netbook (Acer Aspire One A110L) and installed a 1GB DDR2 in the available slot, for a total of 1.5GB or RAM.
The BIOS reports it as 1.5GB and so does grml linux (booting from usb), but the installed gentoo linux reports only 904600 kB:

With more than 1G of memory, you should set CONFIG_HIGHMEM4G=y.

Another benefit with PAE is that you get the benefit of the nx bit being available to eliminate several classes to deliberate and unintentional misbehavior.

Signature · 3 lines
Bill Davidsen <[email protected]>
  "We have more to fear from the bungling of the incompetent than from
the machinations of the wicked."  - from Slashdot