In order to support Debian/Bullseye, we know require minimal kernel version - 5.10

This commit is contained in:
Roman Gershman 2022-05-26 20:04:33 +03:00
parent 6e7d3d215f
commit 4a2e84b975
3 changed files with 10 additions and 10 deletions

View File

@ -16,8 +16,8 @@ TODO.
## Running the server
Dragonfly runs on linux. It uses relatively new linux specific [io-uring API](https://github.com/axboe/liburing)
for I/O, hence it requires Linux version 5.11 or later.
Ubuntu 20.04.4 or 22.04 fit these requirements.
for I/O, hence it requires Linux version 5.10 or later.
Debian/Bullseye, Ubuntu 20.04.4 or later fit these requirements.
### With docker:
@ -26,10 +26,10 @@ Ubuntu 20.04.4 or 22.04 fit these requirements.
docker pull ghcr.io/dragonflydb/dragonfly:latest && \
docker tag ghcr.io/dragonflydb/dragonfly:latest dragonfly
docker run --network=host --rm dragonfly
docker run --network=host --ulimit memlock=-1 --rm dragonfly
```
Some hosts may require adding `--ulimit memlock=-1` to `docker run` options.
*You need `--ulimit memlock=-1` because some Linux distros configure the default memlock limit for containers as 64m and Dragonfly requires more.*
### Building from source
@ -46,7 +46,7 @@ sudo apt install ninja-build libunwind-dev libboost-fiber-dev libssl-dev \
./helio/blaze.sh -release
# Build
cd build-opt && ninja dragonfly
cd build-opt && ninja dragonfly
# Run
./dragonfly --alsologtostderr

2
helio

@ -1 +1 @@
Subproject commit 43f9efe45e6dc4b44b9a0fe705fc72c3c61a0d5d
Subproject commit d74a2550d5d5a587718c8d606dd1797e05db7442

View File

@ -83,8 +83,8 @@ int main(int argc, char* argv[]) {
base::sys::KernelVersion kver;
base::sys::GetKernelVersion(&kver);
if (kver.major < 5 || (kver.major == 5 && kver.minor < 11)) {
LOG(ERROR) << "Kernel 5.11 or later is supported. Exiting...";
if (kver.kernel < 5 || (kver.kernel == 5 && kver.major < 10)) {
LOG(ERROR) << "Kernel 5.10 or later is supported. Exiting...";
return 1;
}
@ -93,8 +93,8 @@ int main(int argc, char* argv[]) {
return 1;
}
CHECK_LT(kver.minor, 99u);
dfly::kernel_version = kver.major * 100 + kver.minor;
CHECK_LT(kver.major, 99u);
dfly::kernel_version = kver.kernel * 100 + kver.major;
if (FLAGS_maxmemory == 0) {
LOG(INFO) << "maxmemory has not been specified. Deciding myself....";