From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103734,5d5140ead7a56f50 X-Google-Attributes: gid103734,public X-Google-Thread: fee84,5d5140ead7a56f50 X-Google-Attributes: gidfee84,public From: Dan.Pop@mail.cern.ch (Dan Pop) Subject: Re: ever-expanding kernel process Date: 1995/10/29 Message-ID: #1/1 X-Deja-AN: 118247586 sender: news@news.cern.ch (USENET News System) x-nntp-posting-host: ues5.cern.ch references: <46ogfh$c1k@asbe05.phx1.aro.allied.com> <46p334$ka1@nntp5.u.washington.edu> organization: CERN European Lab for Particle Physics newsgroups: comp.unix.osf.osf1,comp.windows.x In <46p334$ka1@nntp5.u.washington.edu> mkkuhner@phylo.genetics.washington.edu (Mary K. Kuhner) writes: >We are running OSF/1 on an Alphastation 400 4/233 and have been for >some time. We have a recurring problem with a kernel process >that gets bigger and bigger until we're forced to reboot to salvage >the space. The "ps aux" entry looks like this: > >USER PID %CPU %MEM VSZ RSS TTY S STARTED TIME COMMAND >root 0 0.0 16.6 155M 10M ?? R < Sep 15 52:20.19 [kernel idle] > >This is under 2 months' growth and is getting around to the point of >seriously impacting system speed and swap space (we regularly get >"only 10% swap space left" errors). Time to reboot yet again.... > >Why does the kernel grow like this? How can we limit its relentless growth? You're looking at a red herring. The virtual size of the kernel is, on all DEC OSF/1 systems I've seen, physical memory + swap space configured - epsilon. This is definitely not the source of your problems. For example, on my system, with 64 MB RAM and 128 MB swap: USER PID %CPU %MEM VSZ RSS TTY S STARTED TIME COMMAND root 0 0.0 22.2 184M 144 ?? R < Oct 18 51:26.18 [kernel idle] But if I look at the usage of the swap space, I see: ues5:~/tmp 15> swapon -s Swap partition /dev/rz1b: Allocated space: 16384 pages (128MB) In-use space: 3362 pages ( 20%) Free space: 13022 pages ( 79%) Plenty of free swap space (well, I use lazy swap allocation). To spot your real problem, look for other processes which use a lot of virtual memory. Some of them might have memory leaks. Killing and restarting them on a regular basis will avoid the need to reboot the machine. Dan -- Dan Pop CERN, CN Division Email: Dan.Pop@mail.cern.ch Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland