[HACKERS] too low NAPTIME_PER_CYCLE /too many wakeups in walreceiver.c

2012-05-30 Thread Andres Freund
Hi, Currently the walreceiver wakeups NAPTIME_PER_CYCLE=100 miliseconds in idle state. This is rather frequent. I don't really see any reason to do so. A nice fix would be to latchify that with WaitLatchOrSocket + a SetLatch in the signal handler for shutdown but that seems to be too invasive

Re: [HACKERS] too low NAPTIME_PER_CYCLE /too many wakeups in walreceiver.c

2012-05-30 Thread Fujii Masao
On Wed, May 30, 2012 at 9:57 PM, Andres Freund and...@2ndquadrant.com wrote: Hi, Currently the walreceiver wakeups NAPTIME_PER_CYCLE=100 miliseconds in idle state. This is rather frequent. I don't really see any reason to do so. A nice fix would be to latchify that with WaitLatchOrSocket + a