LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-25-2006, 12:46 AM   #1
-=Graz=-
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Fedora, Slackware, RHEL, AIX, HP-UX
Posts: 358

Rep: Reputation: 31
Disk Cache Usage - slack10.1 on laptop


i been setting up a laptop today with slackware 10.1. It is a AMD XP 1.4Ghz with 256MB DDR 266 and 40Gb drive.
Have loaded with kernel 2.4.29 and then added bits and pieces to get it workin better on the laptop.. It runs surprisinly well but i notice that the memorry allocated to Disk Cache is 99MB of my 256MB.... This seems a little exessive at a glance.
Just wondering how it should be?
My other laptop uses nearly 200MB disk cache but its got 1024MB ram so its all good....

I also have a 470MB swap space on the AMD unit as well... It does not seem to be gobbling into it at all at this stage...
Just wondering whether 1) this is normal and 2) is it possible to foce the system to use less disk cache and if so, will i suffer a different performance hit?
 
Old 04-25-2006, 02:59 AM   #2
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
1) This is normal behaviour in linux. The memory will only be used if it's free....

Quote:
If the cache is of a fixed size, it is not very good to have it too big, either, because that might make the free memory too small and cause swapping (which is also slow). To make the most efficient use of real memory, Linux automatically uses all free RAM for buffer cache, but also automatically makes the cache smaller when programs need more memory.

Under Linux, you do not need to do anything to make use of the cache, it happens completely automatically. Except for following the proper procedures for shutdown and removing floppies, you do not need to worry about it.
from http://www.faqs.org/docs/linux_admin/buffer-cache.html

2) This section also implies that it is possible to set a fixed cache size, but i would leave it alone, if I were you....
 
Old 04-25-2006, 06:04 AM   #3
-=Graz=-
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Fedora, Slackware, RHEL, AIX, HP-UX
Posts: 358

Original Poster
Rep: Reputation: 31
Hi satinet
That's hit the nail right on the head.. Okay, so it has initially set a large size but will decrease the amount allocated to disk cache to give to applications before it starts using the swap by the looks of things.. which sounds very efficient.
Cool - thanks for this info, great help!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slack10.2 on Laptop? carlosinfl Slackware 45 02-25-2006 08:37 AM
Ram wiht suse, cache Disk cache??? fadelhomsi Linux - Newbie 2 02-05-2006 11:29 PM
Extremely high slab cache usage jonEbird Linux - Enterprise 1 12-07-2005 03:40 AM
Can my laptop run Slack10? lmetal Slackware 20 07-07-2005 11:11 PM
101% disk usage on an empty disk tsiuser Linux - Software 3 01-28-2004 06:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration