From owner-freebsd-current Sun Jan 28 17:58:16 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id RAA18180 for current-outgoing; Sun, 28 Jan 1996 17:58:16 -0800 (PST) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id RAA18166 Sun, 28 Jan 1996 17:57:42 -0800 (PST) Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id MAA03073; Mon, 29 Jan 1996 12:54:31 +1100 Date: Mon, 29 Jan 1996 12:54:31 +1100 From: Bruce Evans Message-Id: <199601290154.MAA03073@godzilla.zeta.org.au> To: dyson@freebsd.org Subject: too many cached pages for profiled kernel Cc: current@freebsd.org Sender: owner-current@freebsd.org Precedence: bulk I booted a profiling kernel by mistake and was surprised when it was extremely slow because of heavy swapping. The profile buffers take 1.7MB and `Cache' takes 2.5MB so an 8MB system was reduced to < 4MB. I've never seen so much memory allocated for `Cache' before, and the same profiling kernel runs normally (without anything in `Cache') on a 16MB system. `68Kout' in the top output should be formatted better. Bruce load averages: 0.14, 0.14, 0.09 09:57:13 19 processes: 1 running, 18 sleeping Cpu states: 1.4% user, 0.0% nice, 18.8% system, 4.8% interrupt, 74.9% idle Mem: 272K Active, 12K Inact, 3360K Wired, 2488K Cache, 509K Buf, 60K Free Swap: 33M Total, 6736K Used, 27M Free, 20% Inuse 68Kout PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 217 bde 30 0 292K 264K RUN 0:01 5.33% 3.05% top 215 root 10 0 844K 28K wait 0:00 5.47% 0.76% 164 bde 10 0 844K 28K wait 0:01 0.77% 0.57% 218 root 18 0 136K 20K pause 0:00 0.00% 0.00% 119 root 18 0 236K 12K pause 0:00 0.00% 0.00% 26 root 18 0 140K 12K pause 0:00 0.00% 0.00% 163 bde 10 0 844K 28K wait 0:03 0.00% 0.00% 1 root 10 0 180K 12K wait 0:00 0.00% 0.00% 108 root 10 0 144K 12K nfsidl 0:00 0.00% 0.00% 109 root 10 0 144K 12K nfsidl 0:00 0.00% 0.00% 107 root 10 0 144K 12K nfsidl 0:00 0.00% 0.00% 106 root 10 0 144K 12K nfsidl 0:00 0.00% 0.00% 165 root 3 0 156K 20K ttyin 0:00 0.00% 0.00% 166 root 3 0 156K 20K ttyin 0:00 0.00% 0.00% 97 daemon 2 0 176K 16K select 0:00 0.00% 0.00% 124 root 2 0 480K 12K accept 0:00 0.00% 0.00% 121 root 2 0 192K 12K select 0:00 0.00% 0.00% 112 root 2 0 192K 12K select 0:01 0.00% 0.00% --- 2 users Load 0.21 0.17 0.10 Mon Jan 29 09:58 Mem:KB REAL VIRTUAL VN PAGER SWAP PAGER Interrupts Tot Share Tot Share Free in out in out 240 total Act 2068 1020 432 56 2484 count 3 99 clk0 irq0 All 6136 4016 1484 308 pages 3 127 rtc0 irq8 cow fdc0 irq6 Proc:r p d s w Csw Trp Sys Int Sof Flt zfod 14 wdc0 irq14 2 4 21 13 7 244 10 11 3384 wire sc0 irq1 248 act sio1 irq3 3.3%Sys 0.7%Intr 0.3%User 0.0%Nice 95.7%Idl 72 inact ed0 irq15 | | | | | | | | | | 2428 cache == 60 free daefr Namei Name-cache Proc-cache prcfr Calls hits % hits % 11 react 10 pdwake 2408 pdpgs Discs fd1 wd0 intrn seeks 3 528 buf xfers 3 blks 7 msps 7.3