libos-nuse/net-next-nuse

progress of timer is getting slower

upa opened this issue · 4 comments

upa commented

when using select with timeout on nuse process, duration of timeout is getting longer...

upa commented

poll seems to be same...

commit 62cc0be fixes an issue of timeout value of poll(2). please check it with the updated repo.

upa commented

hum... It is seems to be almost working, but, the fluctuation still remains.
is it due to progress of jiffies ?

in nuse-bootp.c,

        for (;;) {
                if (poll(x, 1, 1) == 0) {
                        printf("1sec timeout %ld\n", time (NULL));
                        fflush(stdout);

then

<6>device eth1 entered promiscuous mode
sending bootp request for eth1.
waiting bootp reply
1sec timeout 1419331625
1sec timeout 1419331626
1sec timeout 1419331626
1sec timeout 1419331627
1sec timeout 1419331627
1sec timeout 1419331627
1sec timeout 1419331631
1sec timeout 1419331635
1sec timeout 1419331635
1sec timeout 1419331643
timeout!!
upa commented

It is my issue... poll timer is now working,, sorry.