F-Stack / f-stack

F-Stack is an user space network development kit with high performance based on DPDK, FreeBSD TCP/IP stack and coroutine API.
http://www.f-stack.org
Other
3.81k stars 887 forks source link

how set DPDK EAL parameters? #360

Open fantastic2085 opened 5 years ago

fantastic2085 commented 5 years ago

run redis3.2.8 based on fstack, below: ./start.sh -b /.../f-stack/app/redis-3.2.8/src/redis-server -o /.../f-stack/app/redis-3.2.8/redis.conf ./redis-server --conf /.../f-stack/config.ini --proc-type=primary --proc-id=0 .../f-stack/app/redis-3.2.8/redis.conf

but, how use DPDK EAL parameters?like -c or -l

I found that using the above startup mode, there is no DPDK EAL parameters, only running on one CPU logic core (see using mpstat), I want to run on multiple cores, how to do?

fantastic2085 commented 5 years ago

image

fantastic2085 commented 5 years ago

--lcores can not set?

fantastic2085 commented 5 years ago

Does fstack use the DPDK multiprocess model?

cxl-ironman commented 5 years ago

fstack是否使用DPDK多进程模型?

see f-stack/conf.ini

fantastic2085 commented 5 years ago

fstack是否使用DPDK多进程模型?

see f-stack/conf.ini @cxl-ironman in f-stack/conf.ini: lcore_list is the same as DPDK EAL parameters --lcores or -c or -l?

fantastic2085 commented 5 years ago

I set lcore_list=0-5 lcore_mask=1 Is that right?

fantastic2085 commented 5 years ago

lcore_mask=1 lcore_list only be set 0, if lcore_list be set 0-5, can not run

lcore_list is not the same as DPDK EAL parameters --lcores or -c or -l.

if lcore_mask be set > 1, start.sh will create more thar one process.

fantastic2085 commented 5 years ago

I want that DPDK create thread not process

cxl-ironman commented 5 years ago

lcore_mask=1 lcore_list only be set 0, if lcore_list be set 0-5, can not run

lcore_list is not the same as DPDK EAL parameters --lcores or -c or -l.

if lcore_mask be set > 1, start.sh will create more thar one process.

There is no entry named "lcore_list"in the conf. Are you looking at port_list as lcore_list?

fantastic2085 commented 5 years ago

lcore list used to handle this port

the format is same as port_list

lcore_list= 0

above in config.ini @cxl-ironman

jfb8856606 commented 5 years ago

but, how use DPDK EAL parameters?like -c or -l

Set the value lcore_mask, like -c of DPDK.

lcore_list means which port will bond to which lcores while use more than one port.