Apr20

Meetup notes: Back to the future with C++ and Seastar

Subscribe to Our Blog

ScyllaDB founder Avi Kivity presented “Back to the future with C++ and Seastar” at the recent Sayeret Lambda Meetup group, helping to revise the audience’s impressions of the C++ language. C++ is often thought of as a legacy imperative language with roots in 1970s C. But in the past few years it has been thoroughly modernized, now offering streamlined support for modern paradigms such as lambda, metaprogramming, and functional programming, while retaining no-compromise performance.

Photo: Tzach Livyatan for Cloudius Systems

Seastar is a modern, open source server application framework written in C++ that presents a future/promise based API to the user while delivering top-of-the line performance—more than five times the nearest competitor, with 7 million requests per second served on a single machine.

The Meetup group had a good attendance of about 35 people. Some of the Seastar questions included:

  • Can you run Seastar on a subset of the cores? (answer: yes)
  • How do you pin memory? (answer: Each thread is preallocated with a large piece of memory. By default, the machine’s entire memory except a small reservation left for the OS (defaulting to 512 MB) is pre-allocated for the application. Pages are NUMA bound to the local node with mbind.)

Here are some additional questions that were asked, and you’re welcome to use the mailing list to get answers:

  1. On the Memcache results: did you try running Memcache on DPDK without Seatsar?
  2. Did you test with and without HyperThreads?
  3. How do you debug/trace the execution task?
  4. Can you run Seastar on a subset of the cores?
  5. How do you use external libs from Seastar?
  6. Can you use it from Python?
  7. What happened when the system/queues are overloaded?
  8. Can you simulate Boost.Asio ?
  9. How do you pin memory?
  10. Are you production ready? when will 1.0 be available?
  11. Who Framed Roger Rabbit?

Seastar is designed to make it possible to write code that is both scalable to large numbers of CPU cores and also straightforward to work with.

If you have Seastar questions of your own, please join the seastar-dev mailing list, and and ask as many as you like. Or follow @ScyllaDB on Twitter for announcements of future events.

Tzach LivyatanAbout Tzach Livyatan

Tzach Livyatan has a B.A. and MSc in Computer Science (Technion, Summa Cum Laude), and has had a 15 year career in development, system engineering and product management. In the past he worked in the Telecom domain, focusing on carrier grade systems, signalling, policy and charging applications.


Tags: seastar