LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-10-2013, 03:17 PM   #1
rmm
LQ Newbie
 
Registered: Dec 2013
Posts: 1

Rep: Reputation: Disabled
echo 3 > /proc/sys/vm/drop_caches takes forever


Hello,

I have a Thecus NAS and for some reason it runs a monitoring script that, among other things, checks /proc/meminfo every 60 seconds and when the value of "Cached" exceeds 50% of "MemTotal" it does "echo 3 > /proc/sys/vm/drop_caches" to drop the caches.

I'm no Linux expert, but that seems wrong to me - I would assume Linux is perfectly capable of managing memory itself, and given that this is a file server (NFS) I would want as much unused memory as possible being used for caching, no?

In any case, when they drop the caches the load spikes, as does the disk utilization (8 drives in a raid6 configuration). It doesn't return to normal until the "echo 3 > /proc/sys/vm/drop_caches takes forever" completes, but this can take a long time, hours even.

I've also asked Thecus directly, but their support sucks and I'm not holding my breath. All drives in the RAID are fine according to all the S.M.A.R.T. tests. It doesn't seem to be caused by actual NFS traffic from clients, since the same problem can happen at any time, even the middle of the night when there is no traffic.

Is it normal for dropping caches to take so long? We're only talking 8-12 gigs of cache when this happens).

Any ideas?
 
Old 12-11-2013, 02:32 AM   #2
s.verma
Member
 
Registered: Oct 2013
Distribution: Debian Sid, Gentoo, Arch, Debian
Posts: 186
Blog Entries: 4

Rep: Reputation: 25
Have you tried to run
echo 3 > /proc/sys/vm/drop_caches
manually or just from the script.
If manually does it takes too long?
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
echo > 0 /proc/sys/kernel/hung_task_timeout_secs disables this message ravindert Linux - Newbie 1 10-26-2013 08:32 PM
echo 0 /proc/sys/kernel/hung_task_timeout finsh Linux - Server 3 07-18-2013 07:01 AM
/proc/sys/vm/drop_caches sulekha Ubuntu 4 12-06-2008 03:38 AM
echo '214748364' > /proc/sys/kernel/shmmax rubendarioportillo SUSE / openSUSE 1 11-03-2005 06:05 PM
echo '214748364' > /proc/sys/kernel/shmmax SwannAnderson Linux - General 2 11-03-2005 02:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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