LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-30-2012, 03:25 PM   #1
Leakeybill
LQ Newbie
 
Registered: Dec 2012
Posts: 1

Rep: Reputation: Disabled
Memory Management


We have a linux server that has a terrabyte of physical memory installed. I know that seem like quite a bit.

What we see from time to time is that i/o performance slow down significantly and that the users on the machine complain about responce.

The machine is never fully utilized.

We find if we manually flush the disk caches the system becomes more responsive to the users.

It appears that with a terrabyte of physical memory that the concept of unlimited disk caches may not work, or that disk cache sizes should be limited. Is it possible that a disk cache could become so large that checking the cache to see if your data is in cache could pose a large overhead in terms of disk i/o.

What would be the recommended largest disk cache that you would want to have associated with a file system that is 10 terrabytes in size?

Does each file system have its own unique system cache space?

How should this be configured or managed or does the kernal handle it all.

Perhaps someone could direct me to a site with more information regarding disk cache configuration of Linux systems.

Thanks
 
Old 12-31-2012, 01:26 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
This subject is like fighting wraiths whilst standing on quicksand, but we can try to help ...
Quote:
Originally Posted by Leakeybill View Post
What we see from time to time is that i/o performance slow down significantly and that the users on the machine complain about responce.
Evidence ?
User perceptions of response time(s) are notoriously "iffy". However even the kernel devs have realised they were ignoring this for too long, and changes have been creeping into the kernel of late. What distro, and what kernel level are you running ?.
Try latencytop to see if it agrees with your users perceptions.
Quote:
The machine is never fully utilized.
Meaning memory ? Let's see some evidence ("free -m" or somesuch would do)
Quote:
We find if we manually flush the disk caches the system becomes more responsive to the users.
What do you write into the sysctl ... 3 ? ... 2 ? ... 1 ?
Have you tried them all separately to see which (if any) has the most effect ?.
Quote:
It appears that with a terrabyte of physical memory that the concept of unlimited disk caches may not work, or that disk cache sizes should be limited. Is it possible that a disk cache could become so large that checking the cache to see if your data is in cache could pose a large overhead in terms of disk i/o.
Again, this would need hard data to verify - but is not inconceivable that chasing the (allocation) queues would be expensive. The system tries to avoid it when it can.
Quote:
What would be the recommended largest disk cache that you would want to have associated with a file system that is 10 terrabytes in size?
No idea
Quote:
Does each file system have its own unique system cache space?
Not that I'm aware of unless doing direct_io - in which case it bypasses it altogether.
Quote:
How should this be configured or managed or does the kernal handle it all.
The kernel handles it, although requests for the ability to control/limit the page cache allocation is a constant theme. So far rebutted by the kernel devs (last I looked).
However, as you have already found, there are a bunch of sysctls under /proc/sys/vm/ that allow some input to the decision making - swappiness and the dirty_* along with overcommit_* might help, but need research and individual (i.e. one at a time) adjustment to see any benefit. Site-specific and time consuming.
Cgroups give you some control over memory utilisation, but you would need to be able to separate your users, and decide who gets how much. Can lead into office politics.
Quote:
Perhaps someone could direct me to a site with more information regarding disk cache configuration of Linux systems.
A comprehensive explanation would indeed be good - I've yet to find one. And that includes looking at (some of) the mm source.
 
  


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
Linux memory management: Real memory or Cached buffers? gubbu Linux - Server 2 10-01-2010 01:58 AM
Memory Page Scanning and Reclaim/Memory Management ilfantomas Linux - Kernel 1 03-02-2010 08:31 PM
memory management navaladi Mandriva 2 02-18-2005 06:47 AM
memory management exigent Linux - General 1 08-17-2003 08:28 PM
memory management? snow Linux - Software 7 02-12-2003 01:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:38 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