This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge volatile module, store persistent and volatile module in root d…
…ir (#349) Cherry-pick volatile branch, store persistent and volatile module to independent directories. Signed-off-by: Wu, Jiayu <[email protected]>
- Loading branch information
Showing
330 changed files
with
36,239 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
[submodule "extern/gtest"] | ||
path = extern/gtest | ||
[submodule "volatile/extern/jemalloc"] | ||
path = volatile/extern/jemalloc | ||
url = https://github.com/jemalloc/jemalloc | ||
[submodule "volatile/extern/numactl"] | ||
path = volatile/extern/numactl | ||
url = https://github.com/numactl/numactl | ||
[submodule "persistent/extern/gtest"] | ||
path = persistent/extern/gtest | ||
url = https://github.com/google/googletest.git | ||
[submodule "volatile/extern/gtest"] | ||
path = volatile/extern/gtest | ||
url = https://github.com/google/googletest.git |
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# IDE related | ||
.idea/ | ||
cmake-build-* | ||
.vscode/ | ||
.vs/ | ||
|
||
# Prerequisites | ||
*.d | ||
|
||
# Compiled Object files | ||
*.slo | ||
*.lo | ||
*.o | ||
*.obj | ||
|
||
# Precompiled Headers | ||
*.gch | ||
*.pch | ||
|
||
# Compiled Dynamic libraries | ||
*.so | ||
*.dylib | ||
*.dll | ||
|
||
# Fortran module files | ||
*.mod | ||
*.smod | ||
|
||
# Compiled Static libraries | ||
*.lai | ||
*.la | ||
*.a | ||
*.lib | ||
|
||
# Executables | ||
*.exe | ||
*.out | ||
*.app | ||
|
||
build/ | ||
.cache/ | ||
|
||
scripts/result* | ||
scripts/__pycache__ | ||
|
||
java/out | ||
java/target | ||
java/benchmark/target | ||
java/examples/target | ||
java/test-libs | ||
java/*.log | ||
java/include/io_pmem_*.h | ||
java/src/main/resources |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
<div align="center"> | ||
<p align="center"> <img src="../.pic/kvdk_logo.png" height="180px"><br></p> | ||
</div> | ||
|
||
This is the persistent module of `kvdk`, based on Intel Optane Persistent Memory. | ||
|
||
## Features | ||
* Rich data types | ||
* string, sorted, hash, list, hash | ||
* Basic KV operations | ||
* get/put/update/delete/scan | ||
* Read-Modify-Write | ||
* Support TTL | ||
* Atomic Batch Write | ||
* Snapshot based Scan | ||
* Consistent Dump & Restore to/from storage | ||
* Consistent Checkpoint | ||
* Transaction | ||
* C/C++/Java APIs | ||
|
||
# Limitations | ||
* The maximum supported key-value size is 64KB-4GB. | ||
* No approach to key-value compression. | ||
* Users can't expand the persistent memory space on the fly. | ||
|
||
## Getting the Source | ||
```bash | ||
git clone --recurse-submodules https://github.com/pmem/kvdk.git | ||
``` | ||
|
||
## Building | ||
### Install dependent tools and libraries on Ubuntu 18.04 | ||
```bash | ||
sudo apt install make clang-format-9 pkg-config g++ autoconf libtool asciidoctor libkmod-dev libudev-dev uuid-dev libjson-c-dev libkeyutils-dev pandoc libhwloc-dev libgflags-dev libtext-diff-perl bash-completion systemd wget git curl | ||
|
||
git clone https://github.com/pmem/ndctl.git | ||
cd ndctl | ||
git checkout v70.1 | ||
./autogen.sh | ||
./configure CFLAGS='-g -O2' --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib | ||
make | ||
sudo make install | ||
|
||
git clone https://github.com/pmem/pmdk.git | ||
cd pmdk | ||
git checkout 1.11.1 | ||
make | ||
sudo make install | ||
|
||
wget https://github.com/Kitware/CMake/releases/download/v3.12.4/cmake-3.12.4.tar.gz | ||
tar vzxf cmake-3.12.4.tar.gz | ||
cd cmake-3.12.4 | ||
./bootstrap | ||
make | ||
sudo make install | ||
|
||
``` | ||
|
||
### Install dependent tools and libraries on CentOS 8 | ||
```bash | ||
yum config-manager --add-repo /etc/yum.repos.d/CentOS-Linux-PowerTools.repo | ||
yum config-manager --set-enabled PowerTools | ||
|
||
yum install -y git gcc gcc-c++ autoconf automake asciidoc bash-completion xmlto libtool pkgconfig glib2 glib2-devel libfabric libfabric-devel doxygen graphviz pandoc ncurses kmod kmod-devel libudev-devel libuuid-devel json-c-devel keyutils-libs-devel gem make cmake libarchive clang-tools-extra hwloc-devel perl-Text-Diff gflags-devel curl | ||
|
||
git clone https://github.com/pmem/ndctl.git | ||
cd ndctl | ||
git checkout v70.1 | ||
./autogen.sh | ||
./configure CFLAGS='-g -O2' --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib | ||
make | ||
sudo make install | ||
|
||
git clone https://github.com/pmem/pmdk.git | ||
cd pmdk | ||
git checkout 1.11.1 | ||
make | ||
sudo make install | ||
|
||
wget https://github.com/Kitware/CMake/releases/download/v3.12.4/cmake-3.12.4.tar.gz | ||
tar vzxf cmake-3.12.4.tar.gz | ||
cd cmake-3.12.4 | ||
./bootstrap | ||
make | ||
sudo make install | ||
``` | ||
|
||
### Compile KVDK | ||
```bash | ||
mkdir -p build && cd build | ||
cmake .. -DCMAKE_BUILD_TYPE=Release -DCHECK_CPP_STYLE=ON && make -j | ||
``` | ||
|
||
### How to test it on a system without PMEM | ||
```bash | ||
# set the correct path for pmdk library | ||
export LD_LIBRARY_PATH=/usr/local/lib64 | ||
|
||
# setup a tmpfs for test | ||
mkdir /mnt/pmem0 | ||
mount -t tmpfs -o size=2G tmpfs /mnt/pmem0 | ||
|
||
# force the program work on non-pmem directory | ||
export PMEM_IS_PMEM_FORCE=1 | ||
|
||
cd kvdk/build/examples | ||
# Note: this requires CPU supporting AVX512 | ||
./cpp_api_tutorial | ||
|
||
``` | ||
|
||
## Benchmarks | ||
[Here](./doc/benchmark.md) are the examples of how to benchmark the performance of KVDK on your systems. | ||
|
||
## Documentations | ||
|
||
### User Guide | ||
|
||
Please refer to [User guide](./doc/user_doc.md) for API introductions of KVDK. | ||
|
||
### Architecture | ||
|
||
# Support | ||
Welcome to join the wechat group or slack channel for KVDK tech discussion. | ||
- [Wechat](https://github.com/pmem/kvdk/issues/143) | ||
- [Slack Channel](https://join.slack.com/t/kvdksupportcommunity/shared_invite/zt-12b66vg1c-4FGb~Ri4w8K2_msau6v86Q) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.