Sven, On 6/13/06 2:04 AM, "Sven Geisler" <sgeisler@xxxxxxxxxx> wrote: > Please find attached a small patch with does apply a change to the > x86_64 part also to the i386 part of src/include/storage/s_lock.h. > Without this change the performance of PostgreSQL 8.0 was horrible on a > Opteron. The effect is smaller with PostgreSQL 8.1. Can you describe what kinds of tests you ran to check your speed? Since it's the TAS lock that you are patching, the potential impact is diffuse and large: xlog.c, shmem.c, lwlock.c, proc.c, all do significant work. - Luke