LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-01-2006, 06:22 AM   #1
newio
Member
 
Registered: May 2006
Location: Sydney
Distribution: Slackware 11.0
Posts: 39

Rep: Reputation: 15
Memory Usage


Hi All,

Im trying to find out why Enemy Territory runs so bad in outdoor areas of the game (20fps, indoors 90fps). Quake 4 and Doom 3 both run fine on my machine.

Anyways, i was looking at my memory usage, and noticed there is only 40MB of free memory when nothing but the system is in use. This goes opposite to my Windows knowledge where there is always memory available. Is there something im missing

/proc/meminfo
Code:
total:    used:    free:  shared: buffers:  cached:
Mem:  926228480 905764864 20463616        0 45387776 606560256
Swap: 2048376832  8069120 2040307712
MemTotal:       904520 kB
MemFree:         19984 kB
MemShared:           0 kB
Buffers:         44324 kB
Cached:         585148 kB
SwapCached:       7196 kB
Active:         237152 kB
Inactive:       399600 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:       904520 kB
LowFree:         19984 kB
SwapTotal:     2000368 kB
SwapFree:      1992488 kB
ps -ef
Code:
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 May31 ?        00:00:03 init [3]
root         2     1  0 May31 ?        00:00:00 [keventd]
root         3     1  0 May31 ?        00:00:02 [ksoftirqd_CPU0]
root         4     1  0 May31 ?        00:00:01 [kswapd]
root         5     1  0 May31 ?        00:00:00 [bdflush]
root         6     1  0 May31 ?        00:00:00 [kupdated]
root        10     1  0 May31 ?        00:00:00 [mdrecoveryd]
root        11     1  0 May31 ?        00:00:00 [kreiserfsd]
root        62     1  0 May31 ?        00:00:00 /usr/sbin/syslogd
root        65     1  0 May31 ?        00:00:00 /usr/sbin/klogd -c 3 -x
root       308     1  0 May31 ?        00:00:00 /sbin/dhcpcd -d -t 60 -h slack e
root       416     1  0 May31 ?        00:00:00 [khubd]
root      4694     1  0 May31 ?        00:00:00 /usr/sbin/inetd
root      4698     1  0 May31 ?        00:00:00 /usr/sbin/sshd
root      4706     1  0 May31 ?        00:00:00 /usr/sbin/crond -l10
root      4709     1  0 May31 ?        00:00:00 sendmail: accepting connections
smmsp     4712     1  0 May31 ?        00:00:00 sendmail: Queue runner@00:25:00
root      4754     1  0 May31 ?        00:00:00 /usr/sbin/httpd
nobody    4767  4754  0 May31 ?        00:00:00 /usr/sbin/httpd
nobody    4768  4754  0 May31 ?        00:00:00 /usr/sbin/httpd
nobody    4769  4754  0 May31 ?        00:00:00 /usr/sbin/httpd
nobody    4770  4754  0 May31 ?        00:00:00 /usr/sbin/httpd
nobody    4771  4754  0 May31 ?        00:00:00 /usr/sbin/httpd
root      4775     1  0 May31 ?        00:00:00 /usr/sbin/gpm -m /dev/mouse -t i
pfowler   4789     1  0 May31 tty1     00:00:00 -bash
root      4790     1  0 May31 tty2     00:00:00 /sbin/agetty 38400 tty2 linux
root      4791     1  0 May31 tty3     00:00:00 /sbin/agetty 38400 tty3 linux
root      4792     1  0 May31 tty4     00:00:00 /sbin/agetty 38400 tty4 linux
root      4793     1  0 May31 tty5     00:00:00 /sbin/agetty 38400 tty5 linux
root      4801     1  0 May31 tty6     00:00:00 /sbin/agetty 38400 tty6 linux
pfowler   4828  4789  0 May31 tty1     00:00:00 /bin/sh /usr/X11R6/bin/startx
pfowler   4844  4828  0 May31 tty1     00:00:00 /usr/X11R6/bin/xinit /usr/X11R6/
root      4845  4844  0 May31 tty7     00:06:28 X :0 -auth /home/pfowler/.server
pfowler   4850  4844  0 May31 tty1     00:00:00 /bin/sh /usr/X11R6/lib/X11/xinit
pfowler   4851  4850  0 May31 tty1     00:00:00 /bin/sh /opt/kde/bin/startkde
pfowler   4882     1  0 May31 ?        00:00:00 kdeinit Running...
pfowler   4885     1  0 May31 ?        00:00:00 kdeinit: dcopserver --nosid
pfowler   4887  4882  0 May31 ?        00:00:00 kdeinit: klauncher
pfowler   4889     1  0 May31 ?        00:00:02 kdeinit: kded
pfowler   4899  4882  0 May31 ?        00:00:01 artsd -F 10 -S 4096 -s 60 -m art
pfowler   4901     1  0 May31 ?        00:00:00 kdeinit: kaccess
pfowler   4902  4851  0 May31 tty1     00:00:00 kwrapper ksmserver
pfowler   4904     1  0 May31 ?        00:00:00 kdeinit: ksmserver
pfowler   4905  4882  0 May31 ?        00:00:06 kdeinit: kwin -session 10de6c616
pfowler   4907     1  0 May31 ?        00:00:03 kdeinit: kdesktop
pfowler   4909     1  0 May31 ?        00:00:19 kdeinit: kicker
pfowler   4911     1  0 May31 ?        00:00:00 kdeinit: klipper
pfowler   4915     1  0 May31 ?        00:00:00 korgac --miniicon korganizer
pfowler   4917     1  0 May31 ?        00:00:00 kwalletmanager -session 10de6c61
pfowler   4919     1  0 May31 ?        00:00:15 kget -session 10de6c616300011471
pfowler   4922     1  0 May31 ?        00:00:00 kdeinit: kmix -session 10de6c616
pfowler   4928     1  0 May31 ?        00:00:00 kdeinit: knotify
pfowler   4933     1  0 May31 ?        00:00:29 kopete -session 10de6c6163000114
pfowler   4934  4899  0 May31 ?        00:00:00 artsd -F 10 -S 4096 -s 60 -m art
pfowler   4942  4933  0 May31 ?        00:00:00 kopete -session 10de6c6163000114
pfowler   5033     1  0 May31 ?        00:00:00 kdeinit: kio_uiserver
nobody    5174  4754  0 May31 ?        00:00:00 /usr/sbin/httpd
pfowler   6866  4889  0 May31 ?        00:00:00 kdeinit: kded
root      7536     1  0 May31 ?        00:00:00 /usr/sbin/smbd -D
root      7538  7536  0 May31 ?        00:00:00 /usr/sbin/smbd -D
root      7539     1  0 May31 ?        00:00:00 /usr/sbin/nmbd -D
root      7639  7536  0 May31 ?        00:00:01 /usr/sbin/smbd -D
pfowler  10934  4919  0 10:23 ?        00:00:00 kget -session 10de6c616300011471
pfowler  12114  4882  0 11:16 ?        00:00:01 kdeinit: konsole --ls
pfowler  12115 12114  0 11:16 pts/2    00:00:00 -bash
root     13334 12115  0 20:37 pts/2    00:00:00 bash
pfowler  13336  6866  0 20:37 ?        00:00:14 kdeinit: kded
pfowler  13438  4882  0 20:41 ?        00:00:00 kdeinit: kio_file file /tmp/ksoc
pfowler  13568  4889  5 21:08 ?        00:00:40 kaudiocreator system:/media/cdro
pfowler  13580  4882  3 21:08 ?        00:00:27 kdeinit: kio_file file /tmp/ksoc
pfowler  13581  4882  5 21:08 ?        00:00:42 kdeinit: kio_audiocd audiocd /tm
pfowler  13649  4882  4 21:18 ?        00:00:09 /usr/lib/opera/8.54-20060330.5/o
pfowler  13658 13649  0 21:18 ?        00:00:00 /usr/lib/opera/8.54-20060330.5/o
pfowler  13684 13568 72 21:21 ?        00:00:09 lame --preset standard --tt Swit
pfowler  13685  4933  0 21:21 ?        00:00:00 netstat -r
root     13686 13334  0 21:21 pts/2    00:00:00 ps -ef
 
Old 06-01-2006, 07:28 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you (presumably) paid good money for the memory sticks in your pc right? would you rather that the operating system completely ignored the space and waste that money, or would you rather that it saved old memory that it believes may be needed agani in order to improve performance of the system? i'd rather have the latter personally. That cached value is the old memory that, should more memory be needed for current processes that the older caches are removed.
 
Old 06-01-2006, 07:44 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,139

Rep: Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122Reputation: 4122
And if that was a little too acidic (sorry ... ), try this
 
Old 06-01-2006, 08:06 AM   #4
onedingo
Member
 
Registered: Jan 2006
Location: Pittsburgh, PA, US
Distribution: Arch
Posts: 69

Rep: Reputation: 20
One of the most useful things I have ever heard regarding memory:

"Free RAM is wasted RAM"
 
Old 06-01-2006, 09:42 AM   #5
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Linux is designed to use all your memory first as others have stated. I went out and bought 2 1gb dimm modules. System runs way better and memory is relatively cheap these days.

I noticed you have sendmail, ssh, http, samba and kde running... Personally, I'd kill all of that and run with fluxbox for ET... Atleast kill your network servers while your playing online games.
Know that doesn't help you too much but it's something to try anyway. I always got somewhat jerky performance with ET on Linux. Haven't tried it yet since I got a 6200 and more ram.

I have a 'Games' option on my grub bootloader and we all know what that is... Hmm... Kinda in the mood for ET now... Need a medic!!!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Memory Usage Spaw Usage Swappiness Issues joelunch Linux - Software 3 01-04-2006 06:16 PM
getting realtime info on memory usage-cpu and harddrive usage steering Linux - Newbie 5 03-03-2005 08:43 PM
Memory Usage mvvilleza Red Hat 3 02-27-2005 06:32 PM
how to determine cpu usage, memory usage, I/O usage by a particular user logged on li rags2k Programming 4 08-21-2004 04:45 AM
Controlling CPU usage & memory usage Saravana babu Linux - Software 0 02-18-2004 05:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration