-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/50759/#review144647
-----------------------------------------------------------




src/qpid/sys/epoll/EpollPoller.cpp (line 552)
<https://reviews.apache.org/r/50759/#comment210674>

    Before these changes the code was very friendly to low power configurations 
by not waking up unnecessarily. Now it wakes up once a minute regardless which 
might be enough to never let the host get to sleep.
    
    How about waking up once an hour or once every three hours?


- Chug Rolke


On Aug. 3, 2016, 5:43 p.m., Cliff Jansen wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/50759/
> -----------------------------------------------------------
> 
> (Updated Aug. 3, 2016, 5:43 p.m.)
> 
> 
> Review request for qpid and Andrew Stitcher.
> 
> 
> Bugs: qpid-7373
>     https://issues.apache.org/jira/browse/qpid-7373
> 
> 
> Repository: qpid-cpp
> 
> 
> Description
> -------
> 
> If a C++ broker is lightly loaded with many short lived connections such that 
> at least one worker thread remains unwoken from the epoll_wait, its 
> DeletionManager::ThreadStatus::handles grows without bound and the associated 
> handles retain a shared_ptr ref and never go away.
> 
> This patch allows IO threads a maximum of one minute to accumulate 
> DeletionManager shared pointer references before resuming the wait loop which 
> involves calling 
> 
>   PollerHandleDeletionManager.markAllUnusedInThisThread();
>   
> The overhead is small on brokers light thread load and non-existent on busy 
> brokers.
> 
> 
> Diffs
> -----
> 
>   src/qpid/sys/epoll/EpollPoller.cpp 6fdf996 
> 
> Diff: https://reviews.apache.org/r/50759/diff/
> 
> 
> Testing
> -------
> 
> Jira test case, PollerTest.cpp
> 
> 
> Thanks,
> 
> Cliff Jansen
> 
>

Reply via email to