On Thu, 9 Aug 2001, Himanshu Kulkarni wrote:

> Thanks a lot  ...
>
> I did not know about other mailing list. I have subscribed there as well ...
>
> Thanks for your reply. That clears my first doubt. However if you do not
> mind i have one more query. I will be glad if you answer that ... whenever
> the RAM available on server is less that 10MB i start getting unable to fork
> errors .... and I endup rebooting the server ....

Then you may be running out of file handles, or processes per user.
Try to look at /proc/sys/fs/file-nr, /proc/sys/fs/file-max

file-nr is of the format:
aaa bbb ccc

where   aaa = peak usage of handles
        bbb = current usage
        ccc = max number of handles

if peak == max, then echo a number, redirect it to /proc/sys/fs/file-max
to increase the amount of file handles.

for number of processes, either limit the number of qmail deliver
processes or increase the ulimit variable to accomodate a greater num of
processes.  You many need to recompile your kernel because afaik, the
stock setting of this is 512 processes per user.

a more general discussion appears in http://www.kegel.com/c10k.html


>
> We have already placed purchase order for Redhat linux 7.0 and will upgrade
> very soon ....

Redhat Linux's 7.0 compiler is UNSTABLE to use in production environments.
Either use Mandrake 8.0 or Redhat 7.1.  For production use, if you want to
avoid heavily patching your older version distributions  with security
updates, go with the latest.


>
> Thanks for suggestion .....
> ----- Original Message -----
> From: "Ian C. Sison" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Wednesday, August 08, 2001 10:03 PM
> Subject: [plug] Re: [ph-isp] Memory management on Linux
>
>
> >
> > Ok before i answer your question here are some tips:
> >
> > 1. you can get more expert advise if you post your question on the
> > philippine linux users group mailing list, and newbie list.
> >
> > To subscribe to the Linux Newbies' List: send "subscribe" in the body to
> > [EMAIL PROTECTED]
> >
> > 2. please don't send any html formatted mail onto mailing lists, it's very
> > annoying..
> >
> > ======================
> >
> > now for some helpful tips:
> >
> > 1. Your linux box is running a very old and VERY INSECURE version of
> > redhat linux (6.1).  Unless you have updated your bind,lpd,wuftpd
> > packages among others, you are sure to be hacked in the near future.
> >
> > 2. Linux by design will use up ALL available memory for internal use of
> > buffers and cache (note the values under the words buffers/cache in the
> > dump of 'free' you posted).  This behaviour enables linux to cache and
> > buffer disk i/o and keep everything residing in memory as long as
> > possible, for the fastest performance without having to go to disk for
> > files or data.   This means, even if you have 2GB ram on your system, you
> > will still get the same usage pattern.  As long as you dont see too much
> > swapping and the si/so values of the output of 'vmstat 5' remain at zero,
> > your servers fine.
> >
> >
> > On Wed, 8 Aug 2001, Himanshu Kulkarni wrote:
> >
> > > BlankHi I am running Qmail MTA on Linux 6.1 ... the kernel version is
> Linux 2.2.12-20 ..
> > >
> > > The configuration of this server is P3 with 256MB of RAM and 2*18.2GB
> HDD.
> > >
> > > on this server very frequently we have observed that the server is
> > > running out of memory, at times the available memory is as less as 4
> > > or 5 mb . However server never use swap. I am attaching the output of
> > > free command ....
> > >
> > > is there any known patch to fix this ...?? if any more inputs required
> > > from server I pl letus know we will send the info...
> > >
> > >                     total       used       free       shared    buffers
> cached
> > >  Mem:        257728     250912     6816       8732     151780      74284
> > >  -/+ buffers/cache:      24848     232880
> > >  Swap:      1024088       1208    1022880
> > >
> > >                   total         used        free       shared
> buffers     cached
> > >  Mem:        257728     251064       6664       9072     151780
> 74312
> > >  -/+ buffers/cache:      24972     232756
> > >  Swap:      1024088       1208    1022880
> > >
> > >                  total         used        free        shared
> buffers       cached
> > >  Mem:        257728     250592       7136       8176     151780
> 74064
> > >  -/+ buffers/cache:      24748     232980
> > >  Swap:      1024088       1208    1022880
> > >
> > >               total       used       free     shared    buffers
> cached
> > >  Mem:        257728     251716       6012       9608     151780
> 74764
> > >  -/+ buffers/cache:      25172     232556
> > >  Swap:      1024088       1208    1022880
> > >
> > >               total       used       free     shared    buffers
> cached
> > >  Mem:        257728     250832       6896       9144     151780
> 74068
> > >  -/+ buffers/cache:      24984     232744
> > >  Swap:      1024088       1208    1022880
> > >
> > >
> > > regards
> > > himanshu
> > >
> > >
> > >
> >
> >
> >
> > _
> > Philippine Linux Users Group. Web site and archives at
> http://plug.linux.org.ph
> > To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
> >
> > To subscribe to the Linux Newbies' List: send "subscribe" in the body to
> [EMAIL PROTECTED]
> >
>
> _
> Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
> To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
>
> To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
>[EMAIL PROTECTED]
>


_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
[EMAIL PROTECTED]

Reply via email to