Update system tuning and docs (bp #11680) (#11829)

* Sync FD limit and max maps to 500k

(cherry picked from commit 11951eb009)

* Expand system tuning docs

(cherry picked from commit 5354df8c1c)

* clippy

Co-authored-by: Trent Nelson <trent@solana.com>
This commit is contained in:
mergify[bot]
2020-08-25 20:39:00 +00:00
committed by GitHub
parent f88b0c4827
commit c1f9a9a021
5 changed files with 58 additions and 7 deletions

View File

@@ -3295,7 +3295,7 @@ fn adjust_ulimit_nofile() -> Result<()> {
fn adjust_ulimit_nofile() -> Result<()> {
// Rocks DB likes to have many open files. The default open file descriptor limit is
// usually not enough
let desired_nofile = 65000;
let desired_nofile = 500_000;
fn get_nofile() -> libc::rlimit {
let mut nofile = libc::rlimit {