update doc of syscall.

This commit is contained in:
fengbojiang 2023-05-18 11:19:40 +08:00
parent d5d872badf
commit cbcadd4435
1 changed files with 1 additions and 6 deletions

View File

@ -20,11 +20,6 @@ Overall conclusion:
- There are still memory leaks and easy deadlocks when the process ends.
- Some interfaces (such as `sendmsg`, `readv`, `readmsg`, etc.) have not been optimized and tested because they have not been used yet, and further performance optimization and testing are needed.
- Lack of longer running verification, there may be some unknown hidden problems that have not been discovered yet.
- When multiple F-Stack instances are running, it cannot be used as a client temporarily, such as Nginx's proxy. The reference modification plan is as follows:
- @铁皮大爷: I have implemented a similar logic before, but I added RSS in the hook. Delay the socket establishment (only after determining the target and source, then select which F-Stack as the worker process. It is required to set RSS symmetric hash when receiving on the network card to ensure that the output and input can be in the same F-Stack worker).
- app -> `socket`: hold a socket operation, create fd (fd1), and return it to the user.
- app -> `bind`: hold a bind operation, bind the bind parameters to fd1, and return it to the user.
- app -> `connect`: add a connect parameter to bind on fd1, calculate according to RSS symmetric hash, select an F-Stack process (worker), and hand over the held `socket`, `bind`, and `connect` to the F-Stack process, and wait for synchronous return results.
## Compilation of `libff_syscall.so`
@ -390,4 +385,4 @@ Configure the process ID of the user application program, which can be used with
export FF_PROC_ID=1
```
If the user application program can configure CPU affinity, you can ignore this parameter, such as the `worker_cpu_affinity` parameter in the Nginx
If the user application program can configure CPU affinity, you can ignore this parameter, such as the `worker_cpu_affinity` parameter in the Nginx