Skip to content

Scripts used to build seastar shared library and package for ubuntu

License

Notifications You must be signed in to change notification settings

cpv-project/seastar-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scripts used to build seastar shared library and package for ubuntu

Codacy Badge license

Install from ubuntu ppa (for users)

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

Compile and execute example program (for users)

cd examples
g++-9 $(pkg-config --cflags seastar) tcp_echo_server.cpp $(pkg-config --libs seastar) -O3
./a.out

Compile and execute example program in debug mode with sanitizers (for users)

cd examples
g++-9 $(pkg-config --cflags seastar-debug) tcp_echo_server.cpp $(pkg-config --libs seastar-debug)
./a.out

Build local package (for advance users)

To build this package, gcc-9 is required, see install steps above.

sh build.sh local

Build source package and publish to ppa (for myself)

sh build.sh ppa
cd build
dput ppa:username/project seastar_version_source.changes

Performance tips

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.

Links

License

LICENSE: MIT LICENSE
Copyright © 2018-2019 303248153@github
If you have any license issue please contact [email protected].

About

Scripts used to build seastar shared library and package for ubuntu

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages