Skip to content

Seeking guidance on keeping the number of file descriptors low. #82

Closed Answered by marvin-j97
StephanvanSchaik asked this question in Q&A
Discussion options

You must be logged in to vote

This is caused by caching of file descriptors for read operations in the DescriptorTable (akin to the TableCache in RocksDB). The default depends on the OS:

fjall/src/config.rs

Lines 57 to 66 in d00876b

fn get_open_file_limit() -> usize {
#[cfg(not(any(target_os = "windows", target_os = "macos")))]
return 900;
#[cfg(target_os = "windows")]
return 400;
#[cfg(target_os = "macos")]
return 150;
}

This does not scale with partitions. Partitions themselves do not open a file descriptor permanently. Instead these are file descriptors for the segment files in the LSM-tree (each partition being one LSM-tree). That also means that dropp…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by StephanvanSchaik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants