Re: Allowing WAL fsync to be done via O_SYNC

From: Alfred Perlstein <bright(at)wintelcom(dot)net>
To: "William K(dot) Volkman" <wkv(at)hiscorp(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Allowing WAL fsync to be done via O_SYNC
Date: 2001-03-18 20:03:28
Message-ID: 20010318120328.L29888@fw.wintelcom.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

* William K. Volkman <wkv(at)hiscorp(dot)net> [010318 11:56] wrote:
> The Hermit Hacker wrote:
> >>
> > But, with shared libraries, are you really pulling in a "whole
> > thread-support library"? My understanding of shared libraries (altho it
> > may be totally off) was that instead of pulling in a whole library, you
> > pulled in the bits that you needed, pretty much as you needed them ...
>
> Just by making a thread call libc changes personality to use thread
> safe routines (I.E. add mutex locking). Use one thread feature, get
> the whole set...which may not be that bad.

Actually it can be pretty bad. Locked bus cycles needed for mutex
operations are very, very expensive, not something you want to do
unless you really really need to do it.

--
-Alfred Perlstein - [bright(at)wintelcom(dot)net|alfred(at)freebsd(dot)org]

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2001-03-18 20:21:53 Re: Re: Beta6 for Tomorrow
Previous Message Tom Lane 2001-03-18 19:39:13 Re: pg_ctl problem (was Re: BeOS Patch)