Mail from ILUG-BOM list (Non-Digest Mode)
_______________________________________________
Hello,
I have quite a wierd question. I hope I am able to put it in a right
way. Here goes.
On giving the command,
[rajen@localhost ~]$ free
total used free shared buffers cached
Mem: 95344 66228 29116 13248 2648 52828
-/+ buffers/cache: 10752 84592
Swap: 137816 0 137816
it be seen almost 80 % of used memory is cached. In above, the reason is
that mpg123 has been playing for around half an hour and the songs once
played seems to be getting cached. Otherwise, not many processes are
working, as can be seen below,
[rajen@localhost ~] ps -ef
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 22:09 ? 00:00:05 init
root 2 1 0 22:09 ? 00:00:00 [kflushd]
root 3 1 0 22:09 ? 00:00:00 [kupdate]
root 4 1 0 22:09 ? 00:00:00 [kpiod]
root 5 1 0 22:09 ? 00:00:00 [kswapd]
root 6 1 0 22:09 ? 00:00:00 [mdrecoveryd]
root 253 1 0 22:10 ? 00:00:00 syslogd -m 0
root 262 1 0 22:10 ? 00:00:00 klogd
root 276 1 0 22:10 ? 00:00:00 lpd
root 322 1 0 22:10 ? 00:00:00 sendmail: accepting connections
wwwoffle 338 1 0 22:10 ? 00:00:00 /usr/sbin/wwwoffled -c /etc/wwwo
xfs 395 1 0 22:10 ? 00:00:00 xfs -droppriv -daemon -port -1
root 413 1 0 22:10 tty1 00:00:00 login -- rajen
root 414 1 0 22:10 tty2 00:00:00 login -- raj
root 415 1 0 22:10 tty3 00:00:00 login -- rajen
root 416 1 0 22:10 tty4 00:00:00 /sbin/mingetty tty4
root 417 1 0 22:10 tty5 00:00:00 /sbin/mingetty tty5
root 418 1 0 22:10 tty6 00:00:00 /sbin/mingetty tty6
rajen 421 413 0 22:10 tty1 00:00:00 -bash
raj 443 414 0 22:10 tty2 00:00:00 -bash
rajen 494 415 0 22:33 tty3 00:00:00 -bash
rajen 563 494 4 22:34 tty3 00:01:41 mpg123-qz/win/mp3/(Jo Jeeta Wo
rajen 565 1 1 22:34 ? 00:00:28 esd -terminate -nobeeps-as2 -s
rajen 602 421 0 22:35 tty1
rajen 662 421 0 23:18 tty1 00:00:00 ps -ef
Similarly, when I start the X server, or for that matter, any programs,
then most of the processes remain cached even after stopping it. This
probably how the system operates and uses memory. But the problem starts
when there is no RAM left. The system starts using the swap space instead
of freeing cached memory. My question is that, isn't there a way to tell
the system to clear part of cached memory instead of using swap sapce ?
Or, can we free up any used memory which is cached? [This I doubt]
Rajen.
_______________________________________________
Next Meet on 12th Nov 2000 at HBCSE
Website: http://www.ilug-bom.org.in/
Linuxers mailing list [EMAIL PROTECTED]
http://ilug-bom.org.in/mailman/listinfo/linuxers
CHAT: irc.ilug-bom.org.in