diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2024-11-06 10:25:26 +1100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-11-07 12:47:03 +0100 |
commit | c560e2f65b625367d3baf0fcf06cf19996407659 (patch) | |
tree | 072fc317ed2177b9ccc446e84484e33d67641cf9 /util.c | |
parent | 13fc6d511eb89b15a0941c63ae44f147572b1470 (diff) | |
download | passt-c560e2f65b625367d3baf0fcf06cf19996407659.tar passt-c560e2f65b625367d3baf0fcf06cf19996407659.tar.gz passt-c560e2f65b625367d3baf0fcf06cf19996407659.tar.bz2 passt-c560e2f65b625367d3baf0fcf06cf19996407659.tar.lz passt-c560e2f65b625367d3baf0fcf06cf19996407659.tar.xz passt-c560e2f65b625367d3baf0fcf06cf19996407659.tar.zst passt-c560e2f65b625367d3baf0fcf06cf19996407659.zip |
Makefile: Don't attempt to auto-detect stack size
We probe the available stack limit in the Makefile using rlimit, then use
that to set the size of the stack when we clone() extra threads. But
the rlimit at compile time need not be the same as the rlimit at runtime,
so that's not particularly sensible.
Ideally, we'd set the stack size based on an estimate of the actual
maximum stack usage of all our clone()ed functions. We don't have that
at the moment, but to keep things simple just set it to 1MiB - that's what
the current probe will set things to on my default configuration Fedora 40,
so it's likely to be fine in most cases.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'util.c')
0 files changed, 0 insertions, 0 deletions