Re: [PATCH] Add fast little-endian switch system call

2008-04-29 Thread Paul Mackerras
Wolfgang Denk writes: > This probably depends a bit on the performance of the system in > question. Did you measure it - for example - on a 50 MHz MPC850 ? The patch only affects arch/powerpc/kernel/entry_64.S. So no, I didn't measure it on a 50MHz MPC850, or indeed any 32-bit system. :)

Re: [PATCH] Add fast little-endian switch system call

2008-04-29 Thread Christoph Hellwig
On Tue, Apr 29, 2008 at 08:40:47PM +0200, Wolfgang Denk wrote: > This probably depends a bit on the performance of the system in > question. Did you measure it - for example - on a 50 MHz MPC850 ? You got a 64bit kernel to run on a MPC850? wow :) Not sure what the slowest supported 64bit cp

Re: [PATCH] Add fast little-endian switch system call

2008-04-29 Thread Wolfgang Denk
In message <[EMAIL PROTECTED]> you wrote: > > > Am I missing something here or does this add a branch for every normal > > syscall? > > It does, but the impact is so small as to be unmeasurable with > lmbench, even on the null syscall measurement. The overhead of the > easily-predicted not-taken

Re: [PATCH] Add fast little-endian switch system call

2008-04-28 Thread Paul Mackerras
Christoph Hellwig writes: > Am I missing something here or does this add a branch for every normal > syscall? It does, but the impact is so small as to be unmeasurable with lmbench, even on the null syscall measurement. The overhead of the easily-predicted not-taken branch is completely swamped

Re: [PATCH] Add fast little-endian switch system call

2008-04-28 Thread Michael Kerrisk
On Mon, Apr 28, 2008 at 4:43 PM, Christoph Hellwig <[EMAIL PROTECTED]> wrote: > Please see Michael Kerrisk on userspace ABI updates. A nice little > manpage for this gimmick would be helpful, and maybe help other > platforms that want one aswell to implement the same API. Thanks Chrsitoph. I'm n

Re: [PATCH] Add fast little-endian switch system call

2008-04-28 Thread Christoph Hellwig
Please see Michael Kerrisk on userspace ABI updates. A nice little manpage for this gimmick would be helpful, and maybe help other platforms that want one aswell to implement the same API. On Mon, Apr 28, 2008 at 01:52:31PM +1000, Paul Mackerras wrote: > This adds a system call on 64-bit platform

[PATCH] Add fast little-endian switch system call

2008-04-27 Thread Paul Mackerras
This adds a system call on 64-bit platforms for switching between little-endian and big-endian modes that is much faster than doing a prctl call. This system call is handled as a special case right at the start of the system call entry code, and because it is a special case, it uses a system call