Function report |
Source Code:kernel\workqueue.c |
Create Date:2022-07-28 09:23:50 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Do we have too many workers and should some go away?
Proto:static bool too_many_workers(struct worker_pool *pool)
Type:bool
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct worker_pool * | pool |
| 802 | managing = X: flags & POOL_MANAGER_ACTIVE |
| 803 | nr_idle = L: currently idle workers + managing |
| 804 | nr_busy = L: total number of workers - nr_idle |
| 806 | Return nr_idle > 2 && (nr_idle - 2) * MAX_IDLE_WORKERS_RATIO >= nr_busy |
| Name | Describe |
|---|---|
| worker_enter_idle | worker_enter_idle - enter idle state*@worker: worker which is entering idle state*@worker is entering idle state. Update stats and idle timer if* necessary.* LOCKING:* spin_lock_irq(pool->lock). |
| idle_worker_timeout |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |