Author Topic: Memory Puzzle  (Read 1370 times)

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Memory Puzzle
« on: May 05, 2010, 10:21:14 AM »
I finally moved my main PC to 2010, having tested various things on another PC for the past while.

This PC has a 3.2Ghz P4 with Hyperthreading and 4GB memory.

I am using
Code: [Select]
uname -r
2.6.32.11-pclos2.pae

and Top reports

Code: [Select]
Mem:   3575656k total,  1511456k used,  2064200k free,    44908k buffers
Hardinfo reports

Code: [Select]
Total Memory    3575656 kB
I don't think the total memory shown is appreciably larger than what was available when using a standard kernel.
Should I have even expected it would?

.


Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: Memory Puzzle
« Reply #1 on: May 05, 2010, 10:41:41 AM »
I rebooted the machine into the original kernel and here are the results ........

Code: [Select]
uname -r
2.6.32.11-pclos2

Code: [Select]
top
Mem:   3633084k total,   929528k used,  2703556k free,    38004k buffers

Code: [Select]
Hwinfo
Total Memory  3633084 kB


So I am either misreading the whole idea of Total Memory or I have less Total Memory showing when using the pae kernel than the non-pae kernel.

I do understand that there will be some extra overhead when using the pae kernel, but I am addressing total memory in this case, not available memory.

Any comments?

Offline old_guy

  • Hero Member
  • *****
  • Posts: 706
Re: Memory Puzzle
« Reply #2 on: May 06, 2010, 09:57:52 PM »
What I get:
2.6.32.11-pclos2
[earl@localhost ~]$ free
             total       used       free     shared    buffers     cached
Mem:       2854000     442772    2411228          0      20036     196432

Top
Mem:   2854000k total

* * * * * *

2.6.33.2-pclos1.pae
[earl@localhost ~]$ free
             total       used       free     shared    buffers     cached
Mem:       3839152     512860    3326292          0      21064     269380

Top
Mem:   3839152k total
Never too old to learn.

Offline critter

  • Full Member
  • ***
  • Posts: 220
Re: Memory Puzzle
« Reply #3 on: May 07, 2010, 12:45:23 AM »
Here's mine
Code: [Select]
uname -r
2.6.33.2-pclos1.pae

Code: [Select]
top
Mem:   4104496k total,   845184k used,  3259312k free,    31836k buffers

Code: [Select]
free
             total       used       free     shared    buffers     cached                                     
Mem:       4104496     845580    3258916          0      31928     501884                                     
-/+ buffers/cache:     311768    3792728                                   

hardinfo gives the same total

an earlier pae kernel gave the same results

bfs reports 3373272kb from all commands

have you run a memory test?
Motherboard   Gigabyte Z68X-UD3H-B3
Hard Drives      2 x Maxtor STM350032 500GB SATA
Memory      16GB RAM
Processor      Intel core i5 3.30GHz
Video         nVidia GeForce GT430
Sound      HDA Intel PCH
PCLinuxOS          KDE

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: Memory Puzzle
« Reply #4 on: May 07, 2010, 02:05:32 AM »
Quote
have you run a memory test?

No, but it sure looks like I should ........ could it be a BIOS limitation I wonder?

Thanks for the replies guys ......  it seems 'something' is not quite right here ......

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: Memory Puzzle
« Reply #5 on: May 07, 2010, 03:14:35 AM »
I am getting closer to the problem I think ........ 

PCC - Hardware under Memory just lists
Code: [Select]
Cache (not specified)
That is the CPU cache and not the RAM!
It appears the RAM is not listed at all!

I ran the PartMagick live CD and checked the memory it recognised ---  4GB RAM

Back to PCLOS and ran lshw to find that the CPU info has this info --

Code: [Select]
4GB+ memory addressing (Physical Address Extension),
and the memory shows

Quote
slot: System board or motherboard
size: 4GiB

with each memory slot showing

Code: [Select]
slot: DIMM_1
size: 1GiB
width: 64 bits
clock: 667MHz (1ns)

Code: [Select]
uname -r
2.6.32.11-pclos2.pae


hwinfo ........ System Information ........  only shows

Code: [Select]
Total Memory as  3,575,656 kB
htop shows

Code: [Select]
412/3491MB
Just to be sure I will need to run a memtest I guess .....  when I figure out how best to do it on this install   :D .....  a reboot and test it seems.

Will add anything of interest I find   ......


Offline menotu

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 15304
  • ┌∩┐(◕_◕)┌∩┐
Re: Memory Puzzle
« Reply #6 on: May 07, 2010, 03:35:02 AM »
If memory serves me right, some P4 chipsets reserve some memory for hardware devices, thus when you check how much you have in your system it doesn't show the "true" amount.

I think the last Prescott F Core chip (and chipset) was the only one that allowed memory remapping above 4GB for use in 64bit OS's. (Upto 8GB?)

But as I say, this is from "my" memory, which probably needs a good defrag!   ;D

Edit: I use the .pae kernel and my system see's 3969504, whereas the other kernels only see a little over 3GB
« Last Edit: May 07, 2010, 03:37:46 AM by menotu »
PCLinuxOS 32bit KDE 4.10.1; kernel-3.4.11-pclos1.bfs & 64bit 3.2.18bfs; NVidia GeForce 8400GS 1GB 310.19 driver

Sony Vaio SVE1513A4ESI Laptop, Intel Core i5, 2.6GHz, 6GB RAM, 750GB, 15.6" Intel HD Graphics 4000

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: Memory Puzzle
« Reply #7 on: May 07, 2010, 04:12:29 AM »
menotu, I expected similar results to what you report, which is why I am somewhat puzzled.

I did a memtest and all is well.

I checked the BIOS and it has a setting to limit the OS memory available to 256MB or all of system memory to the OS.

I limited it to 256MB to see what effect it would have on this 2010 KDE install   ;D   yeah I know, but I could not reject the opportunity to see  :D

I am posting this from KDE running in 256MBs

Code: [Select]
Mem:    248300k total,   233004k used,    15296k free,     4772k buffers
Swap:  7622792k total,   212488k used,  7410304k free,    55120k cached

well maybe 'running' is a bit optimistic, but it is functioning and for such as launching the browser it is not too bad at all.

The CPU in this is a P4 3.2 Ghz with Hyperhtreading and 64bit extensions and would appear to indicate it is capable of managing 4GB and more of memory.

There is no mention of reserving memory, in the BIOS, other than limiting the OS to 256MBs.
With that option off all the memory is supposed to be available to the OS ...  according to what I read in the BIOS.

I will have another run-through the BIOS when I reboot ans reset the memory settings.

thanks.   ;)

Offline critter

  • Full Member
  • ***
  • Posts: 220
Re: Memory Puzzle
« Reply #8 on: May 07, 2010, 05:07:09 AM »
Does the motherboard have an on-board graphics card that is stealing some of the ram?

Just a stab in the dark!
Motherboard   Gigabyte Z68X-UD3H-B3
Hard Drives      2 x Maxtor STM350032 500GB SATA
Memory      16GB RAM
Processor      Intel core i5 3.30GHz
Video         nVidia GeForce GT430
Sound      HDA Intel PCH
PCLinuxOS          KDE

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: Memory Puzzle
« Reply #9 on: May 07, 2010, 05:22:59 AM »
Does the motherboard have an on-board graphics card that is stealing some of the ram?

Just a stab in the dark!

Nope   

Thanks for thinking of it.  ;)

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: Memory Puzzle
« Reply #10 on: May 08, 2010, 07:53:19 AM »
I am still trying to find out what is wrong here .......

I should mention a similar thread
http://www.pclinuxos.com/forum/index.php/topic,71234.0.html
which unfortunately is locked so I have no idea what the outcome there was.

A couple of things are the same though

both machines are Dell PCs
the only memory reported is the CPU cache
in my case the pae kernel makes no difference to the situation.

I just installed the kio-sysinfo package to see what it might make of things .......

Code: [Select]
Memory Information
Total memory (RAM):  3.4 GB
  Free memory:  2.0 GB (+ 850.4 MB Caches)
  Free swap:  7.3 GB

Code: [Select]
OS:  Linux 2.6.32.11-pclos2.pae i686

[BTW .... it seems to have a problem with my network connection too]
Code: [Select]
Network Status
Unknown network status



So PCLOS consistently tells me I have less than 4GB of RAM, although the BIOS confirms it is 4GB, as do other utilities such as the PartMagick liveCD.

*******

The only thing I can guess from the info above is that the particular memory controller on the motherboard is not being recognised at all, which would explain why the RAM is not being reported by the OS.

If the OS is not correctly aware of the RAM then I guess what kernel I use is not going to make much difference .....  pae or not.

All suggestions welcome ......


regards.

Offline critter

  • Full Member
  • ***
  • Posts: 220
Re: Memory Puzzle
« Reply #11 on: May 08, 2010, 10:19:24 AM »
Still a puzzle but have you tried
Code: [Select]
cat /proc/meminfo  ???

That will report anything that the OS can see. If you are still short of 4GB then I would suspect that the BIOS/ Motherboard is cheating on you.

Motherboard   Gigabyte Z68X-UD3H-B3
Hard Drives      2 x Maxtor STM350032 500GB SATA
Memory      16GB RAM
Processor      Intel core i5 3.30GHz
Video         nVidia GeForce GT430
Sound      HDA Intel PCH
PCLinuxOS          KDE

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: Memory Puzzle
« Reply #12 on: May 08, 2010, 10:35:12 AM »
Still a puzzle but have you tried
Code: [Select]
cat /proc/meminfo  ???

That will report anything that the OS can see. If you are still short of 4GB then I would suspect that the BIOS/ Motherboard is cheating on you.



As mentioned above I am told I have 3.4GB RAM, whereas in reality I have 4GB installed, which is recognised by the BIOS and is noted by other means.

PCC - Hardware does not display any RAM at all.

Offline critter

  • Full Member
  • ***
  • Posts: 220
Re: Memory Puzzle
« Reply #13 on: May 08, 2010, 11:05:18 AM »
PCC hardware aka harddrake takes its info from the /proc system
If PCC reports no ram then perhaps the MB is lying and the OS will never see the correct hardware.
On the bright side
PCLOs needs far less than 4GB - No consolation I know but  ::)
Motherboard   Gigabyte Z68X-UD3H-B3
Hard Drives      2 x Maxtor STM350032 500GB SATA
Memory      16GB RAM
Processor      Intel core i5 3.30GHz
Video         nVidia GeForce GT430
Sound      HDA Intel PCH
PCLinuxOS          KDE

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: Memory Puzzle
« Reply #14 on: May 08, 2010, 11:32:47 AM »
PCC hardware aka harddrake takes its info from the /proc system
If PCC reports no ram then perhaps the MB is lying and the OS will never see the correct hardware.
On the bright side
PCLOs needs far less than 4GB - No consolation I know but  ::)

If the motherboard was lying then how could  lshw  report 4GB, with 1GB in each of four slots?
PartedMagick (or whatever its called) also reports 4GB fitted.

This is more of an annoyance than any great hindrence to getting work completed.

I had intended to use the pae kernel but it seems I am better off using the bfs one.   :(