[SERVER-7610] Consider unfenced load for CurOp::killPending() Created: 09/Nov/12  Updated: 11/Jul/16  Resolved: 19/Nov/12

Status: Closed
Project: Core Server
Component/s: Performance
Affects Version/s: None
Fix Version/s: 2.3.1

Type: Improvement Priority: Major - P3
Reporter: Mathias Stearn Assignee: Mathias Stearn
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-6973 Need fast loadUnsafe() function in At... Closed
Participants:

 Description   

10x performace difference for KillCurrentOp::checkForInterrupt.



 Comments   
Comment by auto [ 20/Nov/12 ]

Author:

{u'date': u'2012-11-19T23:41:19Z', u'email': u'alerner@10gen.com', u'name': u'Alberto Lerner'}

Message: SERVER-7610 Introduced relaxed reads on an atomic int and used it on the kill pending accessor.
Branch: master
https://github.com/mongodb/mongo/commit/c9d95847ffdb2f42387066fd00edb2588c4fadef

Comment by auto [ 19/Nov/12 ]

Author:

{u'date': u'2012-11-15T22:24:59Z', u'email': u'mathias@10gen.com', u'name': u'Mathias Stearn'}

Message: SERVER-7610 use volatile bool for _killPending flag rather than AtomicInt32

10x faster
Branch: master
https://github.com/mongodb/mongo/commit/ddd8f52f5aa548c021841c89ef35485ba5876726

Generated at Thu Feb 08 03:15:02 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.