aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorRik van Riel <[email protected]>2023-01-27 13:46:50 -0500
committerAl Viro <[email protected]>2023-01-27 19:07:59 -0500
commita80c4adcb574821e534779c48ae13953b7d1d996 (patch)
tree923717454dc5a0affff35d387e5cac66cc42d03b /tools/perf/scripts/python/export-to-postgresql.py
parentb7bfaa761d760e72a969d116517eaa12e404c262 (diff)
ipc,namespace: make ipc namespace allocation wait for pending free
Currently the ipc namespace allocation will fail when there are ipc_namespace structures pending to be freed. This results in the simple test case below, as well as some real world workloads, to get allocation failures even when the number of ipc namespaces in actual use is way below the limit. int main() { int i; for (i = 0; i < 100000; i++) { if (unshare(CLONE_NEWIPC) < 0) error(EXIT_FAILURE, errno, "unshare"); } } Make the allocation of an ipc_namespace wait for pending frees, so it will succeed. real 6m19.197s user 0m0.041s sys 0m1.019s Signed-off-by: Rik van Riel <[email protected]> Reported-by: Chris Mason <[email protected]> Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions