Shop OBEX P1 Docs P2 Docs Learn Events
Do all PC's report so much RAM missing? — Parallax Forums

Do all PC's report so much RAM missing?

I just did a search as to why my Linux box isn't reporting the full amount of RAM installed - 7.8GB instead of 8GB. And one of the links that came up was this one - http://superuser.com/questions/154422/ubuntu-10-4-64-bit-os-8gb-ram-is-shown-as-7-8gb-why

It's a well worded straight forward question, covering exactly my question, but, given it should affect everyone, very little effort seems to have been made to even confirm it.

The answer about binary vs decimal scaling is way off the mark and can only be plain wrong. RAM is always manufactured in powers of two. Besides, his calculations are pretty twisted and thoughtless.

The data structures answer only applies to used, not total, memory. So that wasn't very thoughtful either. The integrated graphics idea, with unified memory, was reasonable but discounted.

So that leaves the negatively mod'ed answer of PCI allocations causing remapping losses or something, not sure how this is meant to pan out.

Anyone have knowledge on this? Maybe it's just Linux? Can anyone confirm if Windoze gives same result?
«1

Comments

  • evanhevanh Posts: 15,916
    edited 2016-07-19 10:11
    Okay, after a bit more searching, I'm seeing same complaints about Windoze so I guess it's a hardware thing so probably the PCI mapping answer is the correct one.

    Wow, and I see the rubbish story about binary vs decimal scaling is very active too. There's not much thinking going on!
  • The OS isn't going to see the RAM allocated to the integrated graphics system. So that's my personal suspect. If it were my computer I would restart and go into the BIOS menu and see how much RAM it saw, and how much it allocated to the graphics chips.
  • evanhevanh Posts: 15,916
    Doing a search for 16GB returns much more recent results and there is a new suggestion being made now - Reserved for CPU's built-in GPU. Of course, mine being an old Athlon64, doesn't have such a feature, no built-in graphics ports of any sort. If I don't plug in a graphics card before power it up it'll just sit there beeping.

    So reserved space for an unused integrated GPU is definitely not it.
  • evanhevanh Posts: 15,916
    Ha, didn't see your response there Martin. I wasn't answering you directly but is a definite answer none the less.
  • evanhevanh Posts: 15,916
    PS: My PCI-E graphics card contains 2GB dedicated RAM.
  • evanhevanh Posts: 15,916
    I've noticed a suggestion the missing amount might be 256 MB:

    8192 - 256 = 7936 MB.
    Reported total RAM is 7984.45 MB. So 207.55 MB missing.
  • evanhevanh Posts: 15,916
    New info - It is dynamic depending on amount of RAM installed!

    2GB is just 47.44 MB missing.
    4GB is 143.55 MB missing.
    6GB is 175.54 MB missing.

    Which explains why it hasn't been talked about at smaller amounts. The 4GB point was always considered messy due to it's 32bit limit issue. The 2GB point may have been noticed but ignored for being too small.
  • It is basically different caches. Look here: http://www.dedoimedo.com/computers/slabinfo.html
  • evanhevanh Posts: 15,916
    edited 2016-07-19 11:55
    Looks predictable. When 4GB or more installed then amount of missing RAM will be:

    (N x 16 + 79.55) MB. Where N = amount of installed RAM in GB.

    So a 16GB system will appear to be missing 16 x 16 + 79.55 = 335.55 MB.
    And 32GB system will be missing 591.55 MB!
  • evanhevanh Posts: 15,916
    edited 2016-07-19 11:53
    Rosco,
    The question is about total memory, not free memory.

    Eg:
    $ free
                 total       used       free     shared    buffers     cached
    Mem:       8176076    1601452    6574624      36144      78024     645612
    -/+ buffers/cache:     877816    7298260
    Swap:            0          0          0
    
    It's that reported total of 8176076 kB, which is my earlier reported 7984.45 MB.
  • evanhevanh Posts: 15,916
    Another small detail - The BIOS POST screen does report the correct amount of 8191 MB.

    There is always 1 MB missing there. I'd be more than happy if the OS was reporting just 1 MB missing too.
  • xanaduxanadu Posts: 3,347
    edited 2016-07-19 16:40
    Do you have an onboard VGA adapter? It sounds like it is reserving a percentage of your RAM. There's also Shadow RAM, but that would be a much smaller number.

    This utility shows I have 8091.7890625MB RAM, so on Windows it appears as though task manager rounds down. Task manager shows 8091 MB.
    1088 x 437 - 71K
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    Martin (and now I see Xanadu's post) was talking about on-board graphics, not the card you have plugged into a slot. The vast majority of modern motherboards have on-board graphics which allocate some of the system RAM to it and can be adjusted as to how much in the BIOS.
  • Heater.Heater. Posts: 21,230
    Interesting. I have Debian running under VirtualBox on Win 10. The virtual machine has 768MB memory and 128MB for graphics. But "free -h" in Debian reports 746MB total memory. Does not add up!
  • I went back and re-read this thread. He did say there is no built in graphics of any sort. I was on the phone the first time I read this, I should probably get back to work hehe.

    That is strange...

  • evanh wrote: »
    New info - It is dynamic depending on amount of RAM installed!

    2GB is just 47.44 MB missing.
    4GB is 143.55 MB missing.
    6GB is 175.54 MB missing.

    Which explains why it hasn't been talked about at smaller amounts. The 4GB point was always considered messy due to it's 32bit limit issue. The 2GB point may have been noticed but ignored for being too small.

    Isn't that the difference between megabytes and mebibytes?
  • evanhevanh Posts: 15,916
    edited 2016-07-19 21:25
    xanadu wrote: »
    Isn't that the difference between megabytes and mebibytes?

    All numbers are given in original binary scale.
  • evanhevanh Posts: 15,916
    edited 2016-07-19 21:24
    Heater. wrote: »
    Interesting. I have Debian running under VirtualBox on Win 10.

    What does Win10 report? I note Xanadu is reporting 8091.79MB, which is 100.21MB missing. Not the same result as me but still significant.
  • evanhevanh Posts: 15,916
    edited 2016-07-19 21:38
    Martin (and now I see Xanadu's post) was talking about on-board graphics, not the card you have plugged into a slot. The vast majority of modern motherboards have on-board graphics which allocate some of the system RAM to it and can be adjusted as to how much in the BIOS.

    That's been clearly discounted multiple times. The final one being that the amount missing depends on the amount of RAM installed.

    I only listed my card as part of the details because that is an example of a situation where the behaviour is still occurring even when there is no hardware or BIOS programmed to handle integrated GPU. If the OS was maintaining reservation for a non-existent device, that wouldn't be very smart.
  • evanhevanh Posts: 15,916
    edited 2016-07-19 22:07
    The 1MB missing at the BIOS POST is an example of a fixed reservation. That's a legacy reservation for any potential ISA mapped devices I think. Stuff that doesn't register itself as a PCI device.

  • it's just the stack space for the build in NSA software, do not worry at all.

    It's OK

    Mike
  • evanh wrote: »
    xanadu wrote: »
    Isn't that the difference between megabytes and mebibytes?

    All numbers are given in original binary scale.

    I thought linux shows MiB and not MB?

    8GB = 8192 MB = 7812.5 MiB.

  • evanhevanh Posts: 15,916
    edited 2016-07-20 01:16
    8GB = 8 x 2^30. All values are in original binary scaling. None are decimal scaled. To write that out in full, with no scaling, it is 8589934592.
  • evanhevanh Posts: 15,916
    And yes, both Linux and Windoze uses binary scaling.
  • evanhevanh Posts: 15,916
    I'm figuring PCI remapping losses is indeed the right answer. Any unified RAM usage adds to the final result as well but isn't actually lost RAM.

    I'll speculate the reason for the losses scaling up with increasing total RAM installed will be due to a fixed total number of blocks that are scaled up in proportion to the total RAM. Only fully mapped blocks can be safely relocated, and therefore every largely isolated small PCI mapping will consume a whole block that can't be relocated. As the block size increases so does the losses.
  • evanhevanh Posts: 15,916
    edited 2016-07-20 12:50
    PS: I've never read up on PCI capabilities so all that could be a load of ****.
  • My desktop system using an Asus P5K-VM motherboard reports 4096MB ram installed during BIOS POST; board supports up to 8GB.
    Windows 10 "msinfo32.exe" reports 4.0GB installed / total. 64 bit Win10 by the way.
    On board Intel G33 video is disabled in BIOS.
    ATI 5450 PCIe video card installed- that has 512MB DDR3 memory; Windows' DXDIAG reports 4096MB system ram.

    So all my ram is present and accounted for. Puzzling.
  • evanhevanh Posts: 15,916
    Sadly, those numbers you've located are not the total useable value I'm after.

    Just looking at a Windoze 7 box while I'm at work and the [Control Panel -> System] window is telling me 2.00 GB is installed but importantly, in brackets, it also says 1.87 GB usable. So, 0.13 GB -> 133.12+ MB is missing.

    That's a terrible result for a 2GB system except, in this case, it is also using its integrated GPU. So, a chunk of that, maybe 64MB, will be reserved for GPU private operations.
  • evanhevanh Posts: 15,916
    I just ran that msinfo32 program on the above same Win7 box and noticed it says:
    Installed Physical Memory (RAM) 2.00 GB
    Total Physical Memory 1.87 GB
    Which obviously matches my first attempt with the control panel.

    Abecedarian,
    Are you saying you get 4.0GB reported on both lines?

    I'd be very surprised if that was truly possible given what I've seen so far. I suppose the real figure could be down as low as 10MB and Windoze is just rounding it off. That would still be a nice outcome though.
  • Take a look.
    Motherboard is P5K-VM operating as 64 bit with C2Q Q8200 processor.

    sys.png

    Motherboard web page is here.
    671 x 628 - 17K
    sys.png 16.7K
Sign In or Register to comment.