Solved

64bitOS takes/uses more memory?

Posted on 2014-10-23
7
176 Views
Last Modified: 2014-10-30
is it documented that 64 bit os uses more GB RAM than 32 bit OS for the same kind of operation? if yes, what will be the technical reason for that?
0
Comment
Question by:25112
7 Comments
 
LVL 33

Assisted Solution

by:it_saige
it_saige earned 167 total points
ID: 40400296
It depends on the data-type used for the operation.  For example, an integer uses 4 bytes of memory while a 64-bit integer uses 8 bytes of memory.

http://msdn.microsoft.com/en-us/library/47zceaw7.aspx

Since we are dealing with a 64-bit OS versus a 32-bit OS.  A 64-bit OS has been written exclusively to utilize data-types that support 64-bit operations.

-saige-
0
 
LVL 48

Assisted Solution

by:dbrunton
dbrunton earned 83 total points
ID: 40400310
Yes.

See http://windowsitpro.com/windows-server/q-does-64-bit-version-os-use-more-memory-32-bit-version-same-os

There isn't much difference.  The main reason for the increase is pointer size which increases from 4 bytes to 8 bytes.
0
 
LVL 9

Accepted Solution

by:
Lieven Embrechts earned 167 total points
ID: 40400501
The answer is yes, but it’s generally only a small difference, maybe 100MB of extra memory space. That’s not a huge price to pay for the advantages of the 64-bit platform, providing you actually are taking advantage of the 64-bit benefits.

The logical next question is WHY does the 64-bit version use up more memory?

It uses up more memory for several reasons. First, you can run 32-bit applications on a 64-bit OS, which means a 64-bit OS has to load some 32-bit libraries into memory in addition to its native 64-bit libraries, which is the bulk of the memory difference.

Additionally we use 64-bit memory addresses instead of 32-bit memory addresses. This means each pointer to memory takes up 8 bytes instead of 4 bytes, causing some additional memory use there as well. However, that’s unlikely to be a huge factor.
0
Save on storage to protect fatherhood memories

You're the dad who has everything. This Father's Day, make sure your family memories are protected. My Passport Ultra has automatic backup and password protection to keep your cherished photos and videos safe. With up to 3TB, you have plenty of room to hold the adventures ahead.

 
LVL 24

Assisted Solution

by:Dr. Klahn
Dr. Klahn earned 83 total points
ID: 40401061
Surprisingly, in one respect a 64-bit operating system can save memory.

In a 32-bit operating system the video card occupies address space in the 3 to 4 GB range.  That address space is lost for other uses including physical memory.  Typically the range is from 3.25 to 4 GB.  No matter how much memory is installed in a computer with a 32-bit operating system, the actual usable memory is limited to about 3.25 GB.

In a 64-bit operating system the video card is mapped into memory space that is not used by real memory, so all memory installed is usable.

Given two systems with 4 GB of physical memory, one with a 32-bit and one with a 64-bit operating system, the 64-bit operating system has about 700MB more physical memory available.
0
 
LVL 5

Author Comment

by:25112
ID: 40402142
>>
an integer uses 4 bytes of memory while a 64-bit integer uses 8 bytes of memory.
There isn't much difference.
maybe 100MB of extra memory space.
<<
for the same operation, if all it takes extra is 100MB, then that is a easy choice indeed.
---------------
>>
In a 64-bit operating system the video card is mapped into memory space that is not used by real memory, so all memory installed is usable.

This is phenomenal, too.

So, if we had only 4GB RAM for a machine, then it is always better to go to 64 bit, since you will have more memory to play with.
---------------
But could it be ever that a 64bit machine gets overwhelmed at 4GB compared to a 32 but machine, for any other or some other reason, not covered already in this post (assuming the same operation only will be performed- in this case for example: SQL 2008R2)?
0
 
LVL 33

Assisted Solution

by:it_saige
it_saige earned 167 total points
ID: 40402195
Depending on the application(s) and their respective workloads, it is very possible for *any* computer to get overwhelmed no matter the amount of memory they have installed.  The simple premise for this is because the amount of memory that is installed is finite.  Services like SQL and Exchange have for years been using a *take all available resources, but share them when needed* approach.

When SQL Server is using memory dynamically, it queries the system periodically to determine the amount of free physical memory. SQL Server uses the memory notification API QueryMemoryResourceNotification to determine when the buffer pool may allocate memory and release memory.

Allowing SQL Server to use memory dynamically is recommended; however, you can set the memory options manually and restrict the amount of memory that SQL Server can access. Before you set the amount of memory for SQL Server, determine the appropriate memory setting by subtracting, from the total physical memory, the memory required for the operating system, and any other instances of SQL Server (and other system uses, if the computer is not wholly dedicated to SQL Server). This difference is the maximum amount of memory you can assign to SQL Server.


So no matter the amount of memory installed in the server, SQL is going to eat up as much of it as possible with the idea of releasing memory when the operating system needs it.  These settings, though, can be changed.

http://msdn.microsoft.com/en-us/library/ms178067(v=sql.105).aspx

So in this case, it is not the operating system utilizing the memory, but the program.

-saige-
0
 
LVL 9

Assisted Solution

by:Lieven Embrechts
Lieven Embrechts earned 167 total points
ID: 40402204
sql is a different matter: the sql server will use the memory it gets to maximize caching & perforance, so in a 64-bit environment (with 4Gb or more) it will be better performing.
frankly: 32-bit is the past, 64-bit is the only valid choice currently.
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
HP Laptop powering up but no display on screen 6 58
Replicate a hard drive for Windows 10 machine 6 72
Noisy or bad lifters 7 66
hardrive and reformat 5 0
In this article you will get to know about pros and cons of storage drives HDD, SSD and SSHD.
In this article we have discussed the manual scenarios to recover data from Windows 10 through some backup and recovery tools which are offered by it.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now