Solved

Memory Usage On 64 bit machines

Posted on 2015-02-08
9
233 Views
Last Modified: 2015-02-11
Suppose I have 12 Gigs of memory in a 64 bit PC.
When I run a 64 bit program, does it use the first 4 gig that is available to 32 bit programs, or the extra 8 gigs?
In other words, is having 12 gigs available of indirect benefit to 32 bit programs?
Is it first come, first served for the first 4 gigs?

Does windows dynamically switch memory usage of 64 bit programs, as 32 bit programs start?
0
Comment
Question by:Eirman
9 Comments
 
LVL 7

Assisted Solution

by:Scobber
Scobber earned 50 total points
Comment Utility
No
The 3-4gb limitation on 32 bit windows is fiction. It is a licensing limitation not a hardware limitation. All modern processors that support PAE (physical address extension) are capable of using large amounts of ram

Read more about PAE here
http://en.m.wikipedia.org/wiki/Physical_Address_Extension
0
 
LVL 34

Assisted Solution

by:Seth Simmons
Seth Simmons earned 100 total points
Comment Utility
does it use the first 4 gig that is available to 32 bit programs

it uses what is available regardless of the architecture of the application

is having 12 gigs available of indirect benefit to 32 bit programs?

the only benefit is allowing for more processes to run
32bit processes are still limited to using 4gb regardless of how much is in the system

Does windows dynamically switch memory usage of 64 bit programs, as 32 bit programs start?

no; it will use whatever is available.  it doesn't segregate memory for specific applications (32bit vs. 64bit)
0
 
LVL 23

Author Comment

by:Eirman
Comment Utility
Does that mean that if 8 gigs is in use by 64bit programs,
there is always 4 gigs available for 32 programs?
0
 
LVL 68

Assisted Solution

by:Qlemo
Qlemo earned 100 total points
Comment Utility
The 4g limit is enforced for each single 32bit process. 3 such processes can allocate the 12g. And all processes are sharing the complete memory area.
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 23

Author Comment

by:Eirman
Comment Utility
The 4g limit is enforced for each single 32bit process.
Wow - I never knew that
0
 
LVL 90

Assisted Solution

by:John Hurst
John Hurst earned 90 total points
Comment Utility
In the 7 years I have been using 64-bit machines with 8Gb of memory and all 32-bit Application software, my machines rarely use more than 3.5GB total no matter how many 32-bit Applications I run. It takes running a second machine to use up more memory. I have over 2 dozen 32-bit processes running right now and total memory consumption is 3GB out of 8GB total.
0
 
LVL 70

Accepted Solution

by:
garycase earned 160 total points
Comment Utility
"... When I run a 64 bit program, does it use the first 4 gig that is available to 32 bit programs, or the extra 8 gigs?  "  ....
"...  Is it first come, first served for the first 4 gigs? "

These reflect a bit of misunderstanding about the architecture of your PC.    Your PC's memory is "mapped" into an address space for the current process ... so it doesn't matter which specific memory is assigned to a 32-bit process ... the memory it's using will always be addressable with 32-bits.

Note that it doesn't even matter if there is memory available when a process needs it -- the OS will simply swap out some memory from an inactive process and then map that memory to the requesting process [That's what "page faults" are -- a memory page has to be written to disk so the physical RAM can be assigned to another process].

You could, for example, have 5 32-bit processes running, each with 4GB of RAM assigned ... even though you've only got 12GB of RAM :-)     [Depending on how active they were, however, the system might get VERY sluggish due to the exceptionally high number of page faults]
0
 
LVL 70

Expert Comment

by:garycase
Comment Utility
Forgot to add this:

"... In other words, is having 12 gigs available of indirect benefit to 32 bit programs? " ==>  Actually, it's of DIRECT benefit to 32-bit programs.     You could be running nothing but 32-bit programs and all 12GB would still be available for use by those programs ... the memory pages would simply be mapped to the first 4GB when they were in use.
0
 
LVL 23

Author Closing Comment

by:Eirman
Comment Utility
Things are a lot clearer now .... I feel less ignorant.
garycase's explanation was especially enlightening.
0

Featured Post

The curse of the end user strikes again      

You’ve updated all your end user’s email signatures. Hooray! But guess what? They’re playing around with the HTML, adding stupid taglines and ruining the imagery. Find out how you can save your signatures from end users today.

Join & Write a Comment

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
In the modern office, employees tend to move around the workplace a lot more freely. Conferences, collaborative groups, flexible seating and working from home require a new level of mobility. Technology has not only changed the behavior and the expe…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

743 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

7 Experts available now in Live!

Get 1:1 Help Now