Date: Sat, 31 Jul 1999 21:02:22 +0300 From: Evren Yurtesen <yurtesen@ispro.net.tr> To: freebsd-questions@freebsd.org Subject: memory usage Message-ID: <37A33A2E.DDF9AFEA@ispro.net.tr>
next in thread | raw e-mail | index | archive | help
Hello, I am using FreeBSD for our proxy machine and squid for the proxy program. The machine has 256MB memory and squid's size is just 130MB but if I start a program lets say which uses 10MB memory I see that the used swap space is moving from 5MB to 100MB I believe that FreeBSD is putting squid process to swap for some reason and if I shutdown squid and restart it everything changes back to normal. I wonder if I had 512MB ram and the squid was occupying 400MB memory and if I start another application then FreeBSD will try to move squid into swap? but I only have 256MB swap space. What may happen in that condition? thanks! Evren here is the output from the top command last pid: 2082; load averages: 0.01, 0.03, 0.00 up 56+07:19:32 21:14:13 23 processes: 1 running, 22 sleeping CPU states: 0.4% user, 0.0% nice, 0.0% system, 0.4% interrupt, 99.2% idle Mem: 69M Active, 69M Inact, 67M Wired, 28K Cache, 8351K Buf, 45M Free Swap: 256M Total, 100M Used, 156M Free, 39% Inuse PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND 66845 root 2 0 136M 112M poll 13:41 0.44% 0.44% squid 186 root 10 0 916K 212K nanslp 5:58 0.00% 0.00% upsmon 55520 bind 2 0 3148K 2136K select 2:27 0.00% 0.00% named 97 root 2 0 816K 324K select 1:07 0.00% 0.00% syslogd 61778 root 10 0 508K 244K wait 0:30 0.00% 0.00% sh 142 root 10 0 980K 224K nanslp 0:21 0.00% 0.00% cron 139 root 2 0 860K 188K select 0:09 0.00% 0.00% inetd 66846 nobody 2 0 984K 332K sbwait 0:02 0.00% 0.00% dnsserver 66851 nobody -6 0 748K 216K piperd 0:01 0.00% 0.00% unlinkd 1 root 10 0 420K 124K wait 0:00 0.00% 0.00% init 97874 yurtesen 18 0 1244K 0K pause 0:00 0.00% 0.00% <tcsh> 98149 root 18 0 1220K 720K pause 0:00 0.00% 0.00% tcsh 97873 root 2 0 880K 128K select 0:00 0.00% 0.00% telnetd 66847 nobody 2 0 984K 0K sbwait 0:00 0.00% 0.00% <dnsserver> 2082 root 28 0 1568K 864K RUN 0:00 0.00% 0.00% top 66848 nobody 2 0 984K 0K sbwait 0:00 0.00% 0.00% <dnsserver> 66849 nobody 2 0 984K 0K sbwait 0:00 0.00% 0.00% <dnsserver> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?37A33A2E.DDF9AFEA>