From 06b2162d949df80c7f39be45bc79aeb5a33a3a90 Mon Sep 17 00:00:00 2001 From: Xingbo Wu Date: Mon, 1 Mar 2021 02:42:07 -0600 Subject: [PATCH] Update README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 2c8373b..2851413 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,7 @@ To compile and run the demo code: ## Configuration +### CPU affinity RemixDB employs background threads to perform asynchronous compaction. When possible (on Linux or FreeBSD), these threads are pinned on specific cores for efficiency. To avoid having conflicts with the foreground threads, it is necessary to separate the cores used by different threads. @@ -82,6 +83,11 @@ $ export XDB_CPU_LIST=12,14,16,18 $ ./xdbdemo.out ``` +### Maximum number of open files +The current implementation keeps every table file open at run time. +This requires a large `nofile` in `/etc/security/limits.conf`. +For example, add `* - nofile 100000` to `limits.conf`, reboot/relogin, and check `ulimit -n`. + ## xdbtest `xdbtest` is a stress test program that uses the `remixdb_*` functions.