Re: 8.0 beta 1 on linux-mipsel R5900

From: "Zeugswetter Andreas SB SD" <ZeugswetterA(at)spardat(dot)at>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Greg Stark" <gsstark(at)mit(dot)edu>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: 8.0 beta 1 on linux-mipsel R5900
Date: 2004-08-24 08:05:59
Message-ID: 46C15C39FEB2C44BA555E356FBCD6FA40184D179@m0114.s-mxs.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


> >> Think harder... one processor != one process...
>
> > Well sure, but you don't want a spinlock in that case.
>
> Actually you do, when the normal case is that you don't have to block.
> You want it to fall through as quickly as possible in the success case
> (the blocking case is going to suck no matter what). Given the present
> set of available/portable technologies, spinlocks win.

I guess it could still save some CPU cycles in the single CPU case,
if you yield() instead of tight loop around TAS in the failure case.
Problem is yield and detecting single CPU is not portable.

Andreas

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Zeugswetter Andreas SB SD 2004-08-24 08:08:53 Re: PITR: XLog File compression on Archive
Previous Message Richard Huxton 2004-08-24 08:05:20 Re: [COMMITTERS] pgsql-server: Rearrange pg_subtrans handling