Repository navigation
Commit 8033b97
memcg: avoid oom during moving charge
This move-charge-at-task-migration feature has extra charges on
"to"(pre-charges) and "from"(left-over charges) during moving charge.
This means unnecessary oom can happen.
This patch tries to avoid such oom.
Signed-off-by: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
Cc: Balbir Singh <balbir@linux.vnet.ibm.com>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Li Zefan <lizf@cn.fujitsu.com>
Cc: Paul Menage <menage@google.com>
Cc: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parent 854ffa8 commit 8033b97
1 file changed
Lines changed: 51 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | | - | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
258 | 262 | | |
259 | 263 | | |
260 | 264 | | |
| |||
1508 | 1512 | | |
1509 | 1513 | | |
1510 | 1514 | | |
| 1515 | + | |
| 1516 | + | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
| 1524 | + | |
| 1525 | + | |
| 1526 | + | |
| 1527 | + | |
| 1528 | + | |
| 1529 | + | |
| 1530 | + | |
| 1531 | + | |
| 1532 | + | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
| 1541 | + | |
| 1542 | + | |
| 1543 | + | |
| 1544 | + | |
| 1545 | + | |
| 1546 | + | |
| 1547 | + | |
| 1548 | + | |
| 1549 | + | |
| 1550 | + | |
| 1551 | + | |
| 1552 | + | |
| 1553 | + | |
| 1554 | + | |
| 1555 | + | |
| 1556 | + | |
1511 | 1557 | | |
1512 | 1558 | | |
1513 | 1559 | | |
| |||
3381 | 3427 | | |
3382 | 3428 | | |
3383 | 3429 | | |
3384 | | - | |
3385 | 3430 | | |
3386 | 3431 | | |
3387 | 3432 | | |
| |||
3641 | 3686 | | |
3642 | 3687 | | |
3643 | 3688 | | |
| 3689 | + | |
| 3690 | + | |
3644 | 3691 | | |
3645 | 3692 | | |
3646 | 3693 | | |
| |||
3666 | 3713 | | |
3667 | 3714 | | |
3668 | 3715 | | |
| 3716 | + | |
3669 | 3717 | | |
3670 | 3718 | | |
3671 | 3719 | | |
3672 | 3720 | | |
| 3721 | + | |
3673 | 3722 | | |
3674 | 3723 | | |
3675 | 3724 | | |
| |||
0 commit comments