Commit Graph

17 Commits

Author SHA1 Message Date
fengbojiang 4af5a643fb 1. Fixed some issue that sem_timewait and sem_post.
2. Modify timeout of epoll_wait/kevent from 100us to 100ms by default.
3. set cpu affinity in main_stack_epoll_thread socket.
2023-04-13 19:27:57 +08:00
fengbojiang d3fabc9cef some opt. 2023-04-13 19:05:46 +08:00
fengbojiang e45925dd79 Don't free the memory malloc with rte_malloc in most commonly used socket API, to improve proformance.
The performance of single instance from 200,000 QPS improve to 260,000QPS.
NOTE:May cause memory leak.
2023-04-12 18:57:59 +08:00
fengbojiang dfb462caa7 Save the event num kevent or epoll_wait returned, Use for burst process event in one F-Stack loop to improve performance.
The performance of single instance improve from 4500 QPS to 200, 000
QPS.
2023-04-12 18:55:27 +08:00
fengbojiang 2471d2560c Modify some log. 2023-04-12 17:48:39 +08:00
fengbojiang 03b606ff9b Support timeout is NULL or 0 in libffsyscall.so.
And support it in main_stack.c.
2023-04-12 12:00:53 +08:00
fengbojiang e58d683b24 burst copy in ff_hook_epoll_wait. 2023-04-12 10:15:22 +08:00
fengbojiang 1d09ad5003 Fixed some issue that check the return value of sem_timedwait. 2023-04-11 17:51:34 +08:00
fengbojiang 8766cedde1 Add timeout in kevent. 2023-04-08 09:29:50 +08:00
fengbojiang f27d862f85 1. Add kevent demo, need link libff_syscall.so, not LD_PRELOAD.
2. Fix some issues.
2023-04-07 20:39:31 +08:00
fengbojiang e8ed03b521 Modify FF_SOCKET_THREAD disable by default. 2023-04-07 13:44:41 +08:00
fengbojiang baceb8fd64 1. Add FF_PROC_ID environment variable to fix the issue that secondary APP's process get sc
from the first ff_so_zone.
2. SIGINT can destructor sc.
2023-04-07 10:43:37 +08:00
fengbojiang 799c39d5f0 Fix the issue that not detach sc while destructor in exit. 2023-04-06 21:48:57 +08:00
fengbojiang 0efc8b3374 Fixed some issue in multi instances. 2023-04-06 19:09:55 +08:00
fengbojiang edcac626c5 Optimize some code. 2023-04-06 18:23:35 +08:00
fengbojiang fe7e360eca Add FF_THREAD_SOCKET in Makefile, Whether to use thread-level socket,
default enable.
2023-04-06 18:02:47 +08:00
fengbojiang 865ab0ed63 Add adapter for LD_PRELOAD, TBC. 2023-04-06 15:02:39 +08:00