Re: [Lsf-pc] Linux kernel impact on PostgreSQL performance
От | Jim Nasby |
---|---|
Тема | Re: [Lsf-pc] Linux kernel impact on PostgreSQL performance |
Дата | |
Msg-id | 52E06941.7000505@nasby.net обсуждение исходный текст |
Ответ на | Re: [Lsf-pc] Linux kernel impact on PostgreSQL performance (Robert Haas <robertmhaas@gmail.com>) |
Список | pgsql-hackers |
On 1/17/14, 7:57 AM, Robert Haas wrote: > - WAL files are written (and sometimes read) sequentially and fsync'd > very frequently and it's always good to write the data out to disk as > soon as possible > - Temp files are written and read sequentially and never fsync'd. > They should only be written to disk when memory pressure demands it > (but are a good candidate when that situation comes up) > - Data files are read and written randomly. They are fsync'd at > checkpoint time; between checkpoints, it's best not to write them > sooner than necessary, but when the checkpoint arrives, they all need > to get out to the disk without bringing the system to a standstill For sake of completeness... there are also data files that are temporary and don't need to be written to disk unless thekernel thinks there's better things to use that memory for. AFAIK those files are never fsync'd. In other words, these are the same as the temp files Robert describes except they also have random access. Dunno if thatmatters. -- Jim C. Nasby, Data Architect jim@nasby.net 512.569.9461 (cell) http://jim.nasby.net
В списке pgsql-hackers по дате отправления: