Commit 8e783eb
allow ARL to switch to check for all memory for load shedding based on config
Summary:
This is to support ARL to switch to check for all memory based on the new enum
- a new enum `CGroupResourceMemoryType` is introduced, `CgroupResources` can be initialized based `CGroupResourceMemoryType` to check `anon` or `all` memory
- I don't use a flag in config as this flag will not be included in `arlConfig` and every service initialize the resource differently, so I just let the service determine whether they want to initialize with different memory type.
- delete all APIs / counters related to `memAll` as after this diff we will only have one view of mem (more discussion [here](https://fb.workplace.com/groups/proxygendevelopers/posts/3064051317235572/?comment_id=3064123973894973&fbclid=IwZXh0bgNhZW0CMTEAAR0i2R_cHSSEKChgn7vq_1u9aCDnCIY4xzaeHkUyFLqxR4TfbZh55f8kbPI_aem_k0DpcV2UpwH-h4LErupCkA))
See more discussion in https://fb.workplace.com/groups/proxygendevelopers/permalink/3441253179515382/ (S479847). TLDR edgetee OOM because of socket mem but ARL doesn't count it so ARL didn't kick in.
Reviewed By: dddmello
Differential Revision: D67954452
fbshipit-source-id: 3b99555ed644ac57e80da44d7a01c8ae1568a9a91 parent 6c1d916 commit 8e783eb
2 files changed
+1
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | 135 | | |
144 | 136 | | |
145 | 137 | | |
| |||
194 | 186 | | |
195 | 187 | | |
196 | 188 | | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | 189 | | |
207 | 190 | | |
208 | 191 | | |
| |||
342 | 325 | | |
343 | 326 | | |
344 | 327 | | |
345 | | - | |
346 | | - | |
347 | | - | |
| 328 | + | |
348 | 329 | | |
349 | | - | |
350 | 330 | | |
351 | 331 | | |
352 | 332 | | |
| |||
411 | 391 | | |
412 | 392 | | |
413 | 393 | | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | 394 | | |
418 | 395 | | |
419 | 396 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | 63 | | |
65 | 64 | | |
66 | 65 | | |
| |||
0 commit comments