From 4266d4d5ff96043f6d2fbd217e97eddf8916e346 Mon Sep 17 00:00:00 2001 From: hanlin Date: Tue, 19 May 2020 17:34:17 +0800 Subject: vcl: nest vcl_mq_epfd to support epoll_wait without high CPU usage Now, libc epfd and vls epfd are independent and can only epoll_wait independently without timeout, then app calling epoll_wait will occupy high CPU. So we nest vcl_mq_epfd into libc epfd when using eventfd with VPP, and then we can only epoll_wait libc epfd with specified timeout. Type: feature Signed-off-by: hanlin Change-Id: I6b6e0f501c769e186714bfbc187cfaed2533b4c2 Signed-off-by: hanlin --- src/vcl/vcl_locked.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/vcl/vcl_locked.h') diff --git a/src/vcl/vcl_locked.h b/src/vcl/vcl_locked.h index 2c8f2115230..18b341b11ca 100644 --- a/src/vcl/vcl_locked.h +++ b/src/vcl/vcl_locked.h @@ -50,6 +50,7 @@ vcl_session_handle_t vlsh_to_sh (vls_handle_t vlsh); vcl_session_handle_t vlsh_to_session_index (vls_handle_t vlsh); vls_handle_t vls_session_index_to_vlsh (uint32_t session_index); int vls_app_create (char *app_name); +unsigned char vls_use_eventfd (void); #endif /* SRC_VCL_VCL_LOCKED_H_ */ -- cgit 1.2.3-korg