Supported version: 18.04 (bionic)
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:compiv/cpv-project
sudo apt-get update
sudo apt-get install seastar
In addition, you have to install gcc-9 because the package is built with it.
(Why use gcc-9: seastar won't support old compiler for long period, and I don't want to add patches for old compiler)
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get install g++-9
cd examples
g++-9 $(pkg-config --cflags seastar) tcp_echo_server.cpp $(pkg-config --libs seastar) -O3
./a.out
cd examples
g++-9 $(pkg-config --cflags seastar-debug) tcp_echo_server.cpp $(pkg-config --libs seastar-debug)
./a.out
To build this package, gcc-9 is required, see install steps above.
sh build.sh local
sh build.sh ppa
cd build
dput ppa:username/project seastar_version_source.changes
Because seastar implements custom task scheduler, the performance compare to other framework maybe lower on low end machine, one solution is set higher value of --task-quota-ms
option, like --task-quota-ms=20
, this solution has increase throughput by 35% on my vps. Of cause there will be some penalty, see this discussion for more details.
LICENSE: MIT LICENSE
Copyright © 2018-2019 303248153@github
If you have any license issue please contact [email protected].