[LTP] [PATCH 1/1] min_free_kbytes: TCONF on errno ENOMEM, add break

Petr Vorel pvorel@suse.cz
Mon May 25 11:42:24 CEST 2026


> Hi!
> > On machine with 16 GM RAM and ~6 GB swap fork() fails on ENOMEM.
> > Treat that as TCONF.

> > While at it, add missing break in case.

> This looks suspicious. If we fail with the fork here that probably means
> that the memory allocated by the previous iteration wasn't reclaimed
> fast enough. Was this on a second or third iteration (we do three
> iterations with different overcommit values)?

This is on one of my bare metal machines, first iteration:

min_free_kbytes.c:91: TINFO: Setting /proc/sys/vm/overcommit_memory to 2
min_free_kbytes.c:95: TINFO: Setting /proc/sys/vm/min_free_kbytes to 67584
min_free_kbytes.c:111: TBROK: fork: ENOMEM (12)
tst_test.c:1933: TINFO: Killed the leftover descendant processes

Kind regards,
Petr


More information about the ltp mailing list