Hi,

 I am using GRPC C++ helloworld example - greeter_server and greeter_client.

when I run greeter_server with 'strace -f ./greeter_server', I am seeing 
that server is waking up every 1 sec even if there is no client connected.

I could trace this 1 sec wakeups to this code at line 488 in 
https://github.com/grpc/grpc/blob/ea389c00c2c83e0364c5b1cfb73820c0101daa14/src/core/lib/iomgr/timer_generic.cc
 
which always adds atleast 1 sec as new deadline to wake up again.

We are running grpc server on a low power embedded board where this 1 sec 
timer is waking up the core from sleep - which is not ideal.

Any thoughts on whether/how this could be changed to not wakeup every 1 
sec? 

Regards,
Phani

strace log snippet:
[pid 31639] futex(0x7fa8d904db84, FUTEX_WAIT_BITSET_PRIVATE, 27, {12698167, 
302081638}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
[pid 31639] futex(0x7fa8d904db40, FUTEX_WAKE_PRIVATE, 1) = 0
[pid 31639] futex(0x7fa8d904db84, FUTEX_WAIT_BITSET_PRIVATE, 29, {12698168, 
303081638}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
[pid 31639] futex(0x7fa8d904db40, FUTEX_WAKE_PRIVATE, 1) = 0
[pid 31639] futex(0x7fa8d904db84, FUTEX_WAIT_BITSET_PRIVATE, 31, {12698169, 
304081638}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
[pid 31639] futex(0x7fa8d904db40, FUTEX_WAKE_PRIVATE, 1) = 0
[pid 31639] futex(0x7fa8d904db84, FUTEX_WAIT_BITSET_PRIVATE, 33, {12698170, 
305081638}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
[pid 31639] futex(0x7fa8d904db40, FUTEX_WAKE_PRIVATE, 1) = 0
[pid 31639] futex(0x7fa8d904db84, FUTEX_WAIT_BITSET_PRIVATE, 35, {12698171, 
306081638}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
[pid 31639] futex(0x7fa8d904db40, FUTEX_WAKE_PRIVATE, 1) = 0
[pid 31639] futex(0x7fa8d904db84, FUTEX_WAIT_BITSET_PRIVATE, 37, {12698172, 
307081638}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
[pid 31639] futex(0x7fa8d904db40, FUTEX_WAKE_PRIVATE, 1) = 0
[pid 31639] futex(0x7fa8d904db84, FUTEX_WAIT_BITSET_PRIVATE, 39, {12698173, 
308081638}, ffffffff) = -1 ETIMEDOUT (Connection timed out)

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/3c6d7332-59aa-49dc-999c-dbf63a9c6558n%40googlegroups.com.

Reply via email to