Skip to content

Commit b7fc259

Browse files
committed
doc: update bgwriter description
This clarifies exactly what the bgwriter does, which should help with tuning. Reported-by: Chris Wilson Discussion: https://postgr.es/m/160399562040.7809.7335281028960123489@wrigleys.postgresql.org Backpatch-through: 9.5
1 parent f75a7bb commit b7fc259

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

doc/src/sgml/config.sgml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2093,8 +2093,11 @@ include_dir 'conf.d'
20932093
There is a separate server
20942094
process called the <firstterm>background writer</firstterm>, whose function
20952095
is to issue writes of <quote>dirty</quote> (new or modified) shared
2096-
buffers. It writes shared buffers so server processes handling
2097-
user queries seldom or never need to wait for a write to occur.
2096+
buffers. When the number of clean shared buffers appears to be
2097+
insufficient, the background writer writes some dirty buffers to the
2098+
file system and marks them as clean. This reduces the likelihood
2099+
that server processes handling user queries will be unable to find
2100+
clean buffers and have to write dirty buffers themselves.
20982101
However, the background writer does cause a net overall
20992102
increase in I/O load, because while a repeatedly-dirtied page might
21002103
otherwise be written only once per checkpoint interval, the

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy