Commit 6efcb7e
committed
[spyre] Update memlock ulimit for sentient group based on card count
Multi-card Spyre containers can eventually exhaust locked memory,
causing the containers to exit unexpectedly.
Update the memlock configuration to scale based on the number of
Spyre cards present in the system. This sets the memlock limit to
the maximum value containers may consume, preventing exits due to
locked memory exhaustion.
The memlimit value was determined experimentally using:
memlimit = (number_of_spyre_cards) * (128GB + 16MB)
Signed-off-by: Sahithi Ravindranath <Sahithi.Ravindranath@ibm.com>1 parent 306b17a commit 6efcb7e
1 file changed
Lines changed: 18 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
33 | 43 | | |
34 | | - | |
35 | | - | |
| 44 | + | |
| 45 | + | |
36 | 46 | | |
| 47 | + | |
37 | 48 | | |
38 | 49 | | |
39 | 50 | | |
| |||
49 | 60 | | |
50 | 61 | | |
51 | 62 | | |
52 | | - | |
| 63 | + | |
53 | 64 | | |
54 | | - | |
| 65 | + | |
55 | 66 | | |
56 | 67 | | |
57 | 68 | | |
58 | 69 | | |
59 | 70 | | |
60 | | - | |
| 71 | + | |
61 | 72 | | |
62 | 73 | | |
63 | 74 | | |
| |||
185 | 196 | | |
186 | 197 | | |
187 | 198 | | |
188 | | - | |
| 199 | + | |
| 200 | + | |
189 | 201 | | |
190 | 202 | | |
191 | 203 | | |
| |||
0 commit comments