This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/6872] module cache cleaner
- From: "ksebasti at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 26 Sep 2008 18:11:10 -0000
- Subject: [Bug translator/6872] module cache cleaner
- References: <20080907200626.6872.fche@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- 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.