Re: [expert] huge memory usage!

2001-06-26 Thread Laurent Duperval

On 31 May, Sarang Lakare wrote:
 You are indeed missing something--look at the amount used for buffers and
 cache.  This can be freed by the system when a program issues a malloc()
 call.  It can be grabbed again from the free memory pool when the program
 releases it and turned to the same purpose, making your machine run faster.
 
 Yes.. agreed.. I know it.. but look at this :
 
  [root@vv17 /root]# free
   total   used   free sharedbuffers cached
  Mem:899952 556784 343168  0 170032 265936
  -/+ buffers/cache: 120816 779136
  Swap:  1791208 1184081672800
  [root@vv17 /root]#
 
 This is how I interpret it :
 
 total used = 556MB
 buffers = 170MB
 cached = 256MB
 

Try the attached file. I thought it gave interesting information.

L

-- 
Laurent Duperval mailto:[EMAIL PROTECTED]

Ce sabot pensant de Kid Ordinn a failli ruiner la réputation du Sud.
Heureusement que je suis là! C'est une questiond de patriotisme!
  -Dog Bull

 analyse-x.pl


[expert] huge memory usage!

2001-05-30 Thread Sarang Lakare

Can anybody please explain this? I don't have X running on this machine. I am 
showing the output of top sorted by memory usage here. Why is free showing 
120MB used??

I am observing this on all the three LM8.0 machines that I have and this 
could be serious. Am I missing something here?

Thanks in advance
sarang


  3:31pm  up 5 days,  2:09,  2 users,  load average: 0.00, 0.00, 0.00
54 processes: 53 sleeping, 1 running, 0 zombie, 0 stopped
CPU0 states:  0.0% user,  0.1% system,  0.0% nice, 99.4% idle
CPU1 states:  0.0% user,  0.0% system,  0.0% nice, 100.0% idle
Mem:   899952K av,  556948K used,  343004K free,   0K shrd,  170032K buff
Swap: 1791208K av,  118408K used, 1672800K free  265936K 
cached
 
  PID USER PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
 1081 squid 14   0  3952 2724  2076 S 0.0  0.3   2:37 squid
13363 root   9   0  1692 1588  1312 S 0.0  0.1   0:00 sshd
13366 root  15   0  1584 1584  1156 S 0.0  0.1   0:00 bash
13403 root  19   0  1204 1204   972 R 0.1  0.1   0:00 top
13354 postfix9   0   804  804   684 S 0.0  0.0   0:00 pickup
11206 sarang 8   0  1084  528   528 S 0.0  0.0   0:00 csh
 1154 root   9   0  2512  460   228 S 0.0  0.0   0:03 miniserv.pl
 1005 postfix9   0   488  416   416 S 0.0  0.0   0:01 qmgr
  821 root   9   0   376  316   316 S 0.0  0.0   0:00 rpc.mountd
  636 rpc9   0   264  240   240 S 0.0  0.0   0:00 portmap
11204 root   9   0   564  216   216 S 0.0  0.0   0:00 sshd
  763 root   9   0   368  180   156 S 0.0  0.0   0:00 sshd
  648 root   9   0   232  176   176 S 0.0  0.0   0:00 syslogd
 1079 mysql  9   0  2736  16416 S 0.0  0.0   0:00 mysqld
 1134 mysql  9   0  2736  16416 S 0.0  0.0   0:01 mysqld
 1135 mysql  9   0  2736  16416 S 0.0  0.0   0:00 mysqld
 1153 mysql  9   0  2736  16416 S 0.0  0.0   0:00 mysqld
11508 sarang 9   0   348  132   132 S 0.0  0.0   0:06 xosview
  686 root   9   0   184  128   128 S 0.0  0.0   0:01 ypbind
 1001 root   9   0   208  12496 S 0.0  0.0   0:01 master
 1036 root  10   0   172  11296 S 0.0  0.0   0:00 crond
1 root   9   0   120   7676 S 0.0  0.0   0:07 init
 1108 xfs9   0  2128   5252 S 0.0  0.0   0:00 xfs
  782 root   9   0   200   20 4 S 0.0  0.0   0:00 xinetd
 1047 root   9   0   1848 4 S 0.0  0.0   0:00 safe_mysqld
  657 root   9   0   6324 4 S 0.0  0.0   0:00 klogd
  672 rpcuser9   0   1164 4 S 0.0  0.0   0:00 rpc.statd
  685 root   9   0844 4 S 0.0  0.0   0:00 ypbind
  812 root   9   0724 4 S 0.0  0.0   0:00 rpc.rquotad
 1080 root   9   0   1884 4 S 0.0  0.0   0:00 squid
 1173 root   9   0644 4 S 0.0  0.0   0:00 mingetty
 1174 root   9   0644 4 S 0.0  0.0   0:00 mingetty
 1175 root   9   0644 4 S 0.0  0.0   0:00 mingetty
 1176 root   9   0644 4 S 0.0  0.0   0:00 mingetty
 1177 root   9   0644 4 S 0.0  0.0   0:00 mingetty
 1178 root   9   0644 4 S 0.0  0.0   0:00 mingetty
2 root   8   0 00 0 SW0.0  0.0   0:00 keventd
3 root   9   0 00 0 SW0.0  0.0   0:25 kswapd
4 root   9   0 00 0 SW0.0  0.0   0:00 kreclaimd
5 root   9   0 00 0 SW0.0  0.0   0:03 bdflush



[root@vv17 /root]# free
 total   used   free sharedbuffers cached
Mem:899952 556784 343168  0 170032 265936
-/+ buffers/cache: 120816 779136
Swap:  1791208 1184081672800
[root@vv17 /root]#

[root@vx17 /root]# cat /proc/meminfo
total:used:free:  shared: buffers:  cached:
Mem:  921550848 570155008 3513958400 174112768 272318464
Swap: 1834196992 121249792 1712947200
MemTotal:   899952 kB
MemFree:343160 kB
MemShared:   0 kB
Buffers:170032 kB
Cached: 265936 kB
Active:   7248 kB
Inact_dirty:426376 kB
Inact_clean:  2344 kB
Inact_target:4 kB
HighTotal:   0 kB
HighFree:0 kB
LowTotal:   899952 kB
LowFree:343160 kB
SwapTotal: 1791208 kB
SwapFree:  1672800 kB

-
Sarang Lakare

http://www.cs.sunysb.edu/~lsarang
http://www.linux.org




Re: [expert] huge memory usage!

2001-05-30 Thread Wes Yates

Can anybody please explain this? I don't have X running on this machine. I am
showing the output of top sorted by memory usage here. Why is free showing
120MB used??

I am observing this on all the three LM8.0 machines that I have and this
could be serious. Am I missing something here?

Thanks in advance
sarang



[root@vv17 /root]# free
  total   used   free sharedbuffers cached
Mem:899952 556784 343168  0 170032 265936
-/+ buffers/cache: 120816 779136
Swap:  1791208 1184081672800
[root@vv17 /root]#

[root@vx17 /root]# cat /proc/meminfo
 total:used:free:  shared: buffers:  cached:
Mem:  921550848 570155008 3513958400 174112768 272318464
Swap: 1834196992 121249792 1712947200
MemTotal:   899952 kB
MemFree:343160 kB
MemShared:   0 kB
Buffers:170032 kB
Cached: 265936 kB
Active:   7248 kB
Inact_dirty:426376 kB
Inact_clean:  2344 kB
Inact_target:4 kB
HighTotal:   0 kB
HighFree:0 kB
LowTotal:   899952 kB
LowFree:343160 kB
SwapTotal: 1791208 kB
SwapFree:  1672800 kB

-
Sarang Lakare

http://www.cs.sunysb.edu/~lsarang
http://www.linux.org

I'd like to see if its the same in runlevel 1. I'm on Red Hat 7.1 
(couldn't install LM8) and memory usage is through the roof.


-Wes Yates
-- 

-Wes Yates
[EMAIL PROTECTED]
http://www.artsengraving.com/~wyates

No, I will _not_ fix your computer.




Re: [expert] huge memory usage!

2001-05-30 Thread Alexander Skwar

So sprach Sarang Lakare am Wed, May 30, 2001 at 03:28:22PM -0400:
 Can anybody please explain this? I don't have X running on this machine. I am 
 showing the output of top sorted by memory usage here. Why is free showing 
 120MB used??

You mean the Swap usage?  Well, these are old programs which at some time
where swapped out.  Nothing to worry about.  If you'd ever run out of memory
(which is doubtful with 880 MB of RAM and such an astronomically gigantic
Swap file), it would be dumped to hold more recently used programs/data.

BTW: Not that it's any of my business - but what on earth are 1.7gb of swap
good for?

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.digitalprojects.com   |   http://www.iso-top.de
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
Uptime: 6 hours 26 minutes




Re: [expert] huge memory usage!

2001-05-30 Thread Sarang Lakare

 You mean the Swap usage?  Well, these are old programs which at some time

No, not the swap usage.. but the the memory usage.. It shows 126MB used.. 
how??? top dosn't show any process which is using a lot of memory.. the total 
of top is about 15mb or so.. where does this extra memory usage come from?

I am seeing more and more of this on LM8 machines.. this was never a problem 
with LM7.x

 where swapped out.  Nothing to worry about.  If you'd ever run out of
 memory (which is doubtful with 880 MB of RAM and such an astronomically
 gigantic Swap file), it would be dumped to hold more recently used
 programs/data.

I don't agree.. if the process was swapped out fine, but after it finished, 
the swap should become empty again. I think tis a problem with 2.4.x 
kernels.. coz I read something about it on the lists.

 BTW: Not that it's any of my business - but what on earth are 1.7gb of swap
 good for?

I have a 1.5GB system.. and swap was supposed to be double that right? 
Anyway, I kept it to teh size of the RAM... 

Here I have a problem too.. I cannot get LM8.0 to detect 1.5GB.. I tried 
appending mem=1500M to lilo but it didnt' change a bit. (yes I ran lilo b4 
rebooting!)

any help is highly appreciated.

thanks a lot
sarang


 Alexander Skwar

-- 
=
Sarang Lakare

Department of Computer Science|Linux, MS-DOS and Windows ...
PhD Student   |(also known as the Good,
SUNY Stony Brook, NY, USA |   the Bad and the Ugly..)
http://www.cs.sunysb.edu/~lsarang |http://www.linux.com
mailto:[EMAIL PROTECTED]  |mailto:[EMAIL PROTECTED]




Re[2]: [expert] huge memory usage!

2001-05-30 Thread Rusty Carruth

Alexander Skwar [EMAIL PROTECTED] wrote:
 
 BTW: Not that it's any of my business - but what on earth are 1.7gb of swap
 good for?

I just read that across the cubewall to my neighbor and he said

Video editing

(he does a lot of that)

Then he said - In 10 years, we'll all be doing climate simulations
on our laptops!

cute...

rc


Rusty Carruth  Email: [EMAIL PROTECTED] or [EMAIL PROTECTED]
Voice: (480) 345-3621  SnailMail: Schlumberger ATE
FAX:   (480) 345-8793 7855 S. River Parkway, Suite 116
Ham: N7IKQ @ 146.82+,pl 162.2 Tempe, AZ 85284-1825
ICBM: 33 20' 44N   111 53' 47W




Re[2]: [expert] huge memory usage!

2001-05-30 Thread Rusty Carruth

Originally I was goin to send this only to Sarang, then I finally
saw what Sarang did - see the discovery process below:

Sarang Lakare [EMAIL PROTECTED] wrote:
  You mean the Swap usage?  Well, these are old programs which at some time
 
 No, not the swap usage.. but the the memory usage.. It shows 126MB used.. 
 how??? top dosn't show any process which is using a lot of memory.. the total 
 of top is about 15mb or so.. where does this extra memory usage come from?

Previously you said:

  3:31pm  up 5 days,  2:09,  2 users,  load average: 0.00, 0.00, 0.00
54 processes: 53 sleeping, 1 running, 0 zombie, 0 stopped
CPU0 states:  0.0% user,  0.1% system,  0.0% nice, 99.4% idle
CPU1 states:  0.0% user,  0.0% system,  0.0% nice, 100.0% idle
Mem:   899952K av,  556948K used,  343004K free,   0K shrd,  170032K buff
Swap: 1791208K av,  118408K used, 1672800K free  265936K cached


Now, I'm confused.  Where do you see 15mb or so of memory used?

Here, let me interpolate some commas:


  3:31pm  up 5 days,  2:09,  2 users,  load average: 0.00, 0.00, 0.00
54 processes: 53 sleeping, 1 running, 0 zombie, 0 stopped
CPU0 states:  0.0% user,  0.1% system,  0.0% nice, 99.4% idle
CPU1 states:  0.0% user,  0.0% system,  0.0% nice, 100.0% idle
Mem:   899,952K av,  556,948K used,  343,004K free,   0K shrd,  170,032K buff
Swap: 1,791,208K av,  118,408K used, 1,672,800K free  265,936K cached

So I see 1/2 gig used.

Also, beware - top shows 2 numbers - total RAM in use currently, 
AND total actual size of the program.  Unfortunately top does
NOT appear to allow you to sort on that 2nd number...

Hmm.  So, I added up all the numbers under top, and got 31,088 kbytes.
Now you've got me wondering.  What does ps -axl say?

rc


Rusty Carruth  Email: [EMAIL PROTECTED] or [EMAIL PROTECTED]
Voice: (480) 345-3621  SnailMail: Schlumberger ATE
FAX:   (480) 345-8793 7855 S. River Parkway, Suite 116
Ham: N7IKQ @ 146.82+,pl 162.2 Tempe, AZ 85284-1825
ICBM: 33 20' 44N   111 53' 47W




Re: [expert] huge memory usage!

2001-05-30 Thread Alexander Skwar

So sprach Sarang Lakare am Wed, May 30, 2001 at 04:06:10PM -0400:
 No, not the swap usage.. but the the memory usage.. It shows 126MB used.. 
 how??? top dosn't show any process which is using a lot of memory.. the total 
 of top is about 15mb or so.. where does this extra memory usage come from?

Old data.  Since you have suge a huge amount of memory, stuff hardly gets
deleted.  Stuff includes things like old images, sound or what not else.

And I think that I read somewhere, that also each page of SWAP requires some
amount of RAM.   Don't know where I read it, though.

 I don't agree.. if the process was swapped out fine, but after it finished, 
 the swap should become empty again. I think tis a problem with 2.4.x 

Well, why should it become empty?  If there's still enough room in Swap/RAM,
what good would it be to drop the memory?  I mean, suppose you start GIMP
with a huge file.  The first time, it's gonna be slow.  Quit GIMP.  Restart
GIMP with this huge file.  It should be an awfull lot faster.   This is,
because the image and all that is still in RAM/Swap.

If the kernel would drop the memory, you would not get this speed
improvement.

 I have a 1.5GB system.. and swap was supposed to be double that right? 

No.  This was in 'ancient' times.  Nowadays this is no more true.  With 1.5
GB of RAM, you're fine with 256 MB of SWAP, so that you have some prior
notice that you're system is crowded.  I mean, when you start to swap,
you'll notice that you have a problem because all your ram is full.

 Here I have a problem too.. I cannot get LM8.0 to detect 1.5GB.. I tried 
 appending mem=1500M to lilo but it didnt' change a bit. (yes I ran lilo b4 
 rebooting!)

Don't know for sure, but in Cooker there's a -enterprise kernel.  Only this
-enterprise kernel supports huge amounts of memory like you've got.

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.digitalprojects.com   |   http://www.iso-top.de
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
Uptime: 7 hours 5 minutes




Re: [expert] huge memory usage!

2001-05-30 Thread Civileme

On Wednesday 30 May 2001 12:28, Sarang Lakare wrote:
 Can anybody please explain this? I don't have X running on this machine. I
 am showing the output of top sorted by memory usage here. Why is free
 showing 120MB used??

 I am observing this on all the three LM8.0 machines that I have and this
 could be serious. Am I missing something here?

 Thanks in advance
 sarang


You are indeed missing something--look at the amount used for buffers and 
cache.  This can be freed by the system when a program issues a malloc() 
call.  It can be grabbed again from the free memory pool when the program 
releases it and turned to the same purpose, making your machine run faster.

In Windows, you are taught to reboot when your resource meter drops.  In 
linux, unused memory is considered WASTED memory.  The system, the kernel, 
WILL employ it for something beneficial if at all possible.

Your systems are functioning mormally.

Civileme


   3:31pm  up 5 days,  2:09,  2 users,  load average: 0.00, 0.00, 0.00
 54 processes: 53 sleeping, 1 running, 0 zombie, 0 stopped
 CPU0 states:  0.0% user,  0.1% system,  0.0% nice, 99.4% idle
 CPU1 states:  0.0% user,  0.0% system,  0.0% nice, 100.0% idle
 Mem:   899952K av,  556948K used,  343004K free,   0K shrd,  170032K
 buff Swap: 1791208K av,  118408K used, 1672800K free 
 265936K cached

   PID USER PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
  1081 squid 14   0  3952 2724  2076 S 0.0  0.3   2:37 squid
 13363 root   9   0  1692 1588  1312 S 0.0  0.1   0:00 sshd
 13366 root  15   0  1584 1584  1156 S 0.0  0.1   0:00 bash
 13403 root  19   0  1204 1204   972 R 0.1  0.1   0:00 top
 13354 postfix9   0   804  804   684 S 0.0  0.0   0:00 pickup
 11206 sarang 8   0  1084  528   528 S 0.0  0.0   0:00 csh
  1154 root   9   0  2512  460   228 S 0.0  0.0   0:03 miniserv.pl
  1005 postfix9   0   488  416   416 S 0.0  0.0   0:01 qmgr
   821 root   9   0   376  316   316 S 0.0  0.0   0:00 rpc.mountd
   636 rpc9   0   264  240   240 S 0.0  0.0   0:00 portmap
 11204 root   9   0   564  216   216 S 0.0  0.0   0:00 sshd
   763 root   9   0   368  180   156 S 0.0  0.0   0:00 sshd
   648 root   9   0   232  176   176 S 0.0  0.0   0:00 syslogd
  1079 mysql  9   0  2736  16416 S 0.0  0.0   0:00 mysqld
  1134 mysql  9   0  2736  16416 S 0.0  0.0   0:01 mysqld
  1135 mysql  9   0  2736  16416 S 0.0  0.0   0:00 mysqld
  1153 mysql  9   0  2736  16416 S 0.0  0.0   0:00 mysqld
 11508 sarang 9   0   348  132   132 S 0.0  0.0   0:06 xosview
   686 root   9   0   184  128   128 S 0.0  0.0   0:01 ypbind
  1001 root   9   0   208  12496 S 0.0  0.0   0:01 master
  1036 root  10   0   172  11296 S 0.0  0.0   0:00 crond
 1 root   9   0   120   7676 S 0.0  0.0   0:07 init
  1108 xfs9   0  2128   5252 S 0.0  0.0   0:00 xfs
   782 root   9   0   200   20 4 S 0.0  0.0   0:00 xinetd
  1047 root   9   0   1848 4 S 0.0  0.0   0:00 safe_mysqld
   657 root   9   0   6324 4 S 0.0  0.0   0:00 klogd
   672 rpcuser9   0   1164 4 S 0.0  0.0   0:00 rpc.statd
   685 root   9   0844 4 S 0.0  0.0   0:00 ypbind
   812 root   9   0724 4 S 0.0  0.0   0:00 rpc.rquotad
  1080 root   9   0   1884 4 S 0.0  0.0   0:00 squid
  1173 root   9   0644 4 S 0.0  0.0   0:00 mingetty
  1174 root   9   0644 4 S 0.0  0.0   0:00 mingetty
  1175 root   9   0644 4 S 0.0  0.0   0:00 mingetty
  1176 root   9   0644 4 S 0.0  0.0   0:00 mingetty
  1177 root   9   0644 4 S 0.0  0.0   0:00 mingetty
  1178 root   9   0644 4 S 0.0  0.0   0:00 mingetty
 2 root   8   0 00 0 SW0.0  0.0   0:00 keventd
 3 root   9   0 00 0 SW0.0  0.0   0:25 kswapd
 4 root   9   0 00 0 SW0.0  0.0   0:00 kreclaimd
 5 root   9   0 00 0 SW0.0  0.0   0:03 bdflush



 [root@vv17 /root]# free
  total   used   free sharedbuffers cached
 Mem:899952 556784 343168  0 170032 265936
 -/+ buffers/cache: 120816 779136
 Swap:  1791208 1184081672800
 [root@vv17 /root]#

 [root@vx17 /root]# cat /proc/meminfo
 total:used:free:  shared: buffers:  cached:
 Mem:  921550848 570155008 3513958400 174112768 272318464
 Swap: 1834196992 121249792 1712947200
 MemTotal:   899952 kB
 MemFree:343160 kB
 MemShared:   0 kB
 Buffers:170032 kB
 Cached: 265936 kB
 Active:   7248 kB
 Inact_dirty:426376 kB
 Inact_clean:  2344 kB
 Inact_target:4 kB
 HighTotal:   

Re: [expert] huge memory usage!

2001-05-30 Thread Sarang Lakare

 You are indeed missing something--look at the amount used for buffers and
 cache.  This can be freed by the system when a program issues a malloc()
 call.  It can be grabbed again from the free memory pool when the program
 releases it and turned to the same purpose, making your machine run faster.

Yes.. agreed.. I know it.. but look at this :

  [root@vv17 /root]# free
   total   used   free sharedbuffers cached
  Mem:899952 556784 343168  0 170032 265936
  -/+ buffers/cache: 120816 779136
  Swap:  1791208 1184081672800
  [root@vv17 /root]#

This is how I interpret it :

total used = 556MB
buffers = 170MB
cached = 256MB

therefore, buff+chached 426MB

so after removing buff and cached we get = 556 - 426 = 130MB 

i.e the current processes are using 130MB. Now I don't have anything running 
on the machine right now.. so whatever memory was used by older processes 
should now be part of buffer and cache right? Then where does this extra 
memory usage come from?

When I reboot the machine, the usaage is just 35MB


 In Windows, you are taught to reboot when your resource meter drops.  In
 linux, unused memory is considered WASTED memory.  The system, the kernel,
 WILL employ it for something beneficial if at all possible.

I know this and I am not comparing with windows.. Let me tell you that I have 
never ever seriously used windows.. played with it a little bit when 95 came 
out, but coding was mostly in dos in those days.. then IRIX and for the past 
11/2 years, full time linux :)

I am keeping the rest of the mail for reference.

thanks!
sarang


3:31pm  up 5 days,  2:09,  2 users,  load average: 0.00, 0.00, 0.00
  54 processes: 53 sleeping, 1 running, 0 zombie, 0 stopped
  CPU0 states:  0.0% user,  0.1% system,  0.0% nice, 99.4% idle
  CPU1 states:  0.0% user,  0.0% system,  0.0% nice, 100.0% idle
  Mem:   899952K av,  556948K used,  343004K free,   0K shrd,  170032K
  buff Swap: 1791208K av,  118408K used, 1672800K free
  265936K cached
 
PID USER PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
   1081 squid 14   0  3952 2724  2076 S 0.0  0.3   2:37 squid
  13363 root   9   0  1692 1588  1312 S 0.0  0.1   0:00 sshd
  13366 root  15   0  1584 1584  1156 S 0.0  0.1   0:00 bash
  13403 root  19   0  1204 1204   972 R 0.1  0.1   0:00 top
  13354 postfix9   0   804  804   684 S 0.0  0.0   0:00 pickup
  11206 sarang 8   0  1084  528   528 S 0.0  0.0   0:00 csh
   1154 root   9   0  2512  460   228 S 0.0  0.0   0:03 miniserv.pl
   1005 postfix9   0   488  416   416 S 0.0  0.0   0:01 qmgr
821 root   9   0   376  316   316 S 0.0  0.0   0:00 rpc.mountd
636 rpc9   0   264  240   240 S 0.0  0.0   0:00 portmap
  11204 root   9   0   564  216   216 S 0.0  0.0   0:00 sshd
763 root   9   0   368  180   156 S 0.0  0.0   0:00 sshd
648 root   9   0   232  176   176 S 0.0  0.0   0:00 syslogd
   1079 mysql  9   0  2736  16416 S 0.0  0.0   0:00 mysqld
   1134 mysql  9   0  2736  16416 S 0.0  0.0   0:01 mysqld
   1135 mysql  9   0  2736  16416 S 0.0  0.0   0:00 mysqld
   1153 mysql  9   0  2736  16416 S 0.0  0.0   0:00 mysqld
  11508 sarang 9   0   348  132   132 S 0.0  0.0   0:06 xosview
686 root   9   0   184  128   128 S 0.0  0.0   0:01 ypbind
   1001 root   9   0   208  12496 S 0.0  0.0   0:01 master
   1036 root  10   0   172  11296 S 0.0  0.0   0:00 crond
  1 root   9   0   120   7676 S 0.0  0.0   0:07 init
   1108 xfs9   0  2128   5252 S 0.0  0.0   0:00 xfs
782 root   9   0   200   20 4 S 0.0  0.0   0:00 xinetd
   1047 root   9   0   1848 4 S 0.0  0.0   0:00 safe_mysqld
657 root   9   0   6324 4 S 0.0  0.0   0:00 klogd
672 rpcuser9   0   1164 4 S 0.0  0.0   0:00 rpc.statd
685 root   9   0844 4 S 0.0  0.0   0:00 ypbind
812 root   9   0724 4 S 0.0  0.0   0:00 rpc.rquotad
   1080 root   9   0   1884 4 S 0.0  0.0   0:00 squid
   1173 root   9   0644 4 S 0.0  0.0   0:00 mingetty
   1174 root   9   0644 4 S 0.0  0.0   0:00 mingetty
   1175 root   9   0644 4 S 0.0  0.0   0:00 mingetty
   1176 root   9   0644 4 S 0.0  0.0   0:00 mingetty
   1177 root   9   0644 4 S 0.0  0.0   0:00 mingetty
   1178 root   9   0644 4 S 0.0  0.0   0:00 mingetty
  2 root   8   0 00 0 SW0.0  0.0   0:00 keventd
  3 root   9   0 00 0 SW0.0  0.0   0:25 kswapd
  4 root   9   0 00 0 SW0.0  0.0   0:00 kreclaimd
  5 root   9   0 00 0 SW0.0  0.0   0:03 

Re: [expert] huge memory usage!

2001-05-30 Thread Sarang Lakare

 Old data.  Since you have suge a huge amount of memory, stuff hardly gets
 deleted.  Stuff includes things like old images, sound or what not else.

but shouldn't this non-deleted stuff be part of cache/buffer? then in teh -/+ 
buffer/cache, the memory used shown should be that of the currently running 
processes right?

  I don't agree.. if the process was swapped out fine, but after it
  finished, the swap should become empty again. I think tis a problem with
  2.4.x

 Well, why should it become empty?  If there's still enough room in
 Swap/RAM, what good would it be to drop the memory?  I mean, suppose you

You are right.. infact I knew this.. I was prolly out of my mind when I asked 
this Q ;)

Actually what I meant probably was that when a process is done, shouldnt' the 
memory associated with the process become part of cache/buffer? and if so, 
then teh -/+ buff/chache shld show the difference right? 

  I have a 1.5GB system.. and swap was supposed to be double that right?

 No.  This was in 'ancient' times.  Nowadays this is no more true.  With 1.5
 GB of RAM, you're fine with 256 MB of SWAP, so that you have some prior
 notice that you're system is crowded.  I mean, when you start to swap,
 you'll notice that you have a problem because all your ram is full.

hmm.. thats news to me!

 Don't know for sure, but in Cooker there's a -enterprise kernel.  Only this
 -enterprise kernel supports huge amounts of memory like you've got.

Can anybody from Mandrake throw any light on this? LM 7.2 standard could see 
1.5GB memory.. If I really do need an enterprise kernel, then what's the 
limit to the standard kernel? what's the diff between the standard adn the 
ent. kernel? where is all this documented?

thanks for all your help.
sarang

-- 
-
Sarang Lakare

http://www.cs.sunysb.edu/~lsarang
http://www.linux.org




Re: Re[2]: [expert] huge memory usage!

2001-05-30 Thread Sarang Lakare

 Previously you said:

   3:31pm  up 5 days,  2:09,  2 users,  load average: 0.00, 0.00, 0.00
 54 processes: 53 sleeping, 1 running, 0 zombie, 0 stopped
 CPU0 states:  0.0% user,  0.1% system,  0.0% nice, 99.4% idle
 CPU1 states:  0.0% user,  0.0% system,  0.0% nice, 100.0% idle
 Mem:   899952K av,  556948K used,  343004K free,   0K shrd,  170032K
 buff Swap: 1791208K av,  118408K used, 1672800K free 
 265936K cached


 Now, I'm confused.  Where do you see 15mb or so of memory used?

I was adding up the SIZE field of the processes shown by top.

   3:31pm  up 5 days,  2:09,  2 users,  load average: 0.00, 0.00, 0.00
 54 processes: 53 sleeping, 1 running, 0 zombie, 0 stopped
 CPU0 states:  0.0% user,  0.1% system,  0.0% nice, 99.4% idle
 CPU1 states:  0.0% user,  0.0% system,  0.0% nice, 100.0% idle
 Mem:   899,952K av,  556,948K used,  343,004K free,   0K shrd, 
 170,032K buff Swap: 1,791,208K av,  118,408K used, 1,672,800K free 
 265,936K cached

 So I see 1/2 gig used.

thats what I meant.. this thing shows 1/2 gig (actually its 126 MB aftre 
removing buff and cache) but the total of processes as seen in top is just 
around 15MB.


 Also, beware - top shows 2 numbers - total RAM in use currently,
 AND total actual size of the program.  Unfortunately top does
 NOT appear to allow you to sort on that 2nd number...

 Hmm.  So, I added up all the numbers under top, and got 31,088 kbytes.
 Now you've got me wondering.  What does ps -axl say?

i'll try that.. unfortunately I rebooted the machine.. so lemme try it again

sarang


 rc


 Rusty Carruth  Email: [EMAIL PROTECTED] or
 [EMAIL PROTECTED] Voice: (480) 345-3621  SnailMail: Schlumberger ATE
 FAX:   (480) 345-8793 7855 S. River Parkway, Suite 116
 Ham: N7IKQ @ 146.82+,pl 162.2 Tempe, AZ 85284-1825
 ICBM: 33 20' 44N   111 53' 47W

-- 
-
Sarang Lakare

http://www.cs.sunysb.edu/~lsarang
http://www.linux.org