Solved

64bit vs 32bit performance

Posted on 2000-02-22
3
192 Views
Last Modified: 2010-04-26
I was looking through HP's faq for their HP-UX11 64bit OS, and I noticed something that surprised me. That is, running a 64bit application in the 64bit OS results in an 8-9% performance hit as compared to a 32bit app in a 32bit OS. Would this apply for other 64bit apps/OS as well? I understand that using 64bit gives you access to a boatload of memory compared to 32bit, so would you make up for the performance hit by utilizing more memory to run your app? Any additional comments about 32bit vs 64bit would be appreciated.

Thanks,

wEEpy
0
Comment
Question by:wEEpy
  • 2
3 Comments
 
LVL 32

Expert Comment

by:jhance
Comment Utility
There are several reasons and not all are exactly obvious:

1) 64 bit code is bigger than 32 bit code and so it takes longer to load.

2) The OS might not be 64 bit throughout.  This means that some 64-32 bit translation must take place and this adds overhead.  This happens, for example, in Win9x.  While Win9x is 32-bit, many of the supporting DLLs are still 16-bit code and Microsoft "thunks" the 32 bit calls down to 16-bit calls.  HPUX may be the same way.

3) The HP/PA RISC chip may be a bit slower when running 64 bit code due to the added overhead of processing the longer instruction stream.  This may be a limitation in the current PA architecture and would probably be addressed in a future version.

The biggest reason why apps get driven to a 64 bit architecture is memory space.  While 32-bits is huge for many apps, a massive database for example, may benefit from the increased memory space available on a 64 bit architecture.  As far as running fast just because there is more memory (or memory space) available depends on what is slowing down your app.  If it's floating point calculations, then more memory won't help it.
0
 
LVL 32

Accepted Solution

by:
jhance earned 50 total points
Comment Utility
Anybody home????
0
 

Author Comment

by:wEEpy
Comment Utility
Sorry jhance, didn't get to check yesterday after I posted. Thanks for the info.

wEEpy
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

This is about my first experience with programming Arduino.
What do we know about Legacy Video Conferencing? - Full IT support needed! - Complicated systems at outrageous prices! - Intense training required! Highfive believes we need to embrace a new alternative.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
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…

771 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

10 Experts available now in Live!

Get 1:1 Help Now