| /linux/Documentation/translations/zh_CN/core-api/ |
| H A D | workqueue.rst | 139 参数 - ``@name`` , ``@flags`` 和 ``@max_active`` 。 143 工作项属性的域。 ``@flags`` 和 ``@max_active`` 控制着工作 155 BH工作队列的 ``max_active`` 值必须为0,且只能单独或和 201 ``max_active`` 204 ``@max_active`` 决定了每个CPU可以分配给wq的工作项的最大执行上 205 下文数量。例如,如果 ``@max_active`` 为16 ,每个CPU最多可以同 208 ``@max_active`` 的最大限制是512,当指定为0时使用的默认值是256。 217 顺序处理带来的严格执行顺序。``@max_active`` 为1和 ``WQ_UNBOUND`` 245 And with cmwq with ``@max_active`` >= 3, :: 259 如果 ``@max_active`` == 2, :: [all …]
|
| /linux/drivers/scsi/snic/ |
| H A D | snic_stats.h | 9 atomic64_t max_active; /* Max # active IOs */ member 99 if (atomic64_read(&io->max_active) < nr_active_ios) in snic_stats_update_active_ios() 100 atomic64_set(&io->max_active, nr_active_ios); in snic_stats_update_active_ios()
|
| H A D | snic_debugfs.c | 196 (u64) atomic64_read(&stats->io.max_active), in snic_stats_show()
|
| /linux/net/tipc/ |
| H A D | group.c | 94 u16 max_active; member 125 int max_active, active_pool, idle_pool; in tipc_group_rcvbuf_limit() local 129 max_active = min(mcnt / 8, 64); in tipc_group_rcvbuf_limit() 130 max_active = max(max_active, 16); in tipc_group_rcvbuf_limit() 131 grp->max_active = max_active; in tipc_group_rcvbuf_limit() 134 active_pool = max_active * ADV_ACTIVE; in tipc_group_rcvbuf_limit() 135 idle_pool = (mcnt - max_active) * ADV_IDLE; in tipc_group_rcvbuf_limit() 592 int max_active = grp->max_active; in tipc_group_update_rcv_win() local 593 int reclaim_limit = max_active * 3 / 4; in tipc_group_update_rcv_win() 606 if (active_cnt <= max_active) { in tipc_group_update_rcv_win()
|
| /linux/sound/oss/dmasound/ |
| H A D | dmasound_core.c | 478 sq->max_active = sq->numBufs ; in sq_setup() 512 sq->max_active = (sq->max_active <= sq->max_count) ? in sq_setup() 513 sq->max_active : sq->max_count ; in sq_setup() 519 sq->max_active = sq->numBufs ; in sq_setup() 618 while (write_sq.count >= write_sq.max_active) { in sq_write() 625 if (write_sq.count < write_sq.max_active) in sq_write() 679 if (write_sq.count < write_sq.max_active || write_sq.block_size - write_sq.rear_size > 0) in sq_poll() 976 sq->max_active = bufs ; in set_queue_frags() 1120 info.fragments = write_sq.max_active - write_sq.count; in sq_ioctl() 1121 info.fragstotal = write_sq.max_active; in sq_ioctl() [all …]
|
| H A D | dmasound.h | 218 int max_active; /* in-use fragments <= max_count */ member
|
| /linux/kernel/ |
| H A D | workqueue.c | 358 int max_active; /* WO: max active works */ member 1596 int max_active = READ_ONCE(wq->max_active); in wq_update_node_max_active() local 1616 wq_node_nr_active(wq, NUMA_NO_NODE)->max = max_active; in wq_update_node_max_active() 1628 clamp(DIV_ROUND_UP(max_active * node_cpus, total_cpus), in wq_update_node_max_active() 1629 min_active, max_active); in wq_update_node_max_active() 1632 wq_node_nr_active(wq, NUMA_NO_NODE)->max = max_active; in wq_update_node_max_active() 1737 obtained = pwq->nr_active < READ_ONCE(wq->max_active); in pwq_tryinc_nr_active() 5635 static int wq_clamp_max_active(int max_active, unsigned int flags, in wq_clamp_max_active() argument 5638 if (max_active < 1 || max_active > WQ_MAX_ACTIVE) in wq_clamp_max_active() 5640 max_active, name, 1, WQ_MAX_ACTIVE); in wq_clamp_max_active() [all …]
|
| /linux/include/linux/ |
| H A D | workqueue.h | 423 * is set to min(max_active, WQ_DFL_MIN_ACTIVE). For more details, see 445 * executed immediately as long as max_active limit is not reached and 479 * @max_active: max in-flight work items, 0 for default 482 * For a per-cpu workqueue, @max_active limits the number of in-flight work 483 * items for each CPU. e.g. @max_active of 1 indicates that each CPU can be 486 * For unbound workqueues, @max_active limits the number of in-flight work items 487 * for the whole system. e.g. @max_active of 16 indicates that there can be 491 * NUMA nodes can be expensive, @max_active is distributed to each NUMA node 496 * max_active which is significantly lower than @max_active, whic [all...] |
| /linux/fs/btrfs/ |
| H A D | disk-io.c | 1923 u32 max_active = fs_info->thread_pool_size; in btrfs_init_workqueues() local 1928 btrfs_alloc_workqueue(fs_info, "worker", flags, max_active, 16); in btrfs_init_workqueues() 1932 flags, max_active, 2); in btrfs_init_workqueues() 1936 flags, max_active, 0); in btrfs_init_workqueues() 1939 btrfs_alloc_workqueue(fs_info, "cache", flags, max_active, 0); in btrfs_init_workqueues() 1945 alloc_workqueue("btrfs-endio", flags, max_active); in btrfs_init_workqueues() 1947 alloc_workqueue("btrfs-endio-meta", flags, max_active); in btrfs_init_workqueues() 1948 fs_info->rmw_workers = alloc_workqueue("btrfs-rmw", flags, max_active); in btrfs_init_workqueues() 1951 max_active, 2); in btrfs_init_workqueues() 1954 max_active, 0); in btrfs_init_workqueues() [all …]
|
| H A D | scrub.c | 3058 int max_active = fs_info->thread_pool_size; in scrub_workers_get() local 3064 scrub_workers = alloc_workqueue("btrfs-scrub", flags, max_active); in scrub_workers_get()
|
| /linux/drivers/infiniband/core/ |
| H A D | mad.c | 1059 if (qp_info->send_queue.count < qp_info->send_queue.max_active) { in ib_send_mad() 2541 if (send_queue->count-- > send_queue->max_active) { in ib_mad_send_done() 2970 if (recv_queue->count >= recv_queue->max_active) { in ib_mad_post_receive_mads() 3174 qp_info->send_queue.max_active = mad_sendq_size; in create_mad_qp() 3175 qp_info->recv_queue.max_active = mad_recvq_size; in create_mad_qp()
|
| H A D | mad_rmpp.c | 396 return max(agent->qp_info->recv_queue.max_active >> 3, 1); in window_size()
|