Overview
| Artifact ID: | 6fd50a7aa9d1d80ea90716ddb68319d62dfa1f469601d6c06d9049cb35ebf395 |
|---|---|
| Ticket: | c54e4a1aeb999fe8d878eae790243739ef05517a
High Tcl latencies with fork() in larger systems |
| User & Date: | pointsman on 2023-06-13 00:41:44 |
Changes
- icomment:
The example script provided by Gustaf demonstrates for me even on bare metal (not a vm) the described behaviour. On a laptop with 12 GByte physical RAM (I'm on hollidays), debian 11.7 and the loop reduced to 9 I get which core-8-6-branch: pipe open took 2ms (rss 0.00 vsize 0.01) pipe open took 3ms (rss 0.94 vsize 0.94) pipe open took 4ms (rss 1.87 vsize 1.87) pipe open took 4ms (rss 2.80 vsize 2.80) pipe open took 5ms (rss 3.73 vsize 3.73) pipe open took 46ms (rss 4.66 vsize 4.67) pipe open took 80ms (rss 5.59 vsize 5.60) pipe open took 114ms (rss 6.52 vsize 6.53) pipe open took 142ms (rss 7.46 vsize 7.46) And with ticket-c54e4a1aeb-use_vfork branch: pipe open took 2ms (rss 0.00 vsize 0.01) pipe open took 2ms (rss 0.94 vsize 0.94) pipe open took 2ms (rss 1.87 vsize 1.87) pipe open took 1ms (rss 2.80 vsize 2.80) pipe open took 2ms (rss 3.73 vsize 3.73) pipe open took 1ms (rss 4.66 vsize 4.67) pipe open took 2ms (rss 5.59 vsize 5.60) pipe open took 1ms (rss 6.52 vsize 6.53) pipe open took 2ms (rss 7.46 vsize 7.46) The test suite with branch ticket-c54e4a1aeb-use_vfork runs with 6 bogus failures - the expected result was "couldn't fork child process: no such file or directory" and the result was "couldn't execute "<somefoo123>": no such file or directory", perhaps because the error message of the underlying library call is returned and that library call changed. From what is presented this is an improvement on linux. I'm not able to say, what drawbacks that may include. If I take right what Gustaf writes there is a similiar problem with exec and NaviServer goes to some length to avoid the impact. So from NaviServer viewpoint this is the least invasive because they already have their nsproxy module to manage the exec case. For the core the patch should perhaps enhanced to exec?
- login: "pointsman"
- mimetype: "text/x-fossil-plain"