Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1e98572

Browse files
committed
Improve description of bgwriter_lru_multiplier, per discussion.
1 parent716e8b8 commit1e98572

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

‎doc/src/sgml/config.sgml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.160 2007/12/11 20:07:31 alvherre Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.161 2008/01/21 03:28:42 tgl Exp $ -->
22

33
<chapter Id="runtime-config">
44
<title>Server Configuration</title>
@@ -1192,17 +1192,16 @@ SET ENABLE_SEQSCAN TO OFF;
11921192
<title>Background Writer</title>
11931193

11941194
<para>
1195-
Beginning in <productname>PostgreSQL</> 8.0, there is a separate server
1195+
There is a separate server
11961196
process called the <firstterm>background writer</>, whose function
11971197
is to issue writes of <quote>dirty</> shared buffers. The intent is
11981198
that server processes handling user queries should seldom or never have
11991199
to wait for a write to occur, because the background writer will do it.
12001200
However there is a net overall
1201-
increase in I/O load, becausewherea repeatedly-dirtied page might
1202-
before have beenwritten only once per checkpoint interval, the
1201+
increase in I/O load, because a repeatedly-dirtied page might
1202+
otherwise bewritten only once per checkpoint interval, but the
12031203
background writer might write it several times in the same interval.
1204-
In most situations a continuous low load is preferable to periodic
1205-
spikes, but the parameters discussed in this subsection can be used to
1204+
The parameters discussed in this subsection can be used to
12061205
tune the behavior for local needs.
12071206
</para>
12081207

@@ -1253,12 +1252,14 @@ SET ENABLE_SEQSCAN TO OFF;
12531252
</indexterm>
12541253
<listitem>
12551254
<para>
1256-
Unless limited by <varname>bgwriter_lru_maxpages</>, the number
1257-
of dirty buffers written in each round is determined by reference
1258-
to the number of new buffers that have been needed by server
1259-
processes during recent rounds. This number is multiplied by
1260-
<varname>bgwriter_lru_multiplier</> to arrive at the estimate
1261-
of the number of buffers that will be needed during the next round.
1255+
The number of dirty buffers written in each round is based on the
1256+
number of new buffers that have been needed by server processes
1257+
during recent rounds. The average recent need is multiplied by
1258+
<varname>bgwriter_lru_multiplier</> to arrive at an estimate of the
1259+
number of buffers that will be needed during the next round. Dirty
1260+
buffers are written until there are that many clean, reusable buffers
1261+
available. (However, no more than <varname>bgwriter_lru_maxpages</>
1262+
buffers will be written per round.)
12621263
Thus, a setting of 1.0 represents a <quote>just in time</> policy
12631264
of writing exactly the number of buffers predicted to be needed.
12641265
Larger values provide some cushion against spikes in demand,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp