Skip to content

DOCS-7678 recommend kernel.pid_max of 64000 #2603

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/administration/production-checklist-operations.txt
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ Linux
- Configure sufficient file handles (``fs.file-max``), kernel pid limit
(``kernel.pid_max``), and maximum threads per process
(``kernel.threads-max``) for your deployment. For large systems,
values of 98000, 32768, and 64000 are a good starting point.
values of 98000, 64000, and 64000 are a good starting point.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @devkev -- I just need to get rid of one of the two 64000 values, yes?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uhhh, no?

The idea is that if pid_max is only 32768, then setting the nprocs ulimit to 64000 won't have the desired effect. To put it another way, the user expectation is that after setting nprocs to 64000, they can have up to 64000 processes/threads on the system. But this is only possible if pid_max is also >= nprocs, i.e. is >= 64000. If it is less --- like the 32768 that we recommend here --- then the number of possible processes/threads will cap out less than 64000, which is confusing.

Therefore, we should ensure that we recommend setting pid_max to at least our recommended value for the nprocs ulimit. Since we recommend nprocs be 64000, we should also recommend pid_max of 64000 --- which is what this patch does.

This is all assuming that the three values listed here correspond to file-max, pid_max and threads-max, respectively. Feel free to rework things further to make that clearer, if necessary.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I see now. I didn't realize that the three values listed corresponded to the file-max, pid_max and threads-max : (

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that's a vote for "it should be clearer" :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indeed : )


- Ensure that your system has swap space configured. Refer to your
operating system's documentation for details on appropriate sizing.
Expand Down