Commit Graph

13 Commits (9bd490e8d3e2ef54f39e9b273ff9aa5a6c40b360)

Author SHA1 Message Date
fengbojiang 1c1eafbf32 fix a typo 2018-08-16 16:25:57 +08:00
10077240 b43e0dde49 replace __linux__ with HAVE_FF_KQUEUE
Only f-stack redis server need bind cpu,  and forked process will inherit it.
2018-08-09 07:16:44 +08:00
10077240 9518765b1f reset cpu affinity when new process forked.
New forked process should not compete same core with redis server.
2018-08-08 07:40:39 +08:00
fengbojiang(姜凤波) 5c6bf25f18 Fixed redis' compile error of 'struct timespec' when use gcc7.3.0 on ubuntu 18.04. 2018-07-10 16:08:05 +08:00
logwang 2bfe3f2e55 DPDK: upgrade to 17.11.2 LTS.
Changes:
1. This version is downloaded from
https://fast.dpdk.org/rel/dpdk-17.11.2.tar.xz.
2. Adapt the new interface `rte_ring_dequeue_burst`.
3. Change the type of `port_id` from uint8_t to uint16_t.
4. Just link libdpdk.a instead of the other libaries.
5. Install libnuma-dev first.
6. Update the documents.
2018-05-15 17:49:22 +08:00
Tonghao Zhang 1bdefaef52 redis: Use the ff_gettimeofday instead of gettimeofday.
In the redis, the gettimeofday uses too much CPU, even using the
vdso. This patch is useful to avoid wasting CPU cycles and
improve the performance.

Signed-off-by: Tonghao Zhang <xiangxia.m.yue@gmail.com>
2017-08-30 19:48:48 -07:00
Tonghao Zhang f7ca998abb redis: Fix the bug which parsing arg ERRO.
For using the redis, we should allow users to configure
theirs configure file. Now fstack uses the options as below:
—-conf config.ini --proc-type= --proc-id=

And we should skip 4 args(including program name arg), not 3.

Use the redis-config-file:
bin/redis-server --conf config.ini \
	--proc-type=primary --proc-id=0 redis-3.2.8/redis.conf

Signed-off-by: Tonghao Zhang <xiangxia.m.yue@gmail.com>
2017-08-25 00:05:09 -07:00
logwang a02c88d651 Simplify startup arguments and add ff_fdisused.
Changes:
1.Simplify f-stack startup arguments:"--conf, --proc-type, --proc-id".
2.add a function `ff_fdisused` to check if fd is used in f-stack.
2017-08-08 22:36:49 +08:00
logwang 408caf3346 Related #42: add a license for anet_ff.c. 2017-06-30 16:43:02 +08:00
Ron 12e31dcff6 Fix: redis build failed 2017-06-13 09:51:19 +08:00
whl739 50adc53472 Redis: bind to 0.0.0.0 by default. 2017-05-15 11:59:47 +08:00
whl739 bf96e9ee00 Fix #6: Redis compile error.
The previous codes of redis is pushed on Windows, and lost the permission to execute.
2017-05-15 11:44:23 +08:00
logwang a9643ea85c init 2017-04-21 18:43:26 +08:00