[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Linux mem usage
- To: "israel (srul) meron" <srul(at-nospam)odigo.com>
- Subject: RE: Linux mem usage
- From: Alexander Sandler <ASandler(at-nospam)store-age.com>
- Date: Sun, 27 May 2001 13:02:17 +0200
- Cc: linux-il(at-nospam)linux.org.il
- Delivered-To: linux.org.il-linux-il@linux.org.il
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
It's completely normal. High mem usage is a result of memory being used by
I/O cache or more correctly by something called buffer_head cache. It works
the following way.
Once doing some I/O's, cache subsystem will try to occupy all available
memory. When there is no free memory and it's required (somebody doing
malloc from user space), kernel thread named kfushd used to flush part of
the data kept in cache to disks (or what ever it is), and by this to free
memory. Usualy malloc() will wait until kflushd done. Than, memory will be
allocated for you, and you'll notice that all of your memory is occupied
once again.
This is it. To approve all this, you should take a look at amount of memory
available right after computer was started. Then do some I/O. You will
notice that after I/O, much more memory will be used. Than, try to do some
malloc()'s. You should have no problem to do as many malloc()'s as you need.
Best regards,
Alexandr Sandler.
Software Engineer.
StoreAge Networking Technologies, Inc.
Tel : (972)-4-8329030 Ext. 235.
Email : asandler@store-age.com
> -----Original Message-----
> From: israel (srul) meron [mailto:srul@odigo.com]
> Sent: Thursday, May 24, 2001 1:28 PM
> To: linux-il@linux.org.il
> Subject: Linux mem usage
>
>
> Hi All,
>
> I am running a Red Hat 7.1 release (Seawolf) kernel 2.4.2-2
> (i tried also
> the new 2.4.4).
> 350mhz CPU ,384MB RAM , single processor.
> After Mem usage goes high , it never goes down even if all
> processes are
> stopped) and also wether the SWAP was used or not.
> could it be due to the not so strong machine ? i cant see any
> connection
> between the 2.
>
> any suggestions how to get around the problem withOut REBOOTing ?
>
> 10x
>
>
> =================================================================
> To unsubscribe, send mail to linux-il-request@linux.org.il with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail linux-il-request@linux.org.il
>
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il