Re: libbsd select timeout issue(critial!!)

2020-11-16 Thread Sebastian Huber
Hello Zhengxin, On 17/11/2020 03:04, RUI Zhengxin wrote: Hi Sebastian, The bug report is added, a patch which using relative timeout is attached. It has no time drift during 1 week testing. https://devel.rtems.org/ticket/4179 thanks for adding a ticket. To f

Re:Re: libbsd select timeout issue(critial!!)

2020-11-16 Thread RUI Zhengxin
Hi Sebastian, The bug report is added, a patch which using relative timeout is attached. It has no time drift during 1 week testing. https://devel.rtems.org/ticket/4179 在 2020-11-11 14:42:36,"Sebastian Huber" 写道: >On 11/11/2020 03:50, RUI Zhengxin wrote: > >> This issue is very critial, it can

Re: libbsd select timeout issue(critial!!)

2020-11-11 Thread Gedare Bloom
On Tue, Nov 10, 2020 at 7:51 PM RUI Zhengxin wrote: > > This issue is very critial, it can make the select abnormally return timeout > after long run time. > If the timeout is set to 5ms, when the system run after 7s(19.4h), > the select function will wait 10ms timeout, which is two times of

Re: libbsd select timeout issue(critial!!)

2020-11-10 Thread Sebastian Huber
On 11/11/2020 03:50, RUI Zhengxin wrote: This issue is very critial, it can make the select abnormally return timeout after long run time. If the timeout is set to 5ms,  when the system run after 7s(19.4h), the select function will wait 10ms timeout, which is two times of setting value.

libbsd select timeout issue

2020-11-02 Thread RUI Zhengxin
Hello everyone, We meet an issue of select function timeout drift in rtems-libbsd5.1. The select timeout can drift 1ms every 14000 seconds. Kernel put the select thread to sleep queue in sleepq_set_timeout_sbt, the expire value is calculated by this expire = (sbt - SBT_1S + sbt_per_tick