Re: memory managment

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Dec 17, 2001 at 09:06:54AM -0600, Arren Mund wrote:
> i have been noticing lately that once i run my system for about a week
> my memory has about 14/384 MB RAM free and will not release any of it
> unless i close every application i'm running, but it still doesn't
> release it all because it's not all being used.  

The memory is used in the buffer and page caches. It's considered a
Good Thing [tm].

> Is there some way that i can tell the kernel to release any of the
> memory that it's not using so that my programs which run insanely fast
> when i first start my machine can still run at that speed?

There is a trick: write a utility that allocates 350MB of memory and
touches every 4k of it. That will force the kernel to shrink the
caches.

> (i'm tempted to get rid of blackbox and every app i use with it, but
> then i will only use about 30MB of the memory)

It wouldn't help you anyway.


Erik

-- 
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Faculty
of Information Technology and Systems, Delft University of Technology,
PO BOX 5031, 2600 GA Delft, The Netherlands  Phone: +31-15-2783635
Fax: +31-15-2781843  Email: J.A.K.Mouw@its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux