Re: Fine-grained locking for POSIX local sockets (UNIX domain sockets )

2006-05-10 Thread Scott Long
Sven Petai wrote: On Wednesday 10 May 2006 04:38, Scott Long wrote: Were you testing on SMP, and if so, was Hyperthreading enabled? I tested it on 3 amd64 machines, so no hyperthreading possible. The library preload hack was tested on: 1 * dualcore amd X2 4 * dualcore opteron Hacked mys

Re: Fine-grained locking for POSIX local sockets (UNIX domain sockets)

2006-05-10 Thread Peter Jeremy
On Wed, 2006-May-10 10:42:39 +0200, Suleiman Souhlal wrote: >That's not enough. On some CPUs (like the current Opterons), the TSC >slows down when the CPU executes a HLT instruction, so if you want good >accuracy, you'll need to take that into account too. The CPU can't be executing any instruct

Re: Fine-grained locking for POSIX local sockets (UNIX domain sockets)

2006-05-10 Thread Suleiman Souhlal
Paul Allen wrote: From Julian Elischer <[EMAIL PROTECTED]>, Tue, May 09, 2006 at 10:35:06AM -0700: Sven Petai wrote: are there any patches that take the gettimeofday() calls and replace them with something that is cheap such as only doing every 10th one and just returning the last value ++ 1

Re: Fine-grained locking for POSIX local sockets ( UNIX domain sockets )

2006-05-10 Thread Sven Petai
On Wednesday 10 May 2006 04:38, Scott Long wrote: > > Were you testing on SMP, and if so, was Hyperthreading enabled? > I tested it on 3 amd64 machines, so no hyperthreading possible. The library preload hack was tested on: 1 * dualcore amd X2 4 * dualcore opteron Hacked mysqld that used TSC w

Re: Fine-grained locking for POSIX local sockets (UNIX domain sockets)

2006-05-10 Thread Suleiman Souhlal
Peter Jeremy wrote: On Wed, 2006-May-10 10:42:39 +0200, Suleiman Souhlal wrote: That's not enough. On some CPUs (like the current Opterons), the TSC slows down when the CPU executes a HLT instruction, so if you want good accuracy, you'll need to take that into account too. The CPU can't be