-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
storage: Disable timed mutex by default #13388
Conversation
Review status: 0 of 1 files reviewed at latest revision, 1 unresolved discussion, some commit checks pending. pkg/storage/timedmutex.go, line 97 at r1 (raw file):
Should we avoid doing this if cb is nil? I'm not sure how expensive getting the current time is (although I probably should know it...) Comments from Reviewable |
Reviewed 1 of 1 files at r1. Comments from Reviewable |
Review status: 0 of 1 files reviewed at latest revision, 1 unresolved discussion, some commit checks pending. pkg/storage/timedmutex.go, line 97 at r1 (raw file): Previously, a-robinson (Alex Robinson) wrote…
Good idea; I added a second commit. Getting the current time is a system call (I saw tons of these when running cockroach under Comments from Reviewable |
Eh? I'm pretty sure |
Reviewed 1 of 1 files at r1, 1 of 1 files at r2. Comments from Reviewable |
Ah, interesting. I called it a system call because it showed up in |
These messages currently trigger very often and scare users because they look like exceptions or crashes. We should only have them enabled on our test clusters where we are watching for them.
27bd0e1
to
c4fa838
Compare
I tried benchmarking it for fun, and on my macbook I get
So it's definitely not going through a system call. |
Note that the |
These messages currently trigger very often and scare users because
they look like exceptions or crashes. We should only have them enabled
on our test clusters where we are watching for them.
This change is