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/10741] Merge tandem locks


------- Additional Comments From fche at redhat dot com  2009-11-20 19:43 -------
archiving irc yak on topic:

fche anyway, I was thinking that another locking-related optimization could be
done by escalating read-to-write locks within probe handlers, suchly:
fche global foo       probe bar { if (foo) { foo++ } }
fche so the idea would be to initially read-lock foo, and only later upgrade it
to a write-lock
fche the theory being that some / many (??) probes start with some condition
checking, and some (???) of that time, a write does not actually end up happening
jistone hmm
jistone have to think about whether that could induce any lock inversion
fche oh yeah, lots of complications
fche just wanted to brain-dump here FWIW
jistone probe foo { if (++a) ++b } probe bar { if (++b) ++a } global a,b
jistone does the initial read lock solve that?  I think it might...


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10741

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