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 - 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 09-05-2012, 04:58 PM   #1
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
Safe way to drop cached memory - I'm lookin for an advice


Hi,

Some applications cause the kernel to cache great amount of RAM. And it seems for me that cached memory is somehow 'unusable' for other apps. I now that MPlayer behaves badly when a lot of the memory is cached. I want a kind of a management of the cached memory like 'drop cache when it is safe'. The problem is how to resolve when it is safe.....
 
Old 09-06-2012, 12:58 PM   #2
sevs
Member
 
Registered: Jul 2008
Location: Russia, Saratov
Distribution: debian, knoppix, mandriva, asplinux, altlinux
Posts: 110

Rep: Reputation: 20
Hi.
I'm not sure that it is a right link, but anyway have alook at this:
Link one
Link two
Link three
 
1 members found this post helpful.
Old 09-07-2012, 07:10 AM   #3
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717

Original Poster
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
Thanks for the link one. I think that my problems are solved now. The trick is to add 'sync' command before dropping cached memory. I knew that 'echo 1 > /proc/sys/vm/drop_caches' clears the memory - but doing this forcibly may cause
data lost.
 
  


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
Linux memory management: Real memory or Cached buffers? gubbu Linux - Server 2 10-01-2010 01:58 AM
Memory Cached issues razzera Debian 2 03-28-2010 07:43 PM
Ok Ladies, Im lookin for your best advice here; windows incremental backups to ubuntu Geneset Linux - Networking 1 10-01-2008 05:49 AM
Memory staying in cached status kaplan71 Red Hat 1 10-25-2006 08:58 AM
Increasing the amount of cached memory balteo Linux - General 1 09-16-2005 04:06 PM

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

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