aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMatthias Goergens <matthias.goergens@gmail.com>2024-03-05 15:10:21 +0100
committerBernd Schubert <bschubert@ddn.com>2024-03-07 11:56:04 +0100
commitbb9cecbf67341e03e53dd36b8f69520f3a26f834 (patch)
treecd9ed27fad20dfcdcbce5aa864dd5b846f23476b /test
parent9e35addc358375c9228fcc2d5df780e9f4fef164 (diff)
downloadlibfuse-bb9cecbf67341e03e53dd36b8f69520f3a26f834.tar.gz
Use posix_spawn instead of fork+exec
Client code might allocate a lot of memory before starting the mount. Fork is slow for processes that are using a lot of memory. But posix_spawn fixes that. Another issue with fork is if the process is also doing RDMA - this might lead to data corruption, as least if memory used for RDMA is not marked with MADV_DONTFORK. At least with linux kernels before 5.12. Also see https://blog.nelhage.com/post/a-cursed-bug/ for more details Change by Bernd: This also prepares the new fusermount option "--comm-fd", but keeps the previous way to pass the parameter as env variable. In a future release (exact data to be determined) we are going to remove usage of the env variable and will switch to the new parameter.
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions