[LTP] [PATCH 03/10] ksm: Add max_runtime to tests
Petr Vorel
pvorel@suse.cz
Mon Sep 5 18:14:23 CEST 2022
> On 31. 08. 22 14:50, Cyril Hrubis wrote:
> > Hi!
> > > Alternatively, we could measure 1 full ksmd scan in setup() and then set
> > > max_runtime dynamically. Each call of create_same_memory() would need
> > > roughly 16 scan times. Time spent in ksm_child_memset() is included in
> > > that estimate.
> > That sounds good as well, but I would still set the .max_runtime to
> > rough guess in tst_test structure and then adjusted it in the test
> > setup().
> The current patch is a good enough guess for ~2-4GB machines. Or do you want
> to target bigger machines by default?
I guess it'd be safer to expect machines with bigger memory.
Kind regards,
Petr
More information about the ltp
mailing list