[LTP] [PATCH] max_map_count: Add judgment of abnormal situation
Petr Vorel
pvorel@suse.cz
Tue Mar 9 15:54:46 CET 2021
Hi Gongyi,
> > > When CommitLimit - Committed_AS < 128, there is no post processing,
> > > and the test will report "TBROK: Test haven't reported results".
Actually, I have problem for CommitLimit - Committed_AS < 5280
(depends on actual system).
But that means that even check for max_iters < 0 is not enough,
because while (max_maps <= max_iters) block should be run at least once
to avoid TBROK: Test haven't reported results!
max_maps is always 1024, thus how about this?
max_maps = MAP_COUNT_DEFAULT;
+ if (max_iters < max_maps)
+ tst_brk(TCONF, "test requires more free memory");
> > You seems to exploring limits. Out of curiosity, which system / hw do you
> > test?
> We are testing linux on some different embedded systems whose hw resource is limited.
Thanks for info.
Kind regards,
Petr
More information about the ltp
mailing list