From hsu@clinet.fi Sun Feb 2 13:23:57 1997 Received: from hauki.clinet.fi (root@hauki.clinet.fi [194.100.0.1]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id NAA15025 for ; Sun, 2 Feb 1997 13:23:50 -0800 (PST) Received: from katiska.clinet.fi (root@katiska.clinet.fi [194.100.0.4]) by hauki.clinet.fi (8.8.5/8.6.4) with ESMTP id XAA24528 for ; Sun, 2 Feb 1997 23:21:47 +0200 (EET) Received: (hsu@localhost) by katiska.clinet.fi (8.8.4/8.6.4) id XAA04335; Sun, 2 Feb 1997 23:21:45 +0200 (EET) Message-Id: <199702022121.XAA04335@katiska.clinet.fi> Date: Sun, 2 Feb 1997 23:21:45 +0200 (EET) From: Heikki Suonsivu Reply-To: hsu@clinet.fi To: FreeBSD-gnats-submit@freebsd.org Subject: 2.2-RELENG leaks memory (router/pppd server) ? X-Send-Pr-Version: 3.2 >Number: 2640 >Category: kern >Synopsis: 2.2-RELENG leaks memory (router/pppd server) ? >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Feb 2 13:30:03 PST 1997 >Closed-Date: Fri Jul 9 07:27:47 PDT 1999 >Last-Modified: Fri Jul 9 07:29:28 PDT 1999 >Originator: Heikki Suonsivu >Release: FreeBSD 2.2-RELEASE i386 >Organization: Clinet, Espoo, Finland >Environment: 2.2 from mid-february, being used as a router with 16M of memory, gated. Usually either max 16 pppds and couple of rlogins and gated, couple of small programs for accounting, nothing else. Hardware is cyclades + basic IDE + 486-66 to pentium-133 configuration (8 of them, various different motherboards and cpus). There are routing changes all the time. Other possible points of leak are in kernel ppp (pppd). I cannot figure out what else could be causing this. >Description: 2.2 seems to leak memory somewhere. These systems become slow and vmstat shows wild swapping for no obvious reason. The system seems to be extremely slow, looses characters on input and gettys seem to get the line speed wrong (thats weird as they are supposed to be locked to 115.2k and getty should not try anything else but 115.2k!). Reboot cures the problem for some time. I do not know if this could be lack of memory; it seems odd, as the programs being run are small and they do not show any growth related to load increase. 2 users Load 0.94 0.80 0.46 Sun Feb 2 22:54 Mem:KB REAL VIRTUAL VN PAGER SWAP PAGER Tot Share Tot Share Free in out in out Act 1464 144 13688 1164 428 count 5 19 21 All 5968 192 937436 4416 pages 12 36 22 3 cow Interrupts Proc:r p d s w Csw Trp Sys Int Sof Flt zfod 900 total 1 3 3 12 3 123 4050778 896 60 39 4544 wire 102 clk0 irq0 1376 act 130 rtc0 irq8 48.9%Sys 6.2%Intr 30.8%User 0.0%Nice 14.1%Idl 84 inact 11 pci irq11 | | | | | | | | | | 24 cache 618 wdc0 irq14 ========================++++>>>>>>>>>>>>>>> 428 free fdc0 irq6 3 daefr vt0 irq1 Namei Name-cache Dir-cache prcfr 39 cy0 irq10 Calls hits % hits % 5 react 280 267 95 3 pdwake 1113 pdpgs Discs wd0 1 intrn seeks 50 365 buf xfers 50 blks 308 msps 18.7 -------- after couple of seconds 2 users Load 0.90 0.79 0.47 Sun Feb 2 22:54 Mem:KB REAL VIRTUAL VN PAGER SWAP PAGER Tot Share Tot Share Free in out in out Act 1404 240 13560 1152 472 count 6 19 18 All 5968 256 942060 4692 pages 10 37 19 4 cow Interrupts Proc:r p d s w Csw Trp Sys Int Sof Flt 2 zfod 908 total 1 3 4 13 137 3344548 902 61 33 4608 wire 100 clk0 irq0 1340 act 129 rtc0 irq8 42.1%Sys 6.2%Intr 28.7%User 0.0%Nice 23.0%Idl 72 inact 14 pci irq11 | | | | | | | | | | 12 cache 597 wdc0 irq14 =====================+++>>>>>>>>>>>>>> 428 free fdc0 irq6 3 daefr vt0 irq1 Namei Name-cache Dir-cache prcfr 68 cy0 irq10 Calls hits % hits % 1 react 311 299 96 4 pdwake 1437 pdpgs Discs wd0 intrn seeks 47 397 buf xfers 47 blks 298 msps 19.8 ---------- ps axuwwww USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND root 701 85.4 2.5 548 144 ?? R 10:43PM 7:10.45 /usr/local/sbin/sshd root 765 1.5 7.5 436 448 ?? R 10:57PM 0:00.26 /usr/local/sbin/sshd root 1 0.0 0.0 472 0 ?? IWs Wed09PM 0:36.79 /sbin/init -- root 2 0.8 0.3 0 12 ?? RL Wed09PM 30:41.96 (pagedaemon) root 3 0.0 0.3 0 12 ?? DL Wed09PM 2:24.05 (vmdaemon) root 4 0.0 0.3 0 12 ?? DL Wed09PM 1:46.59 (update) root 80 0.0 1.1 212 56 ?? Ss Wed09PM 1:32.12 syslogd daemon 91 0.0 0.0 176 0 ?? IWs Wed09PM 0:00.00 portmap root 112 0.0 0.0 192 0 ?? IWs Wed09PM 0:01.61 inetd root 226 0.0 0.0 416 0 ?? SWs Wed09PM 4:03.60 /usr/local/sbin/sshd root 249 0.0 0.0 236 0 v0- RW Wed09PM 1:27.49 /usr/local/sbin/userwatch -d -d -d root 250 0.0 0.0 500 0 v0- IW Wed09PM 0:00.00 /bin/sh /usr/local/bin/repeat /usr/local/sbin/gated -N root 252 0.0 5.6 2192 332 v0- R Wed09PM 28:49.91 /usr/local/sbin/gated -N root 253 0.0 0.0 168 0 v0 IWs+ Wed09PM 0:00.03 /usr/libexec/getty Pc ttyv0 root 254 0.0 0.0 168 0 v1 IWs+ Wed09PM 0:00.03 /usr/libexec/getty Pc ttyv1 root 255 0.0 0.0 168 0 v2 IWs+ Wed09PM 0:00.03 /usr/libexec/getty Pc ttyv2 root 27054 0.0 0.0 256 0 c0r IWs+ 11:46AM 0:00.26 pppd -d -d -d -d -d -d auth crtscts -detach modem user clinet name clinet somehost: 1259 27119 0.0 0.6 224 28 c0e Ss+ 11:58AM 0:03.11 rlogin -E8 -l xxx somehost (rlogin.shell) 1259 27273 0.0 0.7 224 32 c0e S+ 12:26PM 0:02.10 rlogin -E8 -l xxx somehost (rlogin.shell) root 27587 0.0 0.0 256 0 c0k IWs+ 1:32PM 0:00.28 pppd -d -d -d -d -d -d auth crtscts -detach modem user clinet name clinet somehost: 1279 28952 0.0 0.8 224 40 c0j Ss+ 5:50PM 0:05.48 rlogin -E8 -l xxx somehost (rlogin.shell) 1279 29062 0.0 0.9 224 48 c0j S+ 6:11PM 0:05.24 rlogin -E8 -l xxx somehost (rlogin.shell) 1180 29212 0.0 0.0 224 0 c0v RWs+ 6:41PM 0:04.68 rlogin -E8 -l xxx somehost (rlogin.shell) 1180 29233 0.8 0.9 224 48 c0v S+ 6:44PM 0:02.23 rlogin -E8 -l xxx somehost (rlogin.shell) root 147 0.0 0.0 256 0 c0f IWs+ 9:12PM 0:00.25 pppd -d -d -d -d -d -d auth crtscts -detach modem user clinet name clinet somehost: 10157 289 0.0 0.0 224 0 c0n IWs+ 9:33PM 0:00.66 rlogin -E8 -l xxx somehost (rlogin.shell) 10157 313 0.0 0.9 224 48 c0n S+ 9:36PM 0:00.68 rlogin -E8 -l xxx somehost (rlogin.shell) root 549 0.0 0.0 256 0 c0t IWs+ 10:18PM 0:00.26 pppd -d -d -d -d -d -d auth crtscts -detach modem user clinet name clinet somehost: 1450 588 0.0 0.0 224 0 c0b IWs+ 10:26PM 0:00.35 rlogin -E8 -l xxx somehost (rlogin.shell) root 598 0.0 0.0 448 0 ?? IW 10:28PM 0:00.76 /usr/local/sbin/sshd root 601 0.0 0.0 800 0 p0 IWs 10:28PM 0:00.53 zsh (zsh-2.6-beta13) root 643 0.0 0.0 148 0 ?? IW 10:34PM 0:00.02 /usr/local/bin/agetty -l /usr/local/bin/shell 115200 ttyc00 root 644 0.0 0.0 148 0 ?? IW 10:34PM 0:00.01 /usr/local/bin/agetty -l /usr/local/bin/shell 115200 ttyc02 root 650 0.0 0.0 148 0 ?? IW 10:34PM 0:00.01 /usr/local/bin/agetty -l /usr/local/bin/shell 115200 ttyc08 root 652 0.0 0.0 148 0 ?? IW 10:34PM 0:00.01 /usr/local/bin/agetty -l /usr/local/bin/shell 115200 ttyc0c root 660 0.0 0.0 328 0 c0u IWs+ 10:35PM 0:00.30 /usr/local/bin/shell clinet root 667 0.0 0.0 788 0 p0 IW+ 10:36PM 0:00.30 kermit root 679 0.0 0.0 148 0 ?? IW 10:39PM 0:00.03 /usr/local/bin/agetty -l /usr/local/bin/shell 115200 ttyc05 root 680 0.0 0.0 148 0 ?? IW 10:39PM 0:00.02 /usr/local/bin/agetty -l /usr/local/bin/shell 115200 ttyc06 root 683 0.0 0.0 148 0 ?? IW 10:40PM 0:00.03 /usr/local/bin/agetty -l /usr/local/bin/shell 115200 ttyc09 root 685 0.0 0.0 148 0 ?? IW 10:40PM 0:00.02 /usr/local/bin/agetty -l /usr/local/bin/shell 115200 ttyc07 root 687 0.0 0.0 148 0 ?? IW 10:41PM 0:00.02 /usr/local/bin/agetty -l /usr/local/bin/shell 115200 ttyc03 1450 695 0.0 0.0 224 0 c0b IW+ 10:41PM 0:00.15 rlogin -E8 -l xxx somehost (rlogin.shell) root 696 0.0 0.0 148 0 ?? IW 10:42PM 0:00.02 /usr/local/bin/agetty -l /usr/local/bin/shell 115200 ttyc0i root 698 0.0 0.0 148 0 ?? IW 10:42PM 0:00.02 /usr/local/bin/agetty -l /usr/local/bin/shell 115200 ttyc0a root 704 0.0 0.0 460 0 ?? IWs 10:43PM 0:00.07 csh -c cd / ; tar xpf - 1039 707 0.0 0.8 224 40 c0s Ss+ 10:43PM 0:00.30 rlogin -E8 -l xxx somehost (rlogin.shell) root 709 0.0 2.8 460 164 ?? D 10:43PM 0:02.95 tar xpf - root 710 0.0 0.0 148 0 ?? IW 10:44PM 0:00.03 /usr/local/bin/agetty -l /usr/local/bin/shell 115200 ttyc0l root 713 0.0 0.0 148 0 ?? IW 10:44PM 0:00.02 /usr/local/bin/agetty -l /usr/local/bin/shell 115200 ttyc0h root 717 0.0 0.0 148 0 ?? IW 10:46PM 0:00.02 /usr/local/bin/agetty -l /usr/local/bin/shell 115200 ttyc0m root 720 0.0 0.0 148 0 ?? IW 10:46PM 0:00.02 /usr/local/bin/agetty -l /usr/local/bin/shell 115200 ttyc0p root 723 0.0 3.3 448 192 ?? S 10:46PM 0:00.75 /usr/local/sbin/sshd root 725 0.0 1.6 472 92 p1 Ss 10:47PM 0:00.27 -csh (csh) root 728 0.0 0.0 148 0 ?? IW 10:47PM 0:00.03 /usr/local/bin/agetty -l /usr/local/bin/shell 115200 ttyc0g root 735 0.0 0.0 148 0 ?? IW 10:48PM 0:00.04 /usr/local/bin/agetty -l /usr/local/bin/shell 115200 ttyc0q root 737 0.0 0.0 148 0 ?? IW 10:49PM 0:00.03 /usr/local/bin/agetty -l /usr/local/bin/shell 115200 ttyc04 1039 743 0.0 0.9 224 48 c0s S+ 10:50PM 0:00.09 rlogin -E8 -l xxx somehost (rlogin.shell) root 757 0.0 0.0 148 0 ?? IW 10:55PM 0:00.04 /usr/local/bin/agetty -l /usr/local/bin/shell 115200 ttyc0o root 763 0.0 0.0 148 0 ?? IW 10:56PM 0:00.04 /usr/local/bin/agetty -l /usr/local/bin/shell 115200 ttyc01 root 764 0.0 0.0 148 0 ?? IW 10:57PM 0:00.02 /usr/local/bin/agetty -l /usr/local/bin/shell 115200 ttyc0d root 767 0.2 3.6 484 212 p1 R+ 10:57PM 0:00.02 ps -axuwwwww root 23768 0.1 0.1 0 0 ?? Z - 0:00.00 (sshd) root 768 0.0 7.4 436 444 ?? R 10:57PM 0:00.00 /usr/local/sbin/sshd root 0 0.0 0.1 0 0 ?? RLs Wed09PM 0:25.27 (swapper) Resident size sums to 2452 I cannot say exactly when this started but I think I have noticed it during 1997, but not fall 1996. >How-To-Repeat: I do not know yet what ignites this. >Fix: >Release-Note: >Audit-Trail: State-Changed-From-To: open->closed State-Changed-By: sheldonh State-Changed-When: Fri Jul 9 07:27:47 PDT 1999 State-Changed-Why: Unfortunately, active development on the 2.2 branch has come to a close, so it is unlikely that anyone is going to look at this PR. Should you feel that this problem exists in a more recent version of FreeBSD, please feel free to submit your findings as a new PR. >Unformatted: