Home
last modified time | relevance | path

Searched refs:max_active (Results 1 – 15 of 15) sorted by relevance

/linux-6.6.21/Documentation/translations/zh_CN/core-api/
Dworkqueue.rst132 参数 - ``@name`` , ``@flags`` 和 ``@max_active`` 。
136 工作项属性的域。 ``@flags`` 和 ``@max_active`` 控制着工作
183 ``max_active``
186 ``@max_active`` 决定了每个CPU可以分配给wq的工作项的最大执行上
187 下文数量。例如,如果 ``@max_active为16`` ,每个CPU最多可以同
190 目前,对于一个绑定的wq, ``@max_active`` 的最大限制是512,当指
199 一些用户依赖于ST wq的严格执行顺序。 ``@max_active`` 为1和 ``WQ_UNBOUND``
231 And with cmwq with ``@max_active`` >= 3, ::
245 如果 ``@max_active`` == 2, ::
285 * 除非有特殊需要,建议使用0作为@max_active。在大多数使用情
/linux-6.6.21/drivers/scsi/snic/
Dsnic_stats.h9 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()
Dsnic_debugfs.c196 (u64) atomic64_read(&stats->io.max_active), in snic_stats_show()
/linux-6.6.21/net/tipc/
Dgroup.c94 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-6.6.21/sound/oss/dmasound/
Ddmasound_core.c481 sq->max_active = sq->numBufs ; in sq_setup()
515 sq->max_active = (sq->max_active <= sq->max_count) ? in sq_setup()
516 sq->max_active : sq->max_count ; in sq_setup()
522 sq->max_active = sq->numBufs ; in sq_setup()
621 while (write_sq.count >= write_sq.max_active) { in sq_write()
628 if (write_sq.count < write_sq.max_active) in sq_write()
682 if (write_sq.count < write_sq.max_active || write_sq.block_size - write_sq.rear_size > 0) in sq_poll()
979 sq->max_active = bufs ; in set_queue_frags()
1123 info.fragments = write_sq.max_active - write_sq.count; in sq_ioctl()
1124 info.fragstotal = write_sq.max_active; in sq_ioctl()
[all …]
Ddmasound.h218 int max_active; /* in-use fragments <= max_count */ member
/linux-6.6.21/kernel/
Dworkqueue.c253 int max_active; /* L: max active works */ member
1489 if (pwq->nr_active < pwq->max_active) in pwq_dec_nr_in_flight()
1790 if (likely(pwq->nr_active < pwq->max_active)) { in __queue_work()
4157 if (!freezable && pwq->max_active == wq->saved_max_active) in pwq_adjust_max_active()
4169 pwq->max_active = wq->saved_max_active; in pwq_adjust_max_active()
4172 pwq->nr_active < pwq->max_active) in pwq_adjust_max_active()
4177 pwq->max_active = 0; in pwq_adjust_max_active()
4622 static int wq_clamp_max_active(int max_active, unsigned int flags, in wq_clamp_max_active() argument
4625 if (max_active < 1 || max_active > WQ_MAX_ACTIVE) in wq_clamp_max_active()
4627 max_active, name, 1, WQ_MAX_ACTIVE); in wq_clamp_max_active()
[all …]
/linux-6.6.21/Documentation/core-api/
Dworkqueue.rst155 ``@flags`` and ``@max_active``. ``@name`` is the name of the wq and
160 and ``@max_active`` control how work items are assigned execution
220 ``max_active``
223 ``@max_active`` determines the maximum number of execution contexts per
225 ``@max_active`` of 16, at most 16 work items of the wq can be executing
229 The maximum limit for ``@max_active`` is 512 and the default value used
241 combination of ``@max_active`` of 1 and ``WQ_UNBOUND`` used to
278 And with cmwq with ``@max_active`` >= 3, ::
292 If ``@max_active`` == 2, ::
333 * Unless there is a specific need, using 0 for @max_active is
/linux-6.6.21/drivers/infiniband/core/
Dmad_priv.h182 int max_active; member
Dmad.c1032 if (qp_info->send_queue.count < qp_info->send_queue.max_active) { in ib_send_mad()
2306 if (send_queue->count-- > send_queue->max_active) { in ib_mad_send_done()
2717 post = (++recv_queue->count < recv_queue->max_active); in ib_mad_post_receive_mads()
2914 qp_info->send_queue.max_active = mad_sendq_size; in create_mad_qp()
2915 qp_info->recv_queue.max_active = mad_recvq_size; in create_mad_qp()
Dmad_rmpp.c396 return max(agent->qp_info->recv_queue.max_active >> 3, 1); in window_size()
/linux-6.6.21/include/linux/
Dworkqueue.h461 alloc_workqueue(const char *fmt, unsigned int flags, int max_active, ...);
524 int max_active);
/linux-6.6.21/fs/btrfs/
Ddisk-io.c1948 u32 max_active = fs_info->thread_pool_size; in btrfs_init_workqueues() local
1953 btrfs_alloc_workqueue(fs_info, "worker", flags, max_active, 16); in btrfs_init_workqueues()
1957 flags, max_active, 2); in btrfs_init_workqueues()
1961 flags, max_active, 0); in btrfs_init_workqueues()
1964 btrfs_alloc_workqueue(fs_info, "cache", flags, max_active, 0); in btrfs_init_workqueues()
1970 alloc_workqueue("btrfs-endio", flags, max_active); in btrfs_init_workqueues()
1972 alloc_workqueue("btrfs-endio-meta", flags, max_active); in btrfs_init_workqueues()
1973 fs_info->rmw_workers = alloc_workqueue("btrfs-rmw", flags, max_active); in btrfs_init_workqueues()
1976 max_active, 2); in btrfs_init_workqueues()
1978 alloc_workqueue("btrfs-compressed-write", flags, max_active); in btrfs_init_workqueues()
[all …]
Dscrub.c2781 int max_active = fs_info->thread_pool_size; in scrub_workers_get() local
2787 scrub_workers = alloc_workqueue("btrfs-scrub", flags, max_active); in scrub_workers_get()
/linux-6.6.21/Documentation/admin-guide/
Dxfs.rst539 max_active Maximum number of background threads that can be started to