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

Commit51e400c

Browse files
committed
Remove the separate 'stats buffer' process, letting backend stats messages
be delivered directly to the collector process. The extra process contextswaps required to transfer data through the buffer process seem to outweighany value the buffering might have. Per recent discussion and tests.I modified Bruce's draft patch to use poll() rather than select() whereavailable (this makes a noticeable difference on my system), and fixedup the EXEC_BACKEND case.
1 parentcd4609e commit51e400c

File tree

4 files changed

+160
-535
lines changed

4 files changed

+160
-535
lines changed

‎doc/src/sgml/monitoring.sgml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/monitoring.sgml,v 1.35 2006/06/27 19:07:50 momjian Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/monitoring.sgml,v 1.36 2006/06/29 20:00:08 tgl Exp $ -->
22

33
<chapter id="monitoring">
44
<title>Monitoring Database Activity</title>
@@ -50,7 +50,7 @@
5050
<screen>
5151
$ ps auxww | grep ^postgres
5252
postgres 960 0.0 1.1 6104 1480 pts/1 SN 13:17 0:00 postgres -i
53-
postgres 963 0.0 1.1 7084 1472 pts/1 SN 13:17 0:00 postgres:stats bufferprocess
53+
postgres 963 0.0 1.1 7084 1472 pts/1 SN 13:17 0:00 postgres:writerprocess
5454
postgres 965 0.0 1.1 6152 1512 pts/1 SN 13:17 0:00 postgres: stats collector process
5555
postgres 998 0.0 2.3 6532 2992 pts/1 SN 13:18 0:00 postgres: tgl runbug 127.0.0.1 idle
5656
postgres 1003 0.0 2.4 6532 3128 pts/1 SN 13:19 0:00 postgres: tgl regression [local] SELECT waiting
@@ -60,10 +60,11 @@ postgres 1016 0.1 2.4 6532 3080 pts/1 SN 13:19 0:00 postgres: tgl reg
6060
(The appropriate invocation of <command>ps</> varies across different
6161
platforms, as do the details of what is shown. This example is from a
6262
recent Linux system.) The first process listed here is the
63-
themaster server process. The command arguments
63+
master server process. The command arguments
6464
shown for it are the same ones given when it was launched. The next two
65-
processes implement the statistics collector, which will be described in
66-
detail in the next section. (These will not be present if you have set
65+
processes are background worker processes automatically launched by the
66+
master process. (The <quote>stats collector</> process will not be present
67+
if you have set
6768
the system not to start the statistics collector.) Each of the remaining
6869
processes is a server process handling one client connection. Each such
6970
process sets its command line display in the form
@@ -83,6 +84,13 @@ postgres: <replaceable>user</> <replaceable>database</> <replaceable>host</> <re
8384
thereby release some lock or other.
8485
</para>
8586

87+
<para>
88+
If you have turned off <xref linkend="guc-update-process-title"> then the
89+
activity indicator is not updated; the process title is set only once
90+
when a new process is launched. On some platforms this saves a useful
91+
amount of per-command overhead, on others it's insignificant.
92+
</para>
93+
8694
<tip>
8795
<para>
8896
<productname>Solaris</productname> requires special handling. You must

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp