> Given that we don't care about starting with the oldest, is there a
> command line option or some config to stop the sorting?
>
> or, do I have to remove it from the source in
> ./src/policy_modules/purge/resmon_purge.c

For info, I've just done a trivial hack on this and recompiled.
Staggering difference in performance

aelwell@magnus-2:~/GIT_Sources/robinhood/src/policy_modules/purge
(nosort)$ git diff ./resmon_purge.c
diff --git a/src/policy_modules/purge/resmon_purge.c
b/src/policy_modules/purge/resmon_purge.c
index 7cda375..49c9bd9 100644
--- a/src/policy_modules/purge/resmon_purge.c
+++ b/src/policy_modules/purge/resmon_purge.c
@@ -474,7 +474,7 @@ int perform_purge(lmgr_t *lmgr, purge_param_t
*p_purge_param,

     /* sort by last access */
     sort_type.attr_index = ATTR_INDEX_last_access;
-    sort_type.order = SORT_ASC;
+    sort_type.order = SORT_NONE;

     rc = lmgr_simple_filter_init( &filter );
     if ( rc )

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
robinhood-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/robinhood-support

Reply via email to