From: | Jan Wieck <JanWieck(at)Yahoo(dot)com> |
---|---|
To: | Jan Wieck <JanWieck(at)Yahoo(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Why has postmaster shutdown gotten so slow? |
Date: | 2004-02-05 19:00:40 |
Message-ID: | 402292D8.8050903@Yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Jan Wieck wrote:
> Tom Lane wrote:
>
>> Shutdown of an idle postmaster used to take about two or three seconds
>> (mostly due to the sync/sleep(2)/sync in md_sync). For the last couple
>> of days it's taking more like a dozen seconds. I presume somebody broke
>> something, but I'm unsure whether to pin the blame on bgwriter or
>> Windows changes. Anyone care to fess up?
>
> I guess it could well be the bgwriter, which when having nothing to do
> at all is sleeping for 10 seconds. Not sure, will check.
I checked the background writer for this and I can not reproduce the
behaviour. If the bgwriter had zero blocks to write it does PG_USLEEP
for 10 seconds, which on Unix is done by select() and that is correctly
interrupted when the postmaster sends it the term signal on shutdown.
Jan
--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== JanWieck(at)Yahoo(dot)com #
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2004-02-05 19:05:46 | It's past time to redo the smgr API |
Previous Message | Joe Conway | 2004-02-05 18:57:11 | Re: dblink - custom datatypes don't work |