System Information: RAM
Moderators: Hacker, petermad, Stefan2, white
System Information: RAM
I have 3GB RAM.
System Information on tab "Hardware" show: Installed RAM: 2 097 151 k
System Information on tab "Software" show: Free Memory: 1 953 036 k (63 %)
(Vista 32bit)
System Information on tab "Hardware" show: Installed RAM: 2 097 151 k
System Information on tab "Software" show: Free Memory: 1 953 036 k (63 %)
(Vista 32bit)
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
As you know, applications under a 32bit OS can access a maximum of 2GB of memory as process space. That is why TC is showing only 2GB as installed RAM. Taken this into account, there are 2 ways to solve this:
a) the text in TC has to be changed
b) find a way to read the real amount of RAM, maybe display it like Win7 does it.
More info about this issue can be at
a) the text in TC has to be changed
b) find a way to read the real amount of RAM, maybe display it like Win7 does it.
More info about this issue can be at
Code: Select all
http://www.msfn.org/board/index.php?showtopic=92568&st=0&p=623978&#entry623978
That is not true, or at least highly inaccurate.mihaipi wrote:As you know, applications under a 32bit OS can access a maximum of 2GB of memory as process space. That is why TC is showing only 2GB as installed RAM. Taken this into account, there are 2 ways to solve this:
32bit application has a 4GB address space (both under 32bit and 64bit OS), so it can't access more than 4GB. Normally (and on 32bit OS), 2GB are available as user-mode memory and the upper 2GB are reserved for kernel. Through a boot.ini switch, you can move this boundary higher.
However, this doesn't have anything to do with reporting the amount of installed memory. That's affected by the fact that starting from XP SP2, Microsoft dropped support for PAE on consumer 32bit OSes (because of possible problems with drivers that were not ready for this) - so the operating system doesn't see more than 4GB - parts of it being reserved for graphics adapter and other stuff, so it's even more.
Anyway, if the operating system reports 2GB with the GlobalMemoryStatusEx() call, I don't think there's any way to find the real amount (actually, I think your system doesn't see/support the real amount in that case, so it actually "has" 2GB).
I can confirm that GlobalMemoryStatusEx() reports
3GiB physical memory on x86 installation and 6GiB on x64 installation here (as expected).
But TC's System information shows only 2 097 151 k on x86, and a - sign on X64 system.
So I guess that TC use another method than GlobalMemoryStatusEx() to determine the amount of physical memory.
Tested wit TC7.50pb1, TC7.04 and Vista Ultimate (x86 and x64).
Regards
Holger
3GiB physical memory on x86 installation and 6GiB on x64 installation here (as expected).
But TC's System information shows only 2 097 151 k on x86, and a - sign on X64 system.
So I guess that TC use another method than GlobalMemoryStatusEx() to determine the amount of physical memory.
Tested wit TC7.50pb1, TC7.04 and Vista Ultimate (x86 and x64).
Regards
Holger
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
TC currently uses GlobalMemoryStatus, not GlobalMemoryStatusEx.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Anyway, no vital point at all.MSDN wrote:[GlobalMemoryStatus can return incorrect information. Use the GlobalMemoryStatusEx function instead. ]
Regards
Holger
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
- sqa_wizard
- Power Member
- Posts: 3893
- Joined: 2003-02-06, 11:41 UTC
- Location: Germany
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Nice to hear that! I couldn't test it because the largest I have is 2 GB. But I switched to GlobalMemoryStatusEx when available...
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Confirmed fix!
Vista (x86): 3,143,228 k (3,069 M)
Vista (x64): 6.288.956 k (6.141 M)
Free memory:
Vista (x86): 1,669,612 k (54 %)
Vista (x64): 4.750.868 k (76 %)
Thanks
Holger
Installed RAM:History.tx wrote:28.04.09 Fixed: Use GlobalMemoryStatusEx (if available) to get total and free memory (RAM), to support memory sizes>2GB
Vista (x86): 3,143,228 k (3,069 M)
Vista (x64): 6.288.956 k (6.141 M)
Free memory:
Vista (x86): 1,669,612 k (54 %)
Vista (x64): 4.750.868 k (76 %)
Thanks
Holger
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Great, thanks! With two users confirming the fix I think that I can move this to fixed now although the thread starter hasn't replied yet.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com