Changing Contention Managers

17 views
Skip to first unread message

Kevin Burns

unread,
Feb 8, 2012, 2:38:54 PM2/8/12
to Deuce-STM developers
Hello,

I have not been using Deuce for very long and am trying to change the
Contention Manager. I have set the build flag -
Dorg.deuce.transaction.tl2cm.ContentionManager="Karma", I was
wondering what the best way is to check whether this has taken affect.
Due to the fact if I put -
Dorg.deuce.transaction.tl2cm.ContentionManager="NotARealClass", it
doesn't complain. If I add both -
Dorg.deuce.transaction.tl2cm.ContentionManager="Karma" and -
Dorg.deuce.transaction.contextClass=org.deuce.transaction.tl2cm.Context,
it informs me the CM is set to "Suicide" every time. Any resources or
advice you can give would be appreciated.

Kevin Burns

unread,
Feb 9, 2012, 11:07:04 AM2/9/12
to Deuce-STM developers
Alright, so I realized some new trends to my testing. This scheme
works for the "Karma", "Polite", "Suicide", "Polka". I dug around the
code and see no reason for this. If I type in anything else, it
defaults back to "Suicide". I'm still unsure as to why "Aggressive"
isn't working.

Yoav Cohen

unread,
Feb 10, 2012, 12:39:06 PM2/10/12
to deuce-stm-...@googlegroups.com
Hi,

Which version are you using?

If you use the head revision, the current values for org.deuce.transaction.tl2cm.ContentionManager are:
Suicide, Aggressive, Polite, Karma, Polka, KarmaLS, AggressiveLS, KillPrioLS are and default is KillPrioLS.

If you use r352 (which I think you are) then the corresponding values are:
Suicide, Aggressive, Polite, Karma, Polka, KarmaLockStealerLockStealerKillPrioLockStealer and the default is Suicide.

To learn more about these contention managers, see: http://www.cs.tau.ac.il/~adamx/systor2011-locksteal.pdf

I also spotted a small bug there which doesn't affect functionality, will be fixed later today. Thanks!

Regards,
Yoav.

--
You received this message because you are subscribed to the Google Groups "Deuce-STM developers" group.
To post to this group, send email to deuce-stm-...@googlegroups.com.
To unsubscribe from this group, send email to deuce-stm-develo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/deuce-stm-developers?hl=en.


Reply all
Reply to author
Forward
0 new messages