Skip to content

Feature Request: Thread Affinity #476

Closed
@Tianpingan

Description

@Tianpingan

Hi Developers!

We are building a new application on top of high performance storage products, NVMe SSDs for example along with RocksDB. To fully utilize potentials of the hardware, we are using a Thread-per-Core model, similar to SPDK, Seastar and Glommio, meaning we need to dedicate a few cores to them.

After investigation, we see two options: isolcpus and thread-affinity. We rule out the former as it is not flexible enough and does not meet deployment requirements. RocksDB is extensible through Env, where Filesystem, etc are abstracted. Unfortunately, I do not see a good place to plug thread affinity in.

A preliminary attempt is made here.

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

Status

✅ Shipped

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions