Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Memory Usage On 64 bit machines

Posted on 2015-02-08
9
Medium Priority
?
259 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 200 total points
ID: 40596725
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 36

Assisted Solution

by:Seth Simmons
Seth Simmons earned 400 total points
ID: 40596857
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 24

Author Comment

by:Eirman
ID: 40596938
Does that mean that if 8 gigs is in use by 64bit programs,
there is always 4 gigs available for 32 programs?
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
LVL 71

Assisted Solution

by:Qlemo
Qlemo earned 400 total points
ID: 40597080
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
 
LVL 24

Author Comment

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

Assisted Solution

by:John Hurst
John Hurst earned 360 total points
ID: 40597255
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 640 total points
ID: 40597260
"... 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
ID: 40597262
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 24

Author Closing Comment

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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
It is a real story and is one of my scariest tech experiences. Most users think that IT experts like us know how to fix all computer problems. However, if there is a time constraint and you MUST not fail the task or you will lose your job, a simple …
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
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.

916 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