Skip to content
This repository has been archived by the owner on Jan 9, 2025. It is now read-only.

using java Runtime.getRuntime().availableProcessors() for channel count config #562

Answered by fh-ms
guykatz asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, this is basically a good idea. Keep in mind that the number of channels must be a power of 2.
An example can be found in the Bookstore Demo:

https://github.com/microstream-one/bookstore-demo/blob/master/src/main/java/one/microstream/demo/bookstore/BookStoreDemo.java#L165

It doesn't utilize all cores for the channels, in order to leave some for the OS, housekeeping and the application itself.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by guykatz
Comment options

You must be logged in to vote
1 reply
@guykatz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants