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>
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>