LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-07-2005, 04:27 AM   #1
80n
LQ Newbie
 
Registered: Dec 2005
Posts: 4

Rep: Reputation: 0
Question memory seems overused (but doing nothing special)


Hello all.

My redHat9 box has 1Gig of ram, but when I monitor it with TOP after a restart, used memory continuously increases (starting at approx 100000k) and TOP finally shows this (half an hour after):

Code:
 09:52:19  up 30 min,  3 users,  load average: 2.06, 1.42, 0.76
83 processes: 79 sleeping, 4 running, 0 zombie, 0 stopped
CPU states:  23.2% user  76.6% system   0.0% nice   0.0% iowait   0.2% idle
Mem:  1029780k av, 1019688k used,   10092k free,       0k shrd,  247400k buff
                    435344k actv,  218600k in_d,   21016k in_c
Swap: 2040212k av,    1888k used, 2038324k free                  644544k cached

  PID USER     TTY      PRI  NI PAGEIN TSIZE DSIZE  SIZE SWAP  RSS SHARE   A   D WCHAN     STAT %
 4666 gdm      ?         15   0   2297   101  -89M 15576    0  15M  1436 NYI  3K schedule_ S     
 4652 root     ?         15   0    585  1487  -62M 65400  57M 6728   228 NYI 14K schedule_ S     
 5011 egt      pts/1     25   0    335   293 -119M  5172   12 5160   780 NYI   0           R    2
 4599 root     ?         15   0     80    10 -122M  3564    0 3564   668 NYI 173 schedule_ S     
 4425 apache   ?         15   0    170   289 -110M  2892   68 2824   468 NYI  17 semop     S     
 4426 apache   ?         15   0     76   289 -110M  2568    4 2564   184 NYI  48 schedule_ S     
 4556 xfs      ?         15   0    162    70 -123M  2528    0 2528    68 NYI 608 schedule_ S     
 4424 apache   ?         15   0     57   289 -110M  2424    0 2424     0 NYI  28 semop     S     
 4403 root     ?         15   0    531   289 -110M  2412    0 2412    48 NYI  12 schedule_ S     
 4431 apache   ?         23   0     30   289 -110M  2396    0 2396    12 NYI  48 semop     S     
 4430 apache   ?         23   0     30   289 -110M  2392    0 2392     8 NYI  48 semop     S     
 4310 ntp      ?         15   0    403   298 -126M  2384    0 2384  2152 NYI  58 schedule_ S     
 4427 apache   ?         23   0     30   289 -110M  2384    0 2384     0 NYI  48 semop     S     
 4428 apache   ?         23   0     30   289 -110M  2384    0 2384     0 NYI  48 semop     S     
 4429 apache   ?         23   0     30   289 -110M  2384    0 2384     0 NYI  48 semop     S     
 4569 root     ?         15   0    141   505 -124M   924    0  924   356 NYI  35 schedule_ S     
 4423 root     ?         15   0    274   222 -120M   900    0  900   224 NYI 145 schedule_ S     
 4734 egt      pts/0     15   0    528    41 -123M   848    0  848   504 NYI  86           R     
 4651 root     ?         18   0     89   169 -114M   700    0  700     0 NYI  16 pipe_wait S     
 4373 root     ?         15   0    111   635 -123M  1012  336  676   364 NYI  19 schedule_ S     
 4948 egt      pts/1     15   0    289   293 -123M   676    0  676    36 NYI  12 rt_sigsus S     
 4669 egt      ?         15   0    104   265 -121M   768  112  656   176 NYI  29           R     
 4737 egt      ?         15   0    104   265 -121M   752  100  652   176 NYI  23 schedule_ S     
 4252 root     ?         25   0     13    27 -108M   704   56  648   576 NYI  14 schedule_ S     
 4608 root     ?         18   0   1383   169 -114M   632    0  632     0 NYI  16 schedule_ S     
 4565 root     ?         25   0     16  1595 -124M   616    0  616     4 NYI  26 schedule_ S     
 4296 root     ?         24   0    102   129 -126M   696  120  576   572 NYI   0 schedule_ S 
 4183 rpcuser  ?         25   0    115    27 -126M   640   80  560   560 NYI   0 schedule_ S     
 4164 rpc      ?         15   0    105    10 -126M   576   20  556   496 NYI  11 schedule_ S     
 4382 smmsp    ?         25   0      9   635 -123M   532    8  524     0 NYI  22 pause     S     
 4282 root     ?         15   0     27   265 -125M   732  220  512   488 NYI   4 schedule_ S     
 4150 root     ?         15   0     66    24 -126M   544   40  504   468 NYI   5 schedule_ S     
 4807 egt      ?         15   0     60   265 -121M   576  112  464     0 NYI  23 schedule_ S     
    1 root     ?         22   0    126    23 -126M   472   20  452   420 NYI   6 schedule_ S     
 4236 root     ?         24   0     21    14 -126M   476   44  432   428 NYI   0 schedule_ S     
 4529 mysql    ?         24   0    480  3633 -111M   432    0  432    16 NYI 104 schedule_ S     
 4544 mysql    ?         15   0      6  3633 -111M   432    0  432    16 NYI 104 schedule_ S     
 4545 mysql    ?         20   0      0  3633 -111M   432    0  432    16 NYI 104 rt_sigsus S     
 4740 egt      pts/1     15   0    338   588 -124M   404    0  404     0 NYI  15 wait4     S     
 4811 egt      pts/2     15   0    338   588 -124M   400    0  400     0 NYI  44 schedule_ S     
 4671 egt      pts/0     23   0    334   588 -124M   392    0  392     0 NYI  18 wait4     S     
 4154 root     ?         15   0     25    18 -126M   408   48  360   356 NYI   0 do_syslog S     
 4475 root     ?         25   0    274   588 -124M   196    0  196    24 NYI  16 wait4     S     
 4587 daemon   ?         15   0     39    12 -126M   180    0  180   120 NYI  12 schedule_ S     
 4412 root     ?         15   0     74    19 -126M   160    0  160    88 NYI   8 schedule_ S     
 4392 root     ?         15   0     29    56 -126M    84    0   84    36 NYI  10 schedule_ S     
 4602 root     tty1      22   0    100     6 -126M    48    0   48     0 NYI  12 schedule_ S     
 4603 root     tty2      22   0    100     6 -126M    48    0   48     0 NYI  12 schedule_ S     
 4604 root     tty3      22   0    100     6 -126M    48    0   48     0 NYI  12 schedule_ S     
 4605 root     tty4      22   0    100     6 -126M    48    0   48     0 NYI  12 schedule_ S     
 4606 root     tty5      22   0    100     6 -126M    48    0   48     0 NYI  12 schedule_ S     
 4607 root     tty6      22   0    100     6 -126M    48    0   48     0 NYI  12 schedule_ S     
 4351 root     ?         15   0    122    65 -126M    92   52   40    20 NYI   2 schedule_ S     
 4324 root     ?         25   0      0    53 -124M   104   72   32    28 NYI   0 schedule_ S     
 4341 root     ?         25   0      0    40 -126M   124  108   16    12 NYI   0 schedule_ S     
13166 egt      pts/1     25   0      4    15 -128M    16    0   16     0 NYI   4           R

for you linux gurus , here is some more info :

VMSTAT shows this:

Code:
[egt@bidule egt]$ vmstat 
   procs                      memory      swap          io     system      cpu
 r  b  w   swpd   free   buff  cache   si   so    bi    bo   in    cs us sy id
 2  0  0   1920   9928 247424 644608    0    1   451   546  182   189  2  6 92
FREE shows this:

Code:
[egt@bidule egt]$ free -m
             total       used       free     shared    buffers     cached
Mem:          1005        996          9          0        243        591
-/+ buffers/cache:        160        845
Swap:         1992          3       1988
Is this normal? not normal ? In that case, what must be done?

Thanx, all!
 
Old 12-07-2005, 04:39 AM   #2
Furlinastis
Member
 
Registered: Dec 2004
Location: Ball of Confusion
Distribution: Slackware,Bluewhite64
Posts: 252

Rep: Reputation: 30
My understanding is that the buffers/cache row of free -m is what is actually being used. I don't know exactly why that is though.
 
Old 12-07-2005, 05:00 AM   #3
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 57
The linux kernel keeps stuff in memory rather than dumping it incase it's to be used later on. This way subsequent loads of a program are significantly quicker because everything needed is already in RAM waiting to go. It will either dump data or page it to swap if needed so while it looks like all your memory is being used it's actually not. Make sense?
 
Old 12-07-2005, 05:11 AM   #4
80n
LQ Newbie
 
Registered: Dec 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by cs-cam
The linux kernel keeps stuff in memory rather than dumping it incase it's to be used later on. This way subsequent loads of a program are significantly quicker because everything needed is already in RAM waiting to go. It will either dump data or page it to swap if needed so while it looks like all your memory is being used it's actually not. Make sense?

so... everything is fine, then ?
 
Old 12-07-2005, 05:16 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,049

Rep: Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915Reputation: 1915
Short answer, go find a real problem to worry about.
As above, Linux attempts to utilise "unused/extra" memory as disk cache amongst other things. Use it or ????. Or what - what would you rather ...

Trust the vm folks - they seem to get it right most if the time.

Presumably you're on a 2.4 kernel, but I see no evidence of a problem there.
 
Old 12-07-2005, 05:30 AM   #6
80n
LQ Newbie
 
Registered: Dec 2005
Posts: 4

Original Poster
Rep: Reputation: 0
well, thank you guys!

it is nice to have quick and cristal clear answers!

CU!
 
  


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
block special and character special files s_shenbaga Linux - Newbie 4 06-23-2015 03:16 AM
tool to detect number of memory slots, memory module type, speed, and size stefanwolf Linux - Hardware 8 04-22-2013 10:48 AM
Memory Leak when using memory debugging C program on SuSE SLES8 babalina Linux - Distributions 0 10-06-2003 10:39 AM
Help!?! RH 8 Memory Mapping -High Memory-Virtural Memory issues.. Merlin53 Linux - Hardware 2 06-18-2003 05:48 PM
RH 8.0 Mapping Virtual Memory to get access to VMIC Reflective Memory PCI card. Merlin53 Linux - Hardware 0 05-05-2003 01:50 PM


All times are GMT -5. The time now is 04:17 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration