]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: set shmmni to 32k
authorKarel Zak <kzak@redhat.com>
Mon, 18 Jan 2021 12:22:26 +0000 (13:22 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 18 Jan 2021 12:22:26 +0000 (13:22 +0100)
Linux kernel since 6730e6580177d13f4612767873cb5a533ad63c61 checks for
limits and kernel ipc/utils.h defines

 #define IPCMNI_SHIFT         15
 #define IPCMNI               (1 << IPCMNI_SHIFT)

it means 32768 (aka shortint max). Let's use it in our tests too to
avoid "Invalid argument" when write to /proc/sys/kernel/shmmni.

Signed-off-by: Karel Zak <kzak@redhat.com>
tests/ts/ipcs/functions.sh

index 586ce42f6543a0a0b3764e7036d96bdba394a122..b23e123d9c45fd089d5c01ee92bc5aa3962be7e3 100644 (file)
@@ -55,7 +55,7 @@ IPCS_CMD=(
 #  ... it's a problem for admins who want to use 75557863725TB of RAM for shm)
 #
 IPCS_LIMITS=(
-       $($TS_HELPER_SYSINFO INT_MAX)
+       32768
        $($TS_HELPER_SYSINFO ULONG_MAX32)
        $($TS_HELPER_SYSINFO ULONG_MAX32)
 )