[MDEV-157] Threadpool - make timer thread sleep longer if there is no client activity. Created: 2012-02-16  Updated: 2015-03-05

Status: Stalled
Project: MariaDB Server
Component/s: None
Fix Version/s: None

Type: Task Priority: Minor
Reporter: Vladislav Vaintroub Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   

Currently, with threadpool on Unix, timer thread that checks and resolves stalls wakes up every threadpool_stall_limit milliseconds. This might be unnecessary on desktops/laptops and consume some CPU or even prevent machines from going to sleep mode, in case there is no client activity. We need to:

  • detect the condition "no client activity"
  • Put timer thread into the long sleep
  • wake timer when the first client s active again.


 Comments   
Comment by Rasmus Johansson (Inactive) [ 2012-04-25 ]

this had for some reason been assigned to me. maybe it's done already.

Generated at Thu Feb 08 06:26:41 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.