Last active
August 7, 2021 16:03
-
-
Save danielealbano/0c1547ff85c2c22438ce1a904f9dcafe to your computer and use it in GitHub Desktop.
cachegrand benchmark env server and client setup script
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
#!/bin/bash | |
apt update | |
DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt-get -q -y -o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options::=--force-confold" upgrade | |
apt install -y build-essential autoconf automake libpcre3-dev libevent-dev pkg-config zlib1g-dev libssl-dev iftop htop git nload | |
cd /usr/local/src | |
git clone https://github.com/RedisLabs/memtier_benchmark.git | |
cd memtier_benchmark/ | |
autoreconf -ivf | |
./configure | |
make | |
make install | |
cd /root | |
sudo add-apt-repository -y ppa:redislabs/redis | |
sudo apt-get update | |
sudo apt-get install -y redis | |
sudo systemctl disable --now redis-server | |
apt install -y \ | |
build-essential cmake pkg-config git \ | |
libssl1.1 libssl-dev \ | |
libnuma1 libnuma-dev \ | |
libcurl4-openssl-dev libcurl4 \ | |
libyaml-0-2 libyaml-dev | |
cd /usr/local/src | |
git clone https://github.com/danielealbano/cachegrand.git | |
cd cachegrand | |
git submodule update --init --recursive | |
mkdir cmake-build-release/ | |
cd cmake-build-release/ | |
cmake .. -DCMAKE_BUILD_TYPE=Release -DUSE_HASH_ALGORITHM_T1HA2=1 | |
make cachegrand-server | |
echo 10000 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages | |
echo 'vm.nr_hugepages = 10000' > /etc/sysctl.d/99-hugepages.conf | |
apt purge -y apparmor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment