Re: Spinlocks, yet again: analysis and proposed patches

From: "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com>
To: Emil Briggs <emil(at)baymountain(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Spinlocks, yet again: analysis and proposed patches
Date: 2005-10-17 18:58:38
Message-ID: 20051017185838.GG86144@pervasive.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Oct 12, 2005 at 03:07:23PM -0400, Emil Briggs wrote:
> > where the number of padding locks is determined by how many lock
> > structures fit within a 128 byte cache line.
> >
> > This isn't exactly elegant coding, but it provides a useful improvement
> > on an 8-way SMP box when run on 8.0 base. OK, lets be brutal: this looks
> > pretty darn stupid. But it does follow the CPU optimization handbook
> > advice and I did see a noticeable improvement in performance and a
> > reduction in context switching.
> >
> > I'm not in a position to try this again now on 8.1beta, but I'd welcome
> > a performance test result from anybody that is. I'll supply a patch
> > against 8.1beta for anyone wanting to test this.
> >
>
> I don't have an 8 way available right now but I can run tests on a 4 way
> Opteron if that would be helpful.

Likewise I can test on a 4 way opteron running open solaris.
--
Jim C. Nasby, Sr. Engineering Consultant jnasby(at)pervasive(dot)com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jim C. Nasby 2005-10-17 19:01:59 Re: Bug 1473, pthread python on FreeBSD
Previous Message Dave Page 2005-10-17 18:43:39 Re: More problems with the win32 installer for 8.1 beta3