From owner-freebsd-bugs Sun Feb 1 01:00:03 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA10772 for freebsd-bugs-outgoing; Sun, 1 Feb 1998 01:00:03 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: (from gnats@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA10761; Sun, 1 Feb 1998 01:00:01 -0800 (PST) (envelope-from gnats) Received: from noir.crocodile.org (lord@noir.crocodile.org [207.88.166.95]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA10614 for ; Sun, 1 Feb 1998 00:58:07 -0800 (PST) (envelope-from lord@noir.crocodile.org) Received: (from lord@localhost) by noir.crocodile.org (8.8.5/8.8.5) id AAA00357; Sun, 1 Feb 1998 00:57:58 -0800 (PST) Message-Id: <199802010857.AAA00357@noir.crocodile.org> Date: Sun, 1 Feb 1998 00:57:58 -0800 (PST) From: lord@crocodile.org Reply-To: lord@crocodile.org To: FreeBSD-gnats-submit@FreeBSD.ORG Cc: dk@farm.org X-Send-Pr-Version: 3.2 Subject: kern/5618: kernel memory leak Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org X-To-Unsubscribe: mail to majordomo@FreeBSD.org "unsubscribe freebsd-bugs" >Number: 5618 >Category: kern >Synopsis: kernel memory leak in routetbl. >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Feb 1 01:00:01 PST 1998 >Last-Modified: >Originator: Vadim Zaliva >Organization: Private >Release: FreeBSD 2.2.2-RELEASE i386 >Environment: Moderately loaded 2.2.2 box on LAN running routed, httpd, ircd, sshd. Used and shell box for dosen people. Uptime was around 50 days. There was IP alias on the one and only ethernet interface. >Description: Noticed slowdown of the system. In `vmstat -m` output routbl category occupies more than 10 meg. Output of `vmstat -m`: Memory statistics by bucket size Size In Use Free Requests HighWater Couldfree 16 62 1218 62899 1280 0 32 49630 34 307579 640 0 64 8367 1745 1710296 320 0 128 9936 208 4505330 160 12584 256 62664 392 3000116 80 1168 512 71 193 156979 40 2150 1K 27 161 5810616 20 1514765 2K 8 24 3703 10 1395 4K 8 6 14449 5 0 8K 3 2 7 5 0 16K 4 0 4 5 0 32K 1 0 1 5 0 Memory usage type by bucket size Size Type(s) 16 devbuf, pcb, routetbl, vnodes, proc, mrt, temp, IpFw/IpAcct, sysctl 32 devbuf, pcb, routetbl, pgrp, session, subproc, ether_multi, temp 64 devbuf, routetbl, ifaddr, namecache, VM mapent, VM pgdata, file, lockf, in_multi 128 devbuf, pcb, routetbl, zombie, ifaddr, cred, vnodes, VM map, VM object, VM pgdata, file desc, ip_moptions, temp, ttys, IpFw/IpAcct, isa_devlist 256 devbuf, socket, pcb, routetbl, vnodes, VM map, VM pgdata, file desc, subproc, FFS node, NFS srvsock, NFS daemon, temp, select 512 devbuf, pcb, ioctlops, mount, UFS mount, VM pgdata, file desc, proc, temp, BIO buffer 1K devbuf, namei, UFS mount, VM pgdata, file desc, NQNFS Lease, temp, BIO buffer 2K devbuf, UFS mount, VM pgdata, proc, BIO buffer 4K mbuf, devbuf, ioctlops, VM pgdata, MSDOSFS mount, temp 8K NFS node, UFS quota, UFS mount, VM pgdata 16K devbuf, namecache 32K VM pgdata Memory statistics by type Type Kern Type InUse MemUse HighUse Limit Requests Limit Limit Size(s) mbuf 1 4K 4K 18437K 1 0 0 4K devbuf 38 80K 81K 18437K 129 0 0 16,32,64,128,256,512,1K,2K,4K,16K socket 4663 1166K 1215K 18437K 238525 0 0 256 pcb 9280 1740K 1813K 18437K 316399 0 0 16,32,128,256,512 routetbl 98885 13905K 13907K 18437K 172810 0 0 16,32,64,128,256 zombie 0 0K 1K 18437K 155045 0 0 128 ifaddr 9 2K 2K 18437K 9 0 0 64,128 namei 1 1K 16K 18437K 5749510 0 0 1K ioctlops 0 0K 4K 18437K 27 0 0 512,4K cred 49 7K 30K 18437K 77650 0 0 128 pgrp 34 2K 7K 18437K 37185 0 0 32 session 27 1K 7K 18437K 32596 0 0 32 mount 4 2K 2K 18437K 4 0 0 512 NFS node 1 8K 8K 18437K 1 0 0 8K vnodes 3873 482K 498K 18437K 64729 0 0 16,128,256 namecache 3823 255K 255K 18437K 3823 0 0 64,16K UFS quota 1 8K 8K 18437K 1 0 0 8K UFS mount 10 19K 19K 18437K 10 0 0 512,1K,2K,8K VM map 56 14K 59K 18437K 155101 0 0 128,256 VM mapent 3999 250K 250K 18437K 3999 0 0 64 VM object 834 105K 402K 18437K 3759469 0 0 128 VM pgdata 583 78K 272K 18437K 39710 0 0 64,128,256,512,1K,2K,4K,8K,32K file 126 8K 33K 18437K 1620648 0 0 64 file desc 50 8K 29K 18437K 155692 0 0 128,256,512,1K lockf 4 1K 1K 18437K 47702 0 0 64 proc 61 30K 120K 18437K 157076 0 0 16,512,2K subproc 59 5K 53K 18437K 310149 0 0 32,256 FFS node 3743 936K 955K 18437K 2073167 0 0 256 NQNFS Lease 1 1K 1K 18437K 1 0 0 1K NFS srvsock 2 1K 1K 18437K 2 0 0 256 NFS daemon 1 1K 1K 18437K 1 0 0 256 ip_moptions 1 1K 1K 18437K 45773 0 0 128 in_multi 2 1K 1K 18437K 11445 0 0 64 ether_multi 1 1K 1K 18437K 11444 0 0 32 mrt 1 1K 1K 18437K 1 0 0 16 MSDOSFS mount 1 4K 4K 18437K 1 0 0 4K temp 101 9K 26K 18437K 225380 0 0 16,32,128,256,512,1K,4K ttys 401 51K 99K 18437K 32147 0 0 128 IpFw/IpAcct 6 1K 1K 18437K 6 0 0 16,128 isa_devlist 1 1K 1K 18437K 1 0 0 128 sysctl 0 0K 1K 18437K 11 0 0 16 BIO buffer 21 23K 178K 18437K 64286 0 0 512,1K,2K select 27 7K 52K 18437K 10313 0 0 256 Memory Totals: In Use Free Requests 19202K 599K 15571979 >How-To-Repeat: I don't know :-) >Fix: reboot >Audit-Trail: >Unformatted: