Problems with memory management.

Problems with memory management.

Post by Joan Carles Guillén Lópe » Sat, 08 Mar 1997 04:00:00



        I've got an Linux Web server wit 32 MB of Memory, our problem is that our
memory gets full, that's why all their process like "login" "su" "sh"
"bash" needs more than 700 KB each one.I think it isn't normal and i
suposse that can be correct configuring some kernel parameter.

        Thanks for all.

 
 
 

Problems with memory management.

Post by Nils Faerb » Tue, 11 Mar 1997 04:00:00



:       I've got an Linux Web server wit 32 MB of Memory, our problem is that our
: memory gets full, that's why all their process like "login" "su" "sh"
: "bash" needs more than 700 KB each one.I think it isn't normal and i
: suposse that can be correct configuring some kernel parameter.
First rule: Don't panic ;)
Your memory is just fine. You should remember that Linux useses some very
nifty algorithms to manage memory. One for example is shared memory between
same processes, i.e. two times a bash only occupies one time the memory for
it's binary data. So running twenty bash-es does not make much difference
against running it once. Only the data segment is replicated. In fact if you
summerize all memory usages you will find that all processes together use
memory than you have in your machine ;)
So don't worry. I once had a memory leak around 0.99.* when I used a wrong
ld.so and memory wasn't freed anymore. After about half an hour depending on
usage the machine wasn't usable at all anymore.

:       Thanks for all.
CU
  nils

--
Nils Faerber                 ASGARD-BBS  asgard.si.sub.de


voice     +49 271 8909277    http://www.unix-ag.uni-siegen.de/~nils/
data/fax  +49 271 8909278
isdn/X75  +49 271 8909279
--

 
 
 

Problems with memory management.

Post by Srinivasan Krishnamurth » Wed, 12 Mar 1997 04:00:00



Quote:

>         I've got an Linux Web server wit 32 MB of Memory, our problem is that our
> memory gets full, that's why all their process like "login" "su" "sh"
> "bash" needs more than 700 KB each one.I think it isn't normal and i
> suposse that can be correct configuring some kernel parameter.

>         Thanks for all.

I donot know if you are expecting an answer for this or if this is just
another fact-stated posting.

However I have something to say:

I have run web servers/ xdisplay manager daemons/ snmp daemons/ and some
more things with more than 8 users on it at the same time and I  have
not
got any problems except that the response time is slightly more.

What is your swap-size?
have you run "mkswap -c <swap-partition" and "swapon ..." IF this is not
done then you could really have problems.


Srinivasan Krishnamurthy