Commit 80888be
committed
Use information from cgroup (if applicable) to adjust memory tracker
Right now `memory_worker_correct_memory_tracker` always uses information
from jemalloc to update the `MemoryTracking`, but, this may be not good
enough in some cases (i.e. when server requested more memory then it
use) and may lead to `MEMORY_LIMIT_EXCEEDED` errors with
`MemoryTracking` > `RSS`.
So use information from cgroup if applicable, and if not, use
information from `jemalloc.allocated`.1 parent 6067851 commit 80888be
2 files changed
Lines changed: 6 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
303 | 304 | | |
304 | 305 | | |
305 | 306 | | |
| 307 | + | |
306 | 308 | | |
307 | 309 | | |
308 | 310 | | |
| |||
314 | 316 | | |
315 | 317 | | |
316 | 318 | | |
| 319 | + | |
| 320 | + | |
317 | 321 | | |
318 | 322 | | |
319 | 323 | | |
| |||
325 | 329 | | |
326 | 330 | | |
327 | 331 | | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | 332 | | |
334 | 333 | | |
335 | 334 | | |
| |||
350 | 349 | | |
351 | 350 | | |
352 | 351 | | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
| 352 | + | |
359 | 353 | | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
| 354 | + | |
366 | 355 | | |
367 | 356 | | |
368 | 357 | | |
| |||
371 | 360 | | |
372 | 361 | | |
373 | 362 | | |
374 | | - | |
375 | 363 | | |
376 | 364 | | |
377 | 365 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | 80 | | |
82 | 81 | | |
83 | 82 | | |
| |||
0 commit comments