94 karma · joined Nov 26, 2014 (12y ago) · 20 submissions
comment 7y ago · link · parent
comment 7y ago · link · parent
If you haven't seen it before you will appreciate https://accidentallyquadratic.tumblr.com/post/153545455987/r...
comment 7y ago · link · parent
See the steady_state_stats test at https://github.com/facebook/folly/blob/master/folly/containe...
comment 7y ago · link · parent
comment 7y ago · link · parent
comment 7y ago · link · parent
comment 7y ago · link · parent
folly's F14 maps use this strategy, and handle erase + insert workloads fine with no rehashing needed. https://github.com/facebook/folly/blob/master/folly/containe...
comment 9y ago · link · parent
comment 9y ago · link · parent
Lest it seem like I'm not actually a fan of the log-based approach, let me point out a way in which Calvin crushes Spanner: write contention. So long as the Calvin transactions can encode the application logic, they can support extremely high write rates on contended objects in the database. Spanner's 2PL, on the other hand, has single-object object update rates visible to the naked eye.
comment 9y ago · link · parent
In Spanner's design, on the other hand, a transaction can only be blocked by another one on which it actually conflicts. It will have worse average performance, but better tail latency as things scale.
Perhaps it is just a nit, but the blog post is somewhat inaccurate when it says that Spanner uses the commit timestamp to order transactions. It uses locks to order the transactions, then holds the locks for extra time to ensure that TrueTime order agrees with the lock-based order.
comment 11y ago · link · parent
For an example of this technique, check out https://github.com/facebook/folly/blob/master/folly/detail/F... . That code only implements wake and wait, but it would be straightforward to extend it to the other futex operations.
comment 12y ago · link · parent
comment 12y ago · link · parent
Out-of-order delivery causes TCP to shrink the congestion windows, which cuts throughput. Connection pools help here (in addition to their reduction in setup and teardown work), because they let the windows widen and stay open. We disable tcp_slow_start_after_idle to take advantage of this.
comment 12y ago · link · parent
comment 12y ago · link · parent