This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/6872] module cache cleaner


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]