?
Solved

CPU and Performance

Posted on 2012-09-04
8
Medium Priority
?
678 Views
Last Modified: 2012-09-05
Hello,

I know this may sound obvious, but I am looking for some direction. How does a CPU affect performance, and how can a 64bit CPU help a 32bit application when it comes to performance? What can be done to increase performance via the CPU?

For my question, I would be using a Windows 7 (64bit) computer.

Thank you,
John
0
Comment
Question by:jhieb
  • 4
  • 4
8 Comments
 
LVL 7

Assisted Solution

by:redbmaster
redbmaster earned 2000 total points
ID: 38364817
The CPU is the Central Processing Unit of the computer. Its where all the calculations actually  take place. The actual speed is calculated in hertz. Generally speaking the higher the hertz the faster the CPU. Modern CPUs are in the gigahertz range, ie. 3.5 Ghz. Other factors effecting speed will be various cache sizes and the number of cores.

Technically speaking a 64bit processor can process 32bit instruction twice as fast. It does this by processing two 32bit instructions at a time.
0
 
LVL 1

Author Comment

by:jhieb
ID: 38364937
OK. This makes sense. If I run a 32bit application on a 64bit system then what benefit does the 32bit application have? Is it limited since it is not 64bit? It seems that all new processors are 64bit so perhaps this question does not matter anymore. But, I am still curious how a 32bit application will function on a 64bit processor and if it can take advantage of dual core processors, hyperthreading, and perhaps how a 32bit applicaiton will function on these different types of processors.
0
 
LVL 7

Assisted Solution

by:redbmaster
redbmaster earned 2000 total points
ID: 38364992
An application its self will only take advantage of multiple cores if it was programmed to do so.

That being said, Windows is programmed to handle multiple cores/CPUs so it'll do much of the shuffling on its own.

Besides what was mentioned in my previous post, there is really no advantage of running a 32bit app on a 64bit processor. This is strictly speaking of the single app on the CPU and not taking into account the RAM benefits of a 64bit CPU and OS.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 7

Expert Comment

by:redbmaster
ID: 38365108
Looking from the aspect of creating an application, making it 32bit will ensure greater compatibility. 32bit apps can run on a 64bit OS, but a 64bit app cannot run on a 32bit OS. Thus making the application 32bit will allow it to run on a 32bit or a 64 bit OS.

This is only relevant if you do not foresee your application needing/using more than 3.5 GB or RAM.
0
 
LVL 1

Author Comment

by:jhieb
ID: 38365399
Are you saying that the 32bit application will use no more than 3.5GB of ram? If this is true then what is the benefit of adding more RAM to Windows 7 (x64)? Is the benefit that Windows will allocate the RAM it needs (outside of the paging file), and then allow the 32bit application use up to its maximum, which is 3.5GB?
0
 
LVL 7

Accepted Solution

by:
redbmaster earned 2000 total points
ID: 38365741
Yes I am. The benefit is being able to run multiple applications at the same time without slowing down the PC.

Lets take the following scenario. We have a Win7 64 bit PC with 20 GB of RAM. On this PC we always run the OS and 2 applications that are 32bit. Lets say that our 64 bit OS requires 2 GB of RAM to run and that each 32bit application uses the max a 32bit app can use which is 3.5GB. So this means to run the OS and the 2 applications we need to have a minimum of 9 GB of RAM (2GB + 3.5GB + 3.5GB = 9GB). This mean that out of 20GB of RAM we have 11GB available. Now if we need to run another application we have available RAM for it to run.

Now, lets say we built the PC with 8GB of RAM, but it still needs to run the same applications as before. The applications will still need the same amount of RAM. So, the system will have a defect of 1GB of RAM. This RAM will be utilized from the HDD as there is not enough space in the RAM for everything to run. This area of the HDD is call the Page File. This is much much slow than RAM and the PC will not perform as well as even a PC with 12GB of RAM in our example scenario.

The reason you go with a 64 bit OS is to allow for more than 3.5 GB of RAM to be available. Lets take the first PC with 20GB of RAM. If you install Win7 32bit on it, when you look at the properties of the system it will only show 3.5 GB available. Even though you installed 20GB the 32bit OS can only see 3.5GB of RAM. The other 16.5 GB are completely wasted.

On the other hand, if you have the system with 20 GB of RAM with Win7 64 bit and install a 64bit application, the application will be able to utilize all the available ram. Thus, the RAM will not hinder the performance of the application.

Keep in mind that you'd have to build a massive application to even need more than 3.5 GB of RAM. Outlook on my PC is only using 63 MB of RAM. With multiple tabs open I have seen IE9 up over 256MB of RAM.
0
 
LVL 1

Author Closing Comment

by:jhieb
ID: 38365797
Thank you very much for this information. It helps out a lot. My application uses the CPU extensively and can bounce it up to 100% quite easily. RAM helps and the hard drive speed helps, too, since TEMP files are used and since many items are stored in memory. <br /><br />Since the application is 32bit, it sounds like I can still take advantage of the 64bit operating system by giving it a minimum configuration, such as 2GB of RAM for its processing. Between that and the other 3.5 GB of RAM, my application should be happy while demanding faster write times from the CPU an faster communication speeds across the LAN/WAN connection.
0
 
LVL 1

Author Comment

by:jhieb
ID: 38368550
I have an additional question. What if I run two or more 32bit applications at the same time and what if these two 32bit applications are transferring data on a 64bit operating system. Does each application get 3.5 GB of data if it is available? Would Windows 7 (x64) designate different CPU's for the programs or will both applications use the same CPU? How is this determined?
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

A quick guide on how to use Group Policy to create a custom power plan and set it active on Windows 7.
On some Windows 7 (SP1) computers, Windows Update becomes super slow even the computer is reasonably fast.  There's one solution that seemed to have worked well for me (after trying a few other suggested solutions).
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.
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…
Suggested Courses
Course of the Month17 days, 6 hours left to enroll

862 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