Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Free memory kernel 2.4.x

Status
Not open for further replies.

Clived

Technical User
Jun 17, 2001
14
I am running kernel 2.4.14 on my Slackware 7.1 box. I have 288 megs of ram, but I notice that even with a minimal number of applications running, the free command shows most of my free space being used as buffers and seemingly not being released.
This was never a problem until last night while trying to compile kernel 2.4.14. It would seem that my installation borked because of lack of memory, or so it seems.I had to reboot, freed up my memory and completed the 2.4.14 install.
I am just curious if anyone else has similar concerns or experiences
 
Hi,

This is the way the kernel is designed. When any part of physical memory is not in use, the kernel attempts to put it to work as a disk buffer cache. This grows and
shrinks dynamically to use the memory available, although priority is given to using the memory for paging. So, on a linux system, you would never see lots of 'unused' memory. When you load apps the system should adjust the buffers accordingly. If you are compiling under X, next time open two xterm windows - one for compiling the kernel and the other to do 'free' or 'cat /proc/meminfo' commands before and after you start the kernel build process. You should see the buffer size adjust itself accordingly.

Hope this helps
 
Thanks ifincham :)

I appreciate your comments. Wasn't too sure about that, but your explanation clears that up in my mind
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top