[LTP] [PATCH 6/7] libs: libltpnuma: Fix free memory estimate
Li Wang
liwang@redhat.com
Fri Mar 4 03:56:49 CET 2022
> - if (mem_total - mem_used < (long)min_kb) {
> + if (mem_total - mem_used + (9 * file_pages)/10 < (long)min_kb) {
> tst_res(TINFO,
> "Not enough free RAM on node %i, have %likB needs
> %zukB",
> node, mem_total - mem_used, min_kb);
>
We'd better count that part in the output message as well.
Reviewed-by: Li Wang <liwang@redhat.com>
--
Regards,
Li Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20220304/13a5e818/attachment-0001.htm>
More information about the ltp
mailing list