LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-06-2009, 12:32 PM   #1
mitchellray
Member
 
Registered: Feb 2009
Posts: 44

Rep: Reputation: 16
Disk Cache only 21% - kinfoCtr. tip suggests high is better vs. Physical - How alter?


Hello,
Since the system slowdown just started becoming apparent, I opened KinfoCenter.
(see attachment screen shot of KinfoCenter)
When I hover the mouse cursor over the Disk Cache memory, the note suggests that it sould be a high number relative to the Physical memory usage.
This does not appear to be the case.
Free Physical Memory (at this moment) 59% 623,403,008 bytes= 594.2 MB
Disk cache 22% 233,201,664 bytes= 222.40 MB

Should I alter Disk Cache usage parameters?
If so, how do I do this?
M
Attached Thumbnails
Click image for larger version

Name:	snapshot2.png
Views:	39
Size:	42.0 KB
ID:	421  
 
Old 04-06-2009, 01:05 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,063

Rep: Reputation: Disabled
You have a lot of free physical memory and don't need to swap anything on the hard disk so that's not a memory problem and you won't do anything good altering disk cache parameters.

I would use the 'top' command instead to see which processes use a big % of the CPU.
 
Old 04-06-2009, 07:10 PM   #3
mitchellray
Member
 
Registered: Feb 2009
Posts: 44

Original Poster
Rep: Reputation: 16
Hello Didier Spaier,
I will look at 'top' again when the system behaves sluggishly.
Right now, there are only a few processes running and firefox-bin uses around 9%, the next highest is Kicker at 1.7%, and then x at 1.5%.

The reason I asked is because there is a tip when the cursor is hovered over the Disk Cache frame in the KinfoCenter. It suggests that when there is a small amount of free physical memory and a large amount of Disk Cache memory, that the system is well configured.
What does that mean?
M
 
Old 04-07-2009, 01:27 AM   #4
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
Quote:
Originally Posted by mitchellray View Post
The reason I asked is because there is a tip when the cursor is hovered over the Disk Cache frame in the KinfoCenter. It suggests that when there is a small amount of free physical memory and a large amount of Disk Cache memory, that the system is well configured.
What does that mean?
Disk cache (well, as I understand it anyway!) refers to the small amount of cache memory on the hard disk that is used to speed up access. See these 2 short articles that explain what disk cache is:
http://www.webopedia.com/TERM/D/disk_cache.html
http://www.storagereview.com/map/lm.cgi/buffer
 
Old 04-07-2009, 02:32 AM   #5
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,063

Rep: Reputation: Disabled
Well, size of disk cache memory is only one among many parameters you can fiddle with to increase your overall system speed.

Even experts don't agree about the "good" settings, see this discussion for instance.

So I wouldn't pay too much attention to the tip displayed by kinfocenter.

What is more important is simply have enough RAM in order to minimize swap usage, which is costly in terms of performance. As you had 100 % free swap space at time of taking the snapshot, so far so good.

You can tune your hard disk settings if needed using hdparm. Read carefully the manual before proceeding: 'man hdparm'.

But again, on my laptop at least, stress on the CPU is more likely to cause a slow down of the system, hence my advice to look at 'top' first.

Other than that you can try to adjust some configuration settings in your kernel, see this article from Alien BOB.
 
Old 08-27-2011, 02:05 PM   #6
Geremia
Member
 
Registered: Apr 2011
Distribution: slackware64-current
Posts: 506

Rep: Reputation: 47
Quote:
Originally Posted by mitchellray View Post
Hello,
Since the system slowdown just started becoming apparent, I opened KinfoCenter.
(see attachment screen shot of KinfoCenter)
When I hover the mouse cursor over the Disk Cache memory, the note suggests that it sould be a high number relative to the Physical memory usage.
This does not appear to be the case.
Free Physical Memory (at this moment) 59% 623,403,008 bytes= 594.2 MB
Disk cache 22% 233,201,664 bytes= 222.40 MB

Should I alter Disk Cache usage parameters?
If so, how do I do this?
M
Try copying gigabytes of files to an external drive; e.g., back up your home directory with rsync to another drive. You will see disk cache trying to utilize almost all your memory. "Disk cache" is a buffer in RAM for your hard drive. The "disk buffer" is a buffer built-in to your hard drive.

Disk cache won't utilize most of the RAM at all times because the memory controller allocates physical memory on a first come, first serve basis. It's no big deal that sometimes disk cache isn't using much.

Last edited by Geremia; 08-27-2011 at 02:08 PM.
 
Old 08-27-2011, 09:02 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
See if you can find a package for latencytop. No sense chasing (irrelevant IMHO) side issues - find out where the latency really is. If any.
 
  


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
High Availability Squid Cache Servers? jimbo1954 Linux - Networking 3 09-15-2008 01:14 PM
increase free physical memory, decrease disk cache efm Linux - Hardware 4 03-30-2006 09:53 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
Cache memory size too high? Boomba Linux - General 2 10-15-2005 01:32 PM

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

All times are GMT -5. The time now is 07:33 AM.

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