Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wuxb45 authored Mar 1, 2021
1 parent 71e2b23 commit 06b2162
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down

0 comments on commit 06b2162

Please sign in to comment.