[LTP] [PATCH v2] [RFC] pselect01: Tune thresholds

Jan Stancek jstancek@redhat.com
Mon May 15 15:00:19 CEST 2017



----- Original Message -----
> Hi!
> > while looking at fs/select.c I noticed that it also takes
> > current->timer_slack_ns into account and uses that if
> > slack is smaller. Would it make sense to add ...?
> >   slack_per_scall = MAX(slack_per_scall, prctl(PR_GET_TIMERSLACK) / 1000);
> > The default is 50us, so maybe the 250us in formula covers this already?
> 
> I guess that the 50us is included in the 250us already. So what about
> adding the line you sugests and decreasing the 250us to 200us?

We can do that, but looking again at  PR_GET_TIMERSLACK, it is supported
since 2.6.28, so we'd need to skip older kernels or fall back to a
default of 50us.

Regards,
Jan


More information about the ltp mailing list