[SERVER-44282] Set NUMAPolicy in systemd unit Created: 28/Oct/19 Updated: 27/Oct/23 Resolved: 27/Oct/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Packaging |
| Affects Version/s: | 4.2.1 |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Kevin Arhelger | Assignee: | [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive) |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Linux Systemd |
||
| Issue Links: |
|
||||||||
| Assigned Teams: |
Server Development Platform
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Participants: | |||||||||
| Case: | (copied to CRM) | ||||||||
| Description |
|
The legacy init scripts for mongod set the memory policy to interleave New versions of systemd support the NUMAPolicy=interleave directive. https://www.freedesktop.org/software/systemd/man/systemd.exec.html#NUMAPolicy= Adding this configuration would minimize the differences between the init scripts and systemd unit files. |
| Comments |
| Comment by Ryan Egesdahl (Inactive) [ 10/Sep/20 ] |
|
It looks like our requested change has been merged, and now we are waiting it to be added to one or more releases. It's probably going to be a while before that happens. |
| Comment by Mathew Robinson (Inactive) [ 22/Nov/19 ] |
|
So after testing this on a NUMA system we've discovered a few things:
Until the above linked Github issue is completed anything we we shipped w/regards to NUMAMask would either be incorrect or a hack. Given how sensitive these service files are and how spectacularly they can fail in a very user-facing way we're going to wait to add these until the RFE is completed. Until then, and if the RFE is rejected, |
| Comment by Mathew Robinson (Inactive) [ 20/Nov/19 ] |
|
I'm going to add this directive to the service files. It seems older SystemD (at least version 237) will just ignore this directive. We'll know that it works with the rest of the versions we support when the package tests run on master. I'm also going to open a DOCS ticket to add instructions for how to modify our SystemD file to use numactl on systems which don't have SystemD 243. |