- Notifications
You must be signed in to change notification settings - Fork34
Fork from official redis-3.0.5, and run on the dpdk user space TCP/IP stack(ANS).
License
NotificationsYou must be signed in to change notification settings
ansyun/dpdk-redis
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Fork from official redis-3.0.5, and run on the dpdk user space TCP/IP stack(ANS"Acceleted Network Stack"). For detail function, please refer to redis official website(http://redis.io//).
- Download latest dpdk version fromdpdk website, and build dpdk
$ make config T=x86_64-native-linuxapp-gcc$ make install T=x86_64-native-linuxapp-gcc$ export RTE_SDK=/home/mytest/dpdk$ export RTE_TARGET=x86_64-native-linuxapp-gcc- Download ANS following theANS wiki, build ans and startup ans
$ git clone https://github.com/ansyun/dpdk-ans.git$ export RTE_ANS=/home/mytest/dpdk-ans$ ./install_deps.sh$ cd ans$ make$ sudo ./build/ans -c 0x2 -n 1 -- -p 0x1 --config="(0,0,1)"EAL: Detected lcore 0 as core 0 on socket 0EAL: Detected lcore 1 as core 1 on socket 0EAL: Support maximum 128 logical core(s) by configuration.EAL: Detected 2 lcore(s)EAL: VFIO modules not all loaded, skip VFIO support...EAL: Setting up physically contiguous memory...EAL: Ask a virtual area of 0x400000 bytesEAL: Virtual area found at 0x7fdf90c00000 (size = 0x400000)EAL: Ask a virtual area of 0x15400000 bytes- Download dpdk-redis, build dpdk-redis and startup dpdk-redis
$ git clone https://github.com/ansyun/dpdk-redis.git$ make# ./src/redis-server redis.confstart init anssockEAL: Detected lcore 0 as core 0 on socket 0EAL: Detected lcore 1 as core 1 on socket 0EAL: Detected lcore 2 as core 2 on socket 0EAL: Detected lcore 3 as core 3 on socket 0EAL: Detected lcore 4 as core 4 on socket 0EAL: Detected lcore 5 as core 5 on socket 0EAL: Detected lcore 6 as core 6 on socket 0EAL: Detected lcore 7 as core 7 on socket 0EAL: Support maximum 128 logical core(s) by configuration.EAL: Detected 8 lcore(s)EAL: Setting up physically contiguous memory...EAL: WARNING: Address Space Layout Randomization (ASLR) is enabled in the kernel.EAL: This may cause issues with mapping memory into secondary processesEAL: Analysing 4 filesEAL: Mapped segment 0 of size 0x100000000EAL: TSC frequency is ~1698035 KHzEAL: Master lcore 0 is ready (tid=9ca268c0;cpuset=[0])USER8: LCORE[-1] anssock any lcore id 0xffffffffUSER8: LCORE[2] anssock app id: 17217USER8: LCORE[2] anssock app name: redis-serverUSER8: LCORE[2] anssock app lcoreId: 2USER8: LCORE[2] mp ops number 4, mp ops index: 017217:M 05 Jan 20:54:43.676 * Increased maximum number of open files to 150032 (it was originally set to 65535).skip linux fd 8 _._ _.-``__ ''-._ _.-`` `. `_. ''-._ Redis 3.0.5 (c279671c/0) 64 bit .-`` .-```. ```\/ _.,_ ''-._ ( ' , .-` | `, ) Running in standalone mode |`-._`-...-` __...-.``-._|'` _.-'| Port: 6379 | `-._ `._ / _.-' | PID: 17217 `-._ `-._ `-./ _.-' _.-' |`-._`-._ `-.__.-' _.-'_.-'| | `-._`-._ _.-'_.-' | http://redis.io `-._ `-._`-.__.-'_.-' _.-' |`-._`-._ `-.__.-' _.-'_.-'| | `-._`-._ _.-'_.-' | `-._ `-._`-.__.-'_.-' _.-' `-._ `-.__.-' _.-' `-._ _.-' `-.__.-'- Performance Testing
====ENV=== CPU:Intel(R) Xeon(R) CPU E5-2609 v4 @ 1.70GHz.NIC:Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection (rev 01) ANS run on a lcore.root@ubuntu:~/src/dpdk-redis# ./src/redis-benchmark -h 10.0.0.2 -p 6379 -n 100000 -c 50 -qPING_INLINE: 138888.89 requests per secondPING_BULK: 141242.94 requests per secondSET: 140449.44 requests per secondGET: 141043.72 requests per secondINCR: 141442.72 requests per secondLPUSH: 141043.72 requests per secondLPOP: 140449.44 requests per secondSADD: 141643.06 requests per secondSPOP: 141843.97 requests per secondLPUSH (needed to benchmark LRANGE): 141442.72 requests per secondLRANGE_100 (first 100 elements): 48192.77 requests per secondLRANGE_300 (first 300 elements): 14330.75 requests per secondLRANGE_500 (first 450 elements): 10405.83 requests per secondLRANGE_600 (first 600 elements): 7964.95 requests per secondMSET (10 keys): 107758.62 requests per second- dpdk-redis vs official redis benchmark results
official redis test was executed using the loopback interface.benchmark results.
dpdk-redis test was executed using the 82599ES interface.If run more redis-benchmark, could get higher performance.
- with pipelining# ./src/redis-benchmark -h 10.0.0.2 -r 1000000 -n 2000000 -t get,set,lpush,lpop -P 16 -qSET: 645577.81 requests per secondGET: 851063.88 requests per secondLPUSH: 897666.12 requests per secondLPOP: 984251.94 requests per second- without pipelining# ./src/redis-benchmark -h 10.0.0.2 -r 1000000 -n 2000000 -t get,set,lpush,lpop -qSET: 137080.19 requests per secondGET: 137315.48 requests per secondLPUSH: 138446.62 requests per secondLPOP: 138600.14 requests per second- Linode 2048 instance (with pipelining)# ./src/redis-benchmark -h 10.0.0.2 -r 1000000 -n 2000000 -t get,set,lpush,lpop -q -P 16SET: 620925.19 requests per secondGET: 821355.25 requests per secondLPUSH: 903750.56 requests per secondLPOP: 982800.94 requests per second-Linode 2048 instance (without pipelining)# ./src/redis-benchmark -h 10.0.0.2 -r 1000000 -n 2000000 -t get,set,lpush,lpop -qSET: 137296.62 requests per secondGET: 137693.64 requests per secondLPUSH: 139528.39 requests per secondLPOP: 139014.39 requests per second- Shall use the same gcc version to compile your application.
- In order to improve ANS performance, you shall isolate ANS'lcore from kernel by isolcpus and isolcate interrupt from ANS's lcore by update /proc/irq/default_smp_affinity file.
- You shall include dpdk libs as below way because mempool lib hasattribute((constructor, used)) in dpdk-16.07 version, otherwise your application would coredump.
$(RTE_ANS)/librte_anssock/librte_anssock.a \ -L$(RTE_SDK)/$(RTE_TARGET)/lib \ -Wl,--whole-archive -Wl,-lrte_mbuf -Wl,-lrte_mempool -Wl,-lrte_ring -Wl,-lrte_eal -Wl,--no-whole-archive -Wl,-export-dynamic \For free support, please use ans team mail list atanssupport@163.com, or QQ Group:86883521, orhttps://dpdk-ans.slack.com.
About
Fork from official redis-3.0.5, and run on the dpdk user space TCP/IP stack(ANS).
Resources
License
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published