[LTP] [PATCH v1] starvation.c: New case for sched starvation
Wei Gao
wegao@suse.com
Sun May 7 16:27:34 CEST 2023
On Fri, May 05, 2023 at 07:31:37PM +0200, Petr Vorel wrote:
> Hi Wei,
>
> > +static struct tst_test test = {
> > + .test_all = do_test,
> > + .setup = setup,
> > + .forks_child = 1,
> > + .needs_checkpoints = 1,
> > + .max_runtime = 120,
> Are you sure 2 min is enough? Maybe we need to use tst_remaining_runtime() to
> check if we're not running out of time.
Seems difficult to check with tst_remaining_runtime since i can use code such as:
while(tst_remaining_runtime())
wait_for_pid();
> Also, if we set getopt to choose number of options, we'd need to adjust it by
> tst_set_max_runtime().
>
> Kind regards,
> Petr
>
> > +};
More information about the ltp
mailing list