Re: Performance features the 4th

From: Jan Wieck <JanWieck(at)Yahoo(dot)com>
To: Manfred Spraul <manfred(at)colorfullife(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Performance features the 4th
Date: 2003-11-05 20:11:18
Message-ID: 3FA95966.3040100@Yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Manfred Spraul wrote:

> Jan Wieck wrote:
>
>>
>> _Vacuum page delay_:
>>
>> Tom Lane's napping during vacuums with another tuning option. I
>> replaced the usleep() call with a PG_DELAY(msec) macro in miscadmin.h,
>> which does use select(2) instead. That should address the possible
>> portability problems.
>
> What about skipping the delay if there are no outstanding disk
> operations? Then vacuum would get the full disk bandwidth if the system
> is idle.

All we could do is to monitor our own recent activity. I doubt that
anything else would be portable. And on a dedicated DB server that is
very close to the truth anyway.

How portable is getrusage()? Could the postmaster issue that frequently
for RUSAGE_CHILDREN and leave the result somewhere in the shared memory
for whoever is concerned?

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 #

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jan Wieck 2003-11-05 20:28:37 Re: Performance features the 4th
Previous Message Neil Conway 2003-11-05 20:08:53 Re: Performance features the 4th