Single digit ms latency with thread per core architecture

409 views
Skip to first unread message

masquera...@gmail.com

unread,
Sep 3, 2020, 12:03:28 AM9/3/20
to mechanical-sympathy
Hi there,

Once in a while on twitter will pop-up with thread per core architecture links.

The only product on the market I know who does that is ScyllaDb.
The underlaying infrastructure behind Scylla is Seastar/C++ http://seastar.io/

I know you can isolate cores and pin threads but was wondering if there is 
something similar to Seastar in Java.

Thank you,
Ruslan

Gil Tene

unread,
Sep 3, 2020, 1:05:50 AM9/3/20
to mechanical-sympathy
Peter Lawry created some cool tooling for java thread affinity a while back. Look at https://github.com/OpenHFT/Java-Thread-Affinity

dor laor

unread,
Sep 10, 2020, 10:27:35 PM9/10/20
to mechanica...@googlegroups.com
Ruslan, thread per core (the Scylla version is per shard, which includes memory pinning, direct I/O,
etc) is just the beginning. There are many challenges with it. See Avi's presentation for

You'll have to change all of the locking, make sure the shards are balanced and the client
connections/streams are balanced. Make sure the I/O is divided fairly and is also balanced and more.

Lots of fun! 

--
You received this message because you are subscribed to the Google Groups "mechanical-sympathy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mechanical-symp...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/mechanical-sympathy/e4d51d66-5f67-4048-bfcf-abe7d693f91dn%40googlegroups.com.

masquera...@gmail.com

unread,
Sep 14, 2020, 4:57:43 PM9/14/20
to mechanical-sympathy
Gil and dor...@gmail.com,

Thank you this was very helpful, now will move on with my curiosity journey!

Reply all
Reply to author
Forward
0 new messages