All of lore.kernel.org
 help / color / mirror / Atom feed
* (no subject)
@ 2003-04-17 17:53 Dennis Castleman
  2003-04-17 18:17 ` your mail Jun Sun
  2003-04-18  0:03 ` Ralf Baechle
  0 siblings, 2 replies; 4+ messages in thread
From: Dennis Castleman @ 2003-04-17 17:53 UTC (permalink / raw)
  To: linux-mips

[-- Attachment #1: Type: text/plain, Size: 132 bytes --]

ALL

Anybody know the performance differences I can expect using a MIPS 5K core
@250 Mhz in 64bit mode versus 32bit mode?

Dennis 


[-- Attachment #2: Type: text/html, Size: 539 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: your mail
  2003-04-17 17:53 Dennis Castleman
@ 2003-04-17 18:17 ` Jun Sun
  2003-04-17 20:15   ` Greg Lindahl
  2003-04-18  0:03 ` Ralf Baechle
  1 sibling, 1 reply; 4+ messages in thread
From: Jun Sun @ 2003-04-17 18:17 UTC (permalink / raw)
  To: Dennis Castleman; +Cc: linux-mips, jsun

On Thu, Apr 17, 2003 at 10:53:57AM -0700, Dennis Castleman wrote:
> ALL
> 
> Anybody know the performance differences I can expect using a MIPS 5K core
> @250 Mhz in 64bit mode versus 32bit mode?
>

It really depends on the applications.  The biggest gain from 64bit,
other than the obviously bigger address space, is 64bit data
manipulation.  A single 64bit instruction (add/sub/...) is carried
out by several instructions in 32bit.

If your apps are heavy on 64bit operations, then you gain.
Otherwise I suspect no performance gain or even possibly a little 
worse performance due more stress on cache/memory subsystems.

I am sure others with more 64bit experience probably have more 
to say.  :)


Jun

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: your mail
  2003-04-17 18:17 ` your mail Jun Sun
@ 2003-04-17 20:15   ` Greg Lindahl
  0 siblings, 0 replies; 4+ messages in thread
From: Greg Lindahl @ 2003-04-17 20:15 UTC (permalink / raw)
  To: linux-mips

On Thu, Apr 17, 2003 at 11:17:10AM -0700, Jun Sun wrote:

> It really depends on the applications.  The biggest gain from 64bit,
> other than the obviously bigger address space, is 64bit data
> manipulation.  A single 64bit instruction (add/sub/...) is carried
> out by several instructions in 32bit.

A big gain is the increased # of registers and better calling
sequence. Everyone sees that, not just people who want to use 64-bit
integers. At the moment you need to run the 64-bit kernel -- and the
new binutils & glibc -- in order to get n32 programs to work.

-- greg

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: your mail
  2003-04-17 17:53 Dennis Castleman
  2003-04-17 18:17 ` your mail Jun Sun
@ 2003-04-18  0:03 ` Ralf Baechle
  1 sibling, 0 replies; 4+ messages in thread
From: Ralf Baechle @ 2003-04-18  0:03 UTC (permalink / raw)
  To: Dennis Castleman; +Cc: linux-mips

On Thu, Apr 17, 2003 at 10:53:57AM -0700, Dennis Castleman wrote:

> Anybody know the performance differences I can expect using a MIPS 5K core
> @250 Mhz in 64bit mode versus 32bit mode?

As a rule of thumb - less performance.  64-bit code is typically larger
resulting in lower cache hit rate.  And since performance optimization
these days is essentially equivalent to maximising the cache hit rate
going 64-bit usually means a performance drop due to the drastically
larger size of code and data.

On the positive side for 64-bit stuff there's the possibility to do
64-bit computations with just one instruction, move data with less
instructions, use twice as many double precission fp registers that are
offered by 64-bit ABIs and more calling sequences.

The first two paragraphs were sort of a generic statement regarding
32-bit vs. 64-bit software on MIPS processors and affect both kernel and
userspace.  There's a few additional issues with the Linux kernel.
The 32-bit kernels requires all memory to be addressable through KSEG0
which limits it to at most 512MB; typically the limit is more like 256MB.
Memory above 512MB physical address can only be used as highmem.  That's
fairly inefficient and requires alot of special care when writing new
kernel software.  For processors that suffer from virtual aliases in
their data cache highmem currently is frighteningly inefficient - and
high memory pressure on lowmem doesn't help either.  So from a certain
point on that's simply making a 64-bit kernel is simply the better
idea - even for running 32-bit software.  That in particular applies
to very I/O intensive stuff.

In short - the right choice is a tradeoff between the hardware platform
and the application's requirements.  Choose wrong and you'll curse
loudly :-)

  Ralf

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-04-18  0:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-17 17:53 Dennis Castleman
2003-04-17 18:17 ` your mail Jun Sun
2003-04-17 20:15   ` Greg Lindahl
2003-04-18  0:03 ` Ralf Baechle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.