Searched refs:threads_max (Results 1 – 2 of 2) sorted by relevance
14 uint64_t v, pid_max, threads_max, limit; in main() local36 threads_max = TASKS_MAX; in main()37 r = procfs_get_threads_max(&threads_max); in main()41 log_info("kernel.threads-max: %"PRIu64, threads_max); in main()43 limit = MIN(pid_max - (pid_max > 0), threads_max); in main()
74 uint64_t threads_max; in procfs_tasks_set_limit() local79 if (procfs_get_threads_max(&threads_max) < 0) in procfs_tasks_set_limit()82 if (MIN(pid_max - 1, threads_max) != limit) in procfs_tasks_set_limit()