[Bug translator/6872] module cache cleaner
ksebasti at redhat dot com
sourceware-bugzilla@sourceware.org
Fri Sep 26 18:12:00 GMT 2008
------- Additional Comments From ksebasti at redhat dot com 2008-09-26 18:11 -------
Created an attachment (id=2962)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=2962&action=view)
patch to integrate cache clean script into main.cxx
This patch adds the clean script to main.cxx, after the temp directory is
removed. I tested it on a local build and it works nicely.
The current limit is defined in a macro in cache.h, set to 20mb. This is just a
random guess at an appropriate size.
Ideas:
* modify the script to output the name/path of the removed folder to be extra
verbose
(these 2 would probably require more members in struct systemtap_session)
* there should probably be a cl switch to disable (or enable?) the cache
clearing
* specify the max cache size as a cl switch
* a better eviction policy than oldest by access time ?
If any of those sound good let me know and I can work on it.
--
What |Removed |Added
----------------------------------------------------------------------------
Attachment #2957 is|0 |1
obsolete| |
http://sourceware.org/bugzilla/show_bug.cgi?id=6872
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Systemtap
mailing list