From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Alfred Perlstein <bright(at)wintelcom(dot)net> |
Cc: | Xu Yifeng <jamexu(at)telekbird(dot)com(dot)cn>, "Mikheev, Vadim" <vmikheev(at)SECTORBASE(dot)COM>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Re[4]: Allowing WAL fsync to be done via O_SYNC |
Date: | 2001-03-16 16:23:39 |
Message-ID: | 24943.984759819@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Alfred Perlstein <bright(at)wintelcom(dot)net> writes:
>> definitely need before considering this is to replace the existing
>> spinlock mechanism with something more efficient.
> What sort of problems are you seeing with the spinlock code?
It's great as long as you never block, but it sucks for making things
wait, because the wait interval will be some multiple of 10 msec rather
than just the time till the lock comes free.
We've speculated about using Posix semaphores instead, on platforms
where those are available. I think Bruce was concerned about the
possible overhead of pulling in a whole thread-support library just to
get semaphores, however.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Alfred Perlstein | 2001-03-16 16:31:49 | Re: Performance monitor signal handler |
Previous Message | Alfred Perlstein | 2001-03-16 16:18:26 | Re: Re[4]: Allowing WAL fsync to be done via O_SYNC |