Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Du <[email protected]>
  • Loading branch information
frankdjx committed Nov 14, 2023
1 parent d7fff4e commit 05e3a8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion app/tools/lcore_shmem_mgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ static void lsm_print_help() {
printf("Params:\n");
printf(" --help: Print the help information\n");
printf(" --info: Print lcore shared manager detail info\n");
printf(" --info: Print lcore shared manager detail info\n");
printf(" --clean_pid_auto_check: Clean the dead entries if PID is not active\n");
printf(" --clean_lcore <lcore id>: Clean the entry by lcore ID\n");

Expand Down
3 changes: 2 additions & 1 deletion doc/lcore.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ It minimizes the impact of OS scheduler decisions, reduces cache-related issues,

## 2. Lcore manager for multi process

IMTL supports multi-process deployment based on SR-IOV VF isolation. To manage the dispatching of lcores among multiple processes, it introduces shared memory mapping to maintain the status of lcore usage. Each process searches the mapping and allocates a new lcore slot from it, freeing the slot when it is no longer in use. The last user attached to the shared memory will reset the mapping to an initial status during the `shmdt` operation as part of the release routine.
IMTL supports multi-process deployment based on SR-IOV VF isolation. To manage the dispatching of lcores among multiple processes, it introduces shared memory mapping to maintain the status of lcore usage. Each process searches the mapping and allocates a new lcore slot from it, freeing the slot when it is no longer in use.
The last user attached to the shared memory will reset the mapping to an initial status during the `shmdt` operation as part of the release routine.

IMTL also provides a tool which can be find from `./build/app/LcoreMgr` for manually cleaning up lcore entries. This tool is typically used when a process fails to release lcores due to panic issues or other failures that prevent the regular free routine from running. Below is the usage information:

Expand Down

0 comments on commit 05e3a8e

Please sign in to comment.