Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: SamK on February 09, 2010, 05:09:27 AM

Title: Convenience of Using cache-clear
Post by: SamK on February 09, 2010, 05:09:27 AM
Clearing the cache is becoming a frequent event for me.  To make it more convenient I am considering adding a menu entry to FLWM. 

Are there any practical (as opposed to theoretical) disadvantages to running cache-clear often?

Are there any plans to add this menu option to future versions of TC?
 
Title: Re: Convenience of Using cache-clear
Post by: curaga on February 09, 2010, 05:23:36 AM
No disadvantages, except that it slows down your access to files that were in cache before the clear.
Title: Re: Convenience of Using cache-clear
Post by: SamK on February 09, 2010, 06:10:07 AM
...it slows down your access to files that were in cache before the clear.
The access time difference is unnoticeable and quite acceptable to me; which leads to a further ideas. 

Title: Re: Convenience of Using cache-clear
Post by: curaga on February 09, 2010, 10:34:21 AM
Sure, cron is available in the base for automating tasks.

Your second point however is getting a bit redundant - caches, and freeing them when necessary, is done by the kernel already. Quite well usually, but things are tunable in /proc/sys.

Having a process looking at the used caches would just consume cpu without any benefit IMHO.
Title: Re: Convenience of Using cache-clear
Post by: SamK on February 09, 2010, 11:57:43 AM
Your second point however is getting a bit redundant - caches, and freeing them when necessary, is done by the kernel already. Quite well usually, but things are tunable in /proc/sys.
On my test rig the cache slowly fills up over a period of hours often to the point of rendering the system unresponsive (monitored via top).  Unless the cache is cleared manually, the memory usage continues to rise.  A small decrease can,of course, be obtained by closing an app.

I have begun to rely on frequently running cache-clear manually to maintain a workable environment - hence my question about the use and automation of it.  Relying on the kernel to maintain it is problematical for me.