Re: [zfs-discuss] 64-bit vs 32-bit applications

2010-08-19 Thread Joerg Schilling
Ian Collins i...@ianshome.com wrote: A quick test with a C++ application I'm working with which does a lot of string and container manipulation shows it runs about 10% slower in 64 bit mode on AMD64 and about the same in 32 or 64 bit on a core i7. Built with -fast. This may be a result of

Re: [zfs-discuss] 64-bit vs 32-bit applications

2010-08-19 Thread Ian Collins
On 08/19/10 08:51 PM, Joerg Schilling wrote: Ian Collinsi...@ianshome.com wrote: A quick test with a C++ application I'm working with which does a lot of string and container manipulation shows it runs about 10% slower in 64 bit mode on AMD64 and about the same in 32 or 64 bit on a core

Re: [zfs-discuss] 64-bit vs 32-bit applications

2010-08-19 Thread Edward Ned Harvey
From: zfs-discuss-boun...@opensolaris.org [mailto:zfs-discuss- boun...@opensolaris.org] On Behalf Of Peter Jeremy My interpretation of those results is that you can't generalise: The only way to determine whether your application is faster in 32-bit or 64-bit more is to test it. And your

Re: [zfs-discuss] 64-bit vs 32-bit applications

2010-08-19 Thread Daniel Taylor
On 19 Aug 2010, at 19:42, Garrett D'Amore wrote: On Thu, 2010-08-19 at 21:25 +1200, Ian Collins wrote: On 08/19/10 08:51 PM, Joerg Schilling wrote: Ian Collinsi...@ianshome.com wrote: A quick test with a C++ application I'm working with which does a lot of string and container

Re: [zfs-discuss] 64-bit vs 32-bit applications

2010-08-19 Thread Garrett D'Amore
On Thu, 2010-08-19 at 20:14 +0100, Daniel Taylor wrote: On 19 Aug 2010, at 19:42, Garrett D'Amore wrote: Out of interest, what language do you recommend? Depends on the job -- I'm a huge fan of choosing the right tool for the job. I just think C++ tries to be jack of all trades and winds up

Re: [zfs-discuss] 64-bit vs 32-bit applications

2010-08-19 Thread Ian Collins
On 08/20/10 07:48 AM, Garrett D'Amore wrote: On Thu, 2010-08-19 at 20:14 +0100, Daniel Taylor wrote: On 19 Aug 2010, at 19:42, Garrett D'Amore wrote: Out of interest, what language do you recommend? Depends on the job -- I'm a huge fan of choosing the right tool for the job. I just

Re: [zfs-discuss] 64-bit vs 32-bit applications

2010-08-19 Thread C. Bergström
Garrett D'Amore wrote: On Thu, 2010-08-19 at 20:14 +0100, Daniel Taylor wrote: On 19 Aug 2010, at 19:42, Garrett D'Amore wrote: Out of interest, what language do you recommend? Depends on the job -- I'm a huge fan of choosing the right tool for the job. I just think C++ tries to be

Re: [zfs-discuss] 64-bit vs 32-bit applications

2010-08-19 Thread Bob Friesenhahn
On Thu, 19 Aug 2010, Garrett D'Amore wrote: There are many many things to dislike about C++ -- you *can* write good clean code in C++, but almost none of the C++ code I've seen fits that description. The various side effects, and unexpected memory explosion that occurs with the favored C++

Re: [zfs-discuss] 64-bit vs 32-bit applications

2010-08-19 Thread C. Bergström
Garrett D'Amore wrote: That is a major concern. But the problem is also that the ABIs created by different compilers vary. You can't mix g++ and studio generated code, for example. That's not FUD, its technical fact. Not today, but it's my understanding this will be possible in the

Re: [zfs-discuss] 64-bit vs 32-bit applications

2010-08-19 Thread Ian Collins
On 08/20/10 08:35 AM, Garrett D'Amore wrote: On Fri, 2010-08-20 at 03:26 +0700, C. Bergström wrote: Ian Collins wrote: On 08/20/10 07:48 AM, Garrett D'Amore wrote: On Thu, 2010-08-19 at 20:14 +0100, Daniel Taylor wrote: On 19 Aug 2010, at 19:42, Garrett D'Amore

Re: [zfs-discuss] 64-bit vs 32-bit applications

2010-08-19 Thread Joerg Schilling
Garrett D'Amore garr...@nexenta.com wrote: There is no common C++ ABI. So you get into compatibility concerns between code built with different compilers (like Studio vs. g++). Fail. The interesting thing is: Sun Studio on Linux is able to interoperate with g++ Jörg --

Re: [zfs-discuss] 64-bit vs 32-bit applications

2010-08-19 Thread Ian Collins
On 08/20/10 08:30 AM, Garrett D'Amore wrote: On Fri, 2010-08-20 at 07:58 +1200, Ian Collins wrote: On 08/20/10 07:48 AM, Garrett D'Amore wrote: On Thu, 2010-08-19 at 20:14 +0100, Daniel Taylor wrote: On 19 Aug 2010, at 19:42, Garrett D'Amore wrote: Out of interest, what

Re: [zfs-discuss] 64-bit vs 32-bit applications

2010-08-19 Thread Garrett D'Amore
On Fri, 2010-08-20 at 09:23 +1200, Ian Collins wrote: There is no common C++ ABI. So you get into compatibility concerns between code built with different compilers (like Studio vs. g++). Fail. Which is why we have extern C. Just about any Solaris driver, library or

Re: [zfs-discuss] 64-bit vs 32-bit applications

2010-08-19 Thread Nicolas Williams
On Fri, Aug 20, 2010 at 09:23:56AM +1200, Ian Collins wrote: On 08/20/10 08:30 AM, Garrett D'Amore wrote: There is no common C++ ABI. So you get into compatibility concerns between code built with different compilers (like Studio vs. g++). Fail. Which is why we have extern C. Just about

Re: [zfs-discuss] 64-bit vs 32-bit applications

2010-08-19 Thread Ian Collins
On 08/20/10 09:26 AM, Garrett D'Amore wrote: On Fri, 2010-08-20 at 09:23 +1200, Ian Collins wrote: There is no common C++ ABI. So you get into compatibility concerns between code built with different compilers (like Studio vs. g++). Fail. Which is why we have extern C. Just about

Re: [zfs-discuss] 64-bit vs 32-bit applications

2010-08-19 Thread Ian Collins
On 08/20/10 09:33 AM, Nicolas Williams wrote: On Fri, Aug 20, 2010 at 09:23:56AM +1200, Ian Collins wrote: On 08/20/10 08:30 AM, Garrett D'Amore wrote: There is no common C++ ABI. So you get into compatibility concerns between code built with different compilers (like Studio vs.

Re: [zfs-discuss] 64-bit vs 32-bit applications

2010-08-19 Thread Nicolas Williams
On Fri, Aug 20, 2010 at 09:38:51AM +1200, Ian Collins wrote: On 08/20/10 09:33 AM, Nicolas Williams wrote: Any driver C++ code would still need a C++ run-time. Either you must statically link it in, or you'll have a problem with multiple drivers using different C++ run-times. If you

Re: [zfs-discuss] 64-bit vs 32-bit applications

2010-08-19 Thread Ian Collins
On 08/20/10 09:48 AM, Nicolas Williams wrote: On Fri, Aug 20, 2010 at 09:38:51AM +1200, Ian Collins wrote: On 08/20/10 09:33 AM, Nicolas Williams wrote: Any driver C++ code would still need a C++ run-time. Either you must statically link it in, or you'll have a problem with multiple

Re: [zfs-discuss] 64-bit vs 32-bit applications

2010-08-18 Thread Ian Collins
On 08/18/10 08:40 AM, Joerg Schilling wrote: Ian Collinsi...@ianshome.com wrote: Some application benefit from the extended register set and function call ABI, others suffer due to increased sizes impacting the cache. Well, please verify your claims as they do not meet my

Re: [zfs-discuss] 64-bit vs 32-bit applications

2010-08-18 Thread Peter Jeremy
On 2010-Aug-18 04:40:21 +0800, Joerg Schilling joerg.schill...@fokus.fraunhofer.de wrote: Ian Collins i...@ianshome.com wrote: Some application benefit from the extended register set and function call ABI, others suffer due to increased sizes impacting the cache. Well, please verify your

Re: [zfs-discuss] 64-bit vs 32-bit applications

2010-08-17 Thread Michael Schuster
On 17.08.10 04:17, Will Murnane wrote: On Mon, Aug 16, 2010 at 21:58, Kishore Kumar Pusukuri kish...@cs.ucr.edu wrote: Hi, I am surprised with the performances of some 64-bit multi-threaded applications on my AMD Opteron machine. For most of the applications, the performance of 32-bit version

Re: [zfs-discuss] 64-bit vs 32-bit applications

2010-08-17 Thread Ian Collins
On 08/17/10 09:43 PM, Joerg Schilling wrote: Garrett D'Amoregarr...@nexenta.com wrote: It can be as simple as impact on the cache. 64-bit programs tend to be bigger, and so they have a worse effect on the i-cache. Unless your program does something that can inherently benefit from

Re: [zfs-discuss] 64-bit vs 32-bit applications

2010-08-17 Thread Edward Ned Harvey
From: zfs-discuss-boun...@opensolaris.org [mailto:zfs-discuss- boun...@opensolaris.org] On Behalf Of Will Murnane I am surprised with the performances of some 64-bit multi-threaded applications on my AMD Opteron machine. For most of the applications, the performance of 32-bit version

Re: [zfs-discuss] 64-bit vs 32-bit applications

2010-08-17 Thread Joerg Schilling
Ian Collins i...@ianshome.com wrote: If you have an orthogonal architecture like sparc, a typical 64 bit program is indeed a bit slower than the same program in 32 bit. On Amd64, you have twice as many registers in 64 bit mode and this is the reason for a typical performance gain of

Re: [zfs-discuss] 64-bit vs 32-bit applications

2010-08-17 Thread Ian Collins
On 08/18/10 12:05 AM, Joerg Schilling wrote: Ian Collinsi...@ianshome.com wrote: If you have an orthogonal architecture like sparc, a typical 64 bit program is indeed a bit slower than the same program in 32 bit. On Amd64, you have twice as many registers in 64 bit mode and this is the

Re: [zfs-discuss] 64-bit vs 32-bit applications

2010-08-17 Thread Joerg Schilling
Ian Collins i...@ianshome.com wrote: On 08/18/10 12:05 AM, Joerg Schilling wrote: Ian Collinsi...@ianshome.com wrote: If you have an orthogonal architecture like sparc, a typical 64 bit program is indeed a bit slower than the same program in 32 bit. On Amd64, you have twice

Re: [zfs-discuss] 64-bit vs 32-bit applications

2010-08-17 Thread Ian Collins
On 08/18/10 08:40 AM, Joerg Schilling wrote: Ian Collinsi...@ianshome.com wrote: On 08/18/10 12:05 AM, Joerg Schilling wrote: Ian Collinsi...@ianshome.com wrote: If you have an orthogonal architecture like sparc, a typical 64 bit program is indeed a bit slower than the

[zfs-discuss] 64-bit vs 32-bit applications

2010-08-16 Thread Kishore Kumar Pusukuri
Hi, I am surprised with the performances of some 64-bit multi-threaded applications on my AMD Opteron machine. For most of the applications, the performance of 32-bit version is almost same as the performance of 64-bit version. However, for a couple of applications, 32-bit versions provide

Re: [zfs-discuss] 64-bit vs 32-bit applications

2010-08-16 Thread Garrett D'Amore
It can be as simple as impact on the cache. 64-bit programs tend to be bigger, and so they have a worse effect on the i-cache. Unless your program does something that can inherently benefit from 64-bit registers, or can take advantage of the richer instruction set that is available to amd64

Re: [zfs-discuss] 64-bit vs 32-bit applications

2010-08-16 Thread Will Murnane
On Mon, Aug 16, 2010 at 21:58, Kishore Kumar Pusukuri kish...@cs.ucr.edu wrote: Hi, I am surprised with the performances of some 64-bit multi-threaded applications on my AMD Opteron machine. For most of the applications, the performance of 32-bit version is almost same as the performance of