AW: AW: Why vacuum? - Mailing list pgsql-hackers

From Zeugswetter Andreas SB
Subject AW: AW: Why vacuum?
Date
Msg-id 11C1E6749A55D411A9670001FA687963368184@sdexcsrv1.f000.d0188.sd.spardat.at
Whole thread Raw
List pgsql-hackers
> > because the cache will be emptied by high priority multiple new rows,
> > thus writing to the end anyways.
> 
> Yes, but this only happens when you don't have enought spare idle CPU
> time. If you are in such situation for long periods, there's nothing you
> can do, you already have problems.

I think such a process would not need a lot of CPU, but a lot of IO. The common
schedulers do not take IO into account (at least not in the here needed sense), 
thus you cannot use the process priority mechanism here :-(

An idea could be to only fill the freepage cache from pages that currently reside in the 
page buffer. This would also somehow improve cache efficiency, since pages
that are often accessed would get a higher fill level.
A problem with this is, that an empty page (basically an optimal candidate for the list) 
would not get into the freelist unless somebody does a seq scan on the table.

Andreas


pgsql-hackers by date:

Previous
From: Denis Perchine
Date:
Subject: Re: vacuum verbose analyze lazy problem.
Next
From: Luis Sousa
Date:
Subject: Re: Ocasional problems !!!!