Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-25-2006, 01:46 AM
|
#1
|
Member
Registered: Jan 2006
Location: Australia
Distribution: Fedora, Slackware, RHEL, AIX, HP-UX
Posts: 358
Rep:
|
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?
|
|
|
04-25-2006, 03:59 AM
|
#2
|
Senior Member
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491
Rep:
|
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....
|
|
|
04-25-2006, 07:04 AM
|
#3
|
Member
Registered: Jan 2006
Location: Australia
Distribution: Fedora, Slackware, RHEL, AIX, HP-UX
Posts: 358
Original Poster
Rep:
|
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!
|
|
|
All times are GMT -5. The time now is 05:06 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|