LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-26-2003, 11:31 PM   #1
zapp
LQ Newbie
 
Registered: May 2003
Distribution: slackware
Posts: 21

Rep: Reputation: 15
I thought linux was low on resources?


Can anyone tell me why 94% of my memory is in use?
As you can tell from my top output, I don't have much running - fvwm2 as the windowmanager, an opera 7 session, and thats about it.
In Windows XP, I can have 10x that running and still keep memory usage under 40%. what gives?

To make matters worse, the %MEM column of top hardly adds up to 94%

Code:
Tasks:  51 total,   3 running,  47 sleeping,   1 stopped,   0 zombie
Cpu(s):  11.3% user,   3.3% system,   0.0% nice,  85.4% idle
Mem:    516044k total,   490632k used,    25412k free,   205044k buffers
Swap:   128484k total,     3172k used,   125312k free,   111116k cached
                                                                                    
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 1124 root      19   0  278m  21m 6900 R  8.0  4.2   3:46.35 X
 6238 aj        18   0 11660  11m 8244 S  3.3  2.3   0:02.71 gnome-terminal
 1463 aj        11   0 27400  26m 9844 R  1.7  5.3   1:44.77 opera
 6245 aj        10   0   984  984  800 R  0.3  0.2   0:00.22 top
    1 root       8   0    76   64   48 S  0.0  0.0   0:04.78 init
    2 root       9   0     0    0    0 S  0.0  0.0   0:00.31 keventd
    3 root      19  19     0    0    0 S  0.0  0.0   0:00.83 ksoftirqd_CPU0
    4 root       9   0     0    0    0 S  0.0  0.0   0:01.93 kswapd
    5 root       9   0     0    0    0 S  0.0  0.0   0:00.00 bdflush
    6 root       9   0     0    0    0 S  0.0  0.0   0:00.05 kupdated
    7 root       9   0     0    0    0 S  0.0  0.0   0:00.04 khubd
   10 root       9   0     0    0    0 S  0.0  0.0   0:13.38 kjournald
  149 root       9   0   536  524  468 S  0.0  0.1   0:00.00 dhcpcd
  182 root       9   0     0    0    0 S  0.0  0.0   0:13.17 msp3410 [auto]
  506 rpc        9   0   564  560  484 S  0.0  0.1   0:00.01 rpc.portmap
  512 root       9   0   612  612  528 S  0.0  0.1   0:00.11 syslogd
  515 root       9   0   460  460  400 S  0.0  0.1   0:00.09 klogd
  517 root       9   0   520  520  460 S  0.0  0.1   0:00.01 inetd
  520 root       9   0  1120 1048  908 S  0.0  0.2   0:00.26 sshd
  529 lp         9   0  1044  904  828 S  0.0  0.2   0:00.00 lpd
  532 root       8   0   592  588  520 S  0.0  0.1   0:00.02 crond
  534 daemon     9   0   652  636  580 S  0.0  0.1   0:00.00 atd
  537 root       9   0  1368 1196 1012 S  0.0  0.2   0:00.27 sendmail
  539 smmsp      9   0  1252 1084  916 S  0.0  0.2   0:00.01 sendmail
  544 root       8   0  1332 1332 1048 S  0.0  0.3   0:00.06 bash
  545 aj         9   0  1244  972  972 S  0.0  0.2   0:00.00 bash
  546 root       9   0   472  416  416 S  0.0  0.1   0:00.00 agetty
  547 root       9   0   472  416  416 S  0.0  0.1   0:00.00 agetty
  548 root       9   0   472  416  416 S  0.0  0.1   0:00.00 agetty
  549 root       9   0   472  416  416 S  0.0  0.1   0:00.00 agetty
 1111 aj         9   0   940  812  812 S  0.0  0.2   0:00.00 startx
 1123 aj         9   0   628  556  556 S  0.0  0.1   0:00.00 xinit
 1128 aj         9   0  1884 1872 1492 S  0.0  0.4   0:03.01 fvwm2
 1130 aj         9   0  1088 1032  964 S  0.0  0.2   0:00.40 FvwmPager
 1168 aj         9   0  1704 1640 1552 S  0.0  0.3   0:01.33 xscreensaver
 1353 root       9   0  2744 2744 2016 S  0.0  0.5   0:01.99 xterm
 1354 aj         9   0  1400 1400 1068 S  0.0  0.3   0:00.24 bash
 1366 aj         9   0  1132 1132  976 S  0.0  0.2   0:00.25 FvwmWinList
 1461 aj         9   0  1024 1024  864 S  0.0  0.2   0:00.01 opera
 1464 aj         9   0   540  540  460 S  0.0  0.1   0:00.04 FvwmAuto
 1465 aj         9   0 27400  26m 9844 S  0.0  5.3   0:00.22 opera
 1541 aj         9   0  1488 1488 1296 S  0.0  0.3   0:00.11 oclock
 6179 aj         9   0 43156  42m 3464 T  0.0  8.4   1:17.66 mplayer
 6185 root       9   0  2436 2436 1968 S  0.0  0.5   0:00.04 xterm
 6186 aj         8   0  1308 1308 1036 S  0.0  0.3   0:00.04 bash
 6240 aj         9   0  3060 3060 1940 S  0.0  0.6   0:00.15 gconfd-2
 6242 aj         9   0  2532 2532 1932 S  0.0  0.5   0:00.23 bonobo-activati
 6243 aj         9   0   640  640  556 S  0.0  0.1   0:00.00 gnome-pty-helpe
 6244 aj         9   0  1252 1252  988 S  0.0  0.2   0:00.01 bash
 6247 aj         9   0 12096  11m 7716 S  0.0  2.3   0:00.99 gnome-help
 6258 aj         8   0 12096  11m 7716 S  0.0  2.3   0:00.00 gnome-help
 
Old 05-26-2003, 11:38 PM   #2
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 57
Linux memory management is different (and much more efficient) than Windows in memory management.

# Memory and swap information
free
An article: Tips for Optimizing Linux Memory
 
Old 05-27-2003, 12:15 AM   #3
zapp
LQ Newbie
 
Registered: May 2003
Distribution: slackware
Posts: 21

Original Poster
Rep: Reputation: 15
Thanks. that makes a lot of sense actually. I guess i've just spent too much time in windows watching memory carefully to make sure I don't end up paging to disk.
 
Old 05-27-2003, 12:20 AM   #4
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Next time do a search.
 
Old 05-27-2003, 12:42 AM   #5
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 57
It always puzzled me why windows looks to the swap file first rather than last. And why did they use a file to create fragmentation rather than a partition for it???
 
Old 05-27-2003, 06:29 AM   #6
kazuni
Member
 
Registered: May 2003
Location: Hong Kong
Distribution: Android on HTC Hero
Posts: 256

Rep: Reputation: 30
Quote:
Originally posted by fancypiper
It always puzzled me why windows looks to the swap file first rather than last. And why did they use a file to create fragmentation rather than a partition for it???
that's why it's called windows
 
Old 05-27-2003, 11:02 AM   #7
Half_Elf
Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 45
btw, you seem to have a lot of useful stuff running....
I don't think you need rpc.portmap as example... If you worry about ressource maybe you should close some useful service?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
A thought on Linux and gaming Abe_the_Man Linux - Games 627 04-17-2004 09:41 PM
i thought linux doesn't crash phishintrip Linux - Software 9 07-10-2003 06:10 PM
thought linux was meant to be stable ?? qwijibow Linux - Newbie 10 05-28-2003 12:22 AM
And I thought Linux was meant to be GOOD? 5aboy Linux - Newbie 34 05-22-2003 06:39 PM
I thought Linux was stable - Mandrake 8.0 Herodotus Linux - Newbie 2 08-24-2001 12:33 PM


All times are GMT -5. The time now is 08:23 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration