Re: vacuum performance on insert

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sean Chen <zyschen@xxxxxxxxx> wrote:
 
> Now from what you mentioned below, do you know what's the cost of
> postgres requesting new disk space from OS?
 
Depending on your OS and its version, your file system, your mount
options, and your disk subsystem (and its firmware revision), there
could be various effects -- the one likely to be biting you is write
barriers.  When you allocate additional space from the OS, and it
extends a file or creates a new file, there might be a write barrier
to ensure that the file system catalog entries are persisted.  This
could cause all writes (and possibly even reads) to pause until the
data is written to disk.
 
That's just a guess, of course.   If you have a profiler you can run
you might be able to pin it down with that.
 
-Kevin

-- 
Sent via pgsql-performance mailing list (pgsql-performance@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance


[Postgresql General]     [Postgresql PHP]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Yosemite]

  Powered by Linux