Browse Source

Bump facil.io version (#3753)

* Bump facil.io version

A number of fixes were applied, some of which might effect performance.

Please consider updating the framework's patch version.

* Use less threads

At the moment, facil.io is set up to use all available CPU cores. This leaves no room for the kernel.

This change reduces the number of CPU cores used by reducing the number of threads per worker process.
Bo 7 years ago
parent
commit
2d87f10b2e

+ 1 - 1
frameworks/C/facil.io/facil.io.dockerfile

@@ -15,4 +15,4 @@ RUN cp -f bench_app.c facil_app/src/app.c
 RUN cd facil_app && make -j build
 RUN cd facil_app && make -j build
 
 
 # Run the app
 # Run the app
-CMD ./facil_app/tmp/demo -p 8080 -db "tfb-database" -w 4 -t -4
+CMD ./facil_app/tmp/demo -p 8080 -db "tfb-database" -w 4 -t -5

+ 1 - 1
frameworks/C/facil.io/setup-common.sh

@@ -17,7 +17,7 @@ if [[ (! -d facil_app) ||  (-n "${FIO_EDGE}") ]] ; then
 	# Setting FIO_EDGE will test against the master branch on the development machine. i.e.:
 	# Setting FIO_EDGE will test against the master branch on the development machine. i.e.:
 	#     $ FIO_EDGE=1 tfb --mode verify --test facil.io
 	#     $ FIO_EDGE=1 tfb --mode verify --test facil.io
 	if [[ -z "${FIO_EDGE}" ]]; then
 	if [[ -z "${FIO_EDGE}" ]]; then
-	  FIO_URL="https://api.github.com/repos/boazsegev/facil.io/tarball/0.6.2"
+	  FIO_URL="https://api.github.com/repos/boazsegev/facil.io/tarball/0.6.4"
 	else
 	else
 		echo "INFO: development mode detected, loading facil.io from master."
 		echo "INFO: development mode detected, loading facil.io from master."
 		FIO_URL="https://github.com/boazsegev/facil.io/archive/master.tar.gz"
 		FIO_URL="https://github.com/boazsegev/facil.io/archive/master.tar.gz"