libos-nuse / net-next-nuse

Network Stack in Userspace
Other
287 stars 67 forks source link

progress of timer is getting slower #29

Closed upa closed 9 years ago

upa commented 9 years ago

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

upa commented 9 years ago

poll seems to be same...

thehajime commented 9 years ago

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

upa commented 9 years ago

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 9 years ago

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