Re: Memory Leakage Problem - Mailing list pgsql-general

From John Sidney-Woollett
Subject Re: Memory Leakage Problem
Date
Msg-id 439E80B1.8030800@wardbrook.com
Whole thread Raw
In response to Re: Memory Leakage Problem  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Memory Leakage Problem
List pgsql-general
Sorry but I don't know how to determine that.

We stopped and started postgres yesterday so the server is behaving well
at the moment.

top shows

top - 07:51:48 up 34 days, 6 min, 1 user, load average: 0.00, 0.02, 0.00
Tasks:  85 total,  1 running,  84 sleeping,  0 stopped,  0 zombie
Cpu(s):  0.6% us, 0.2% sy, 0.0% ni, 99.1% id, 0.2% wa, 0.0% hi, 0.0% si
Mem:   1035612k total,  1030380k used,     5232k free,    48256k buffers
Swap:   497972k total,   122388k used,   375584k free,    32716k cached

   PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
27852 postgres  16   0 17020  11m  14m S  1.0  1.2  18:00.34 postmaster
27821 postgres  15   0 16236 6120  14m S  0.3  0.6   1:30.68 postmaster
  4367 root      16   0  2040 1036 1820 R  0.3  0.1   0:00.05 top
     1 root      16   0  1492  148 1340 S  0.0  0.0   0:04.75 init
     2 root      RT   0     0    0    0 S  0.0  0.0   0:02.00 migration/0
     3 root      34  19     0    0    0 S  0.0  0.0   0:00.01 ksoftirqd/0
     4 root      RT   0     0    0    0 S  0.0  0.0   0:04.78 migration/1
     5 root      34  19     0    0    0 S  0.0  0.0   0:00.04 ksoftirqd/1
     6 root      RT   0     0    0    0 S  0.0  0.0   0:04.58 migration/2
     7 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/2
     8 root      RT   0     0    0    0 S  0.0  0.0   0:21.28 migration/3
     9 root      34  19     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/3
    10 root       5 -10     0    0    0 S  0.0  0.0   0:00.14 events/0
    11 root       5 -10     0    0    0 S  0.0  0.0   0:00.04 events/1
    12 root       5 -10     0    0    0 S  0.0  0.0   0:00.01 events/2
    13 root       5 -10     0    0    0 S  0.0  0.0   0:00.00 events/3
    14 root       8 -10     0    0    0 S  0.0  0.0   0:00.00 khelper


This server only has postgres and slon running on it. There is also
postfix but it is only used to relay emails from the root account to
another server - it isn't really doing anything (I hope).

ps shows

UID        PID  PPID  C STIME     TIME CMD
root         1     0  0 Nov09 00:00:04 init [2]
root         2     1  0 Nov09 00:00:02 [migration/0]
root         3     1  0 Nov09 00:00:00 [ksoftirqd/0]
root         4     1  0 Nov09 00:00:04 [migration/1]
root         5     1  0 Nov09 00:00:00 [ksoftirqd/1]
root         6     1  0 Nov09 00:00:04 [migration/2]
root         7     1  0 Nov09 00:00:00 [ksoftirqd/2]
root         8     1  0 Nov09 00:00:21 [migration/3]
root         9     1  0 Nov09 00:00:00 [ksoftirqd/3]
root        10     1  0 Nov09 00:00:00 [events/0]
root        11     1  0 Nov09 00:00:00 [events/1]
root        12     1  0 Nov09 00:00:00 [events/2]
root        13     1  0 Nov09 00:00:00 [events/3]
root        14    11  0 Nov09 00:00:00 [khelper]
root        15    10  0 Nov09 00:00:00 [kacpid]
root        67    11  0 Nov09 00:17:10 [kblockd/0]
root        68    10  0 Nov09 00:00:52 [kblockd/1]
root        69    11  0 Nov09 00:00:07 [kblockd/2]
root        70    10  0 Nov09 00:00:09 [kblockd/3]
root        82     1  1 Nov09 09:08:14 [kswapd0]
root        83    11  0 Nov09 00:00:00 [aio/0]
root        84    10  0 Nov09 00:00:00 [aio/1]
root        85    11  0 Nov09 00:00:00 [aio/2]
root        86    10  0 Nov09 00:00:00 [aio/3]
root       222     1  0 Nov09 00:00:00 [kseriod]
root       245     1  0 Nov09 00:00:00 [scsi_eh_0]
root       278     1  0 Nov09 00:00:37 [kjournald]
root       359     1  0 Nov09 00:00:00 udevd
root      1226     1  0 Nov09 00:00:00 [kjournald]
root      1229    10  0 Nov09 00:00:16 [reiserfs/0]
root      1230    11  0 Nov09 00:00:08 [reiserfs/1]
root      1231    10  0 Nov09 00:00:00 [reiserfs/2]
root      1232    11  0 Nov09 00:00:00 [reiserfs/3]
root      1233     1  0 Nov09 00:00:00 [kjournald]
root      1234     1  0 Nov09 00:00:13 [kjournald]
root      1235     1  0 Nov09 00:00:24 [kjournald]
root      1583     1  0 Nov09 00:00:00 [pciehpd_event]
root      1598     1  0 Nov09 00:00:00 [shpchpd_event]
root      1669     1  0 Nov09 00:00:00 [khubd]
daemon    2461     1  0 Nov09 00:00:00 /sbin/portmap
root      2726     1  0 Nov09 00:00:10 /sbin/syslogd
root      2737     1  0 Nov09 00:00:00 /sbin/klogd
message   2768     1  0 Nov09 00:00:00 /usr/bin/dbus-daemon-1 --system
root      2802     1  0 Nov09 00:04:38 [nfsd]
root      2804     1  0 Nov09 00:03:32 [nfsd]
root      2803     1  0 Nov09 00:04:58 [nfsd]
root      2806     1  0 Nov09 00:04:40 [nfsd]
root      2807     1  0 Nov09 00:04:41 [nfsd]
root      2805     1  0 Nov09 00:03:51 [nfsd]
root      2808     1  0 Nov09 00:04:36 [nfsd]
root      2809     1  0 Nov09 00:03:20 [nfsd]
root      2811     1  0 Nov09 00:00:00 [lockd]
root      2812     1  0 Nov09 00:00:00 [rpciod]
root      2815     1  0 Nov09 00:00:00 /usr/sbin/rpc.mountd
root      2933     1  0 Nov09 00:00:17 /usr/lib/postfix/master
postfix   2938  2933  0 Nov09 00:00:11 qmgr -l -t fifo -u -c
root      2951     1  0 Nov09 00:00:09 /usr/sbin/sshd
root      2968     1  0 Nov09 00:00:00 /sbin/rpc.statd
root      2969     1  0 Nov09 00:01:41 /usr/sbin/xinetd -pidfile /var/r
root      2980     1  0 Nov09 00:00:07 /usr/sbin/ntpd -p /var/run/ntpd.
root      2991     1  0 Nov09 00:00:01 /sbin/mdadm -F -m root -s
daemon    3002     1  0 Nov09 00:00:00 /usr/sbin/atd
root      3013     1  0 Nov09 00:00:03 /usr/sbin/cron
root      3029     1  0 Nov09 00:00:00 /sbin/getty 38400 tty1
root      3031     1  0 Nov09 00:00:00 /sbin/getty 38400 tty2
root      3032     1  0 Nov09 00:00:00 /sbin/getty 38400 tty3
root      3033     1  0 Nov09 00:00:00 /sbin/getty 38400 tty4
root      3034     1  0 Nov09 00:00:00 /sbin/getty 38400 tty5
root      3035     1  0 Nov09 00:00:00 /sbin/getty 38400 tty6
postgres 27806     1  0 Dec12 00:00:00 /usr/local/pgsql/bin/postmaster
postgres 27809 27806  0 Dec12 00:00:00 postgres: stats buffer process
postgres 27810 27809  0 Dec12 00:00:00 postgres: stats collector proces
postgres 27821 27806  0 Dec12 00:01:30 postgres: postgres bp_live
postgres 27842     1  0 Dec12 00:00:00 /usr/local/pgsql/bin/slon -d 1 b
postgres 27844 27842  0 Dec12 00:00:00 /usr/local/pgsql/bin/slon -d 1 b
postgres 27847 27806  0 Dec12 00:00:50 postgres: postgres bp_live
postgres 27852 27806  1 Dec12 00:18:00 postgres: postgres bp_live
postgres 27853 27806  0 Dec12 00:00:33 postgres: postgres bp_live
postgres 27854 27806  0 Dec12 00:00:18 postgres: postgres bp_live
root     32735    10  0 05:35 00:00:00 [pdflush]
postfix   2894  2933  0 07:04 00:00:00 pickup -l -t fifo -u -c
root      3853    10  0 07:37 00:00:00 [pdflush]


All I know is that stopping postgres brings the server back to
normality. Stopping slon on its own is not enough.

John

Tom Lane wrote:
> John Sidney-Woollett <johnsw@wardbrook.com> writes:
>
>>This server just consumes more and more memory until it goes swap crazy
>>and the load averages start jumping through the roof.
>
>
> *What* is consuming memory, exactly --- which processes?
>
>             regards, tom lane

pgsql-general by date:

Previous
From: Franz.Rasper@izb.de
Date:
Subject: Re: Performance large tables.
Next
From: "Jim C. Nasby"
Date:
Subject: Re: Excessive vacuum times