y picked from commit 9b4bdd2ffab9557ac43af7dff02e7dab1c8c58bd)
Signed-off-by: Andrey Ryabinin
---
include/linux/mm.h | 16 +++-
mm/memory.c| 52 +++-
2 files changed, 14 insertions(+), 54 deletions(-)
diff --git a/include/linux/mm.h b/incl
n
Signed-off-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-52992
(cherry picked from commit 48f7df329474b49d83d0dffec1b6186647f11976)
Signed-off-by: Andrey Ryabinin
---
mm/mmap.c | 34 +-
1 file changed, 29 insertions(+), 5 deletions(-)
diff --git a/mm/mmap
ed-off-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-52992
(cherry picked from commit 0a191362058391878cc2a4d4ccddcd8223eb4f79)
Signed-off-by: Andrey Ryabinin
---
arch/x86/include/asm/pgtable-2level.h | 86 +--
arch/x86/include/asm/pgtable-3level.h | 12 --
d from commit 0661a33611fca12570cba48d9344ce68834ee86c)
Signed-off-by: Andrey Ryabinin
---
include/linux/mm.h | 1 -
include/linux/swapops.h | 4 +--
mm/ksm.c| 2 +-
mm/madvise.c| 4 +--
mm/memcontrol.c | 7 ++---
mm/memory.c | 80 +++-
y picked from commit 27ba0644ea9dfe6e7693abc85837b60e40583b96)
Signed-off-by: Andrey Ryabinin
---
Documentation/cachetlb.txt | 8 +-
fs/inode.c | 1 -
include/linux/fs.h | 4 +-
include/linux/mm.h | 6 --
include/linux/mm_types.h | 4 +-
include/linux/rmap.h |
ng
task while it waits for core_state->startup completion.
https://jira.sw.ru/browse/PSBM-52793
Link:
http://lkml.kernel.org/r/1475225434-3753-1-git-send-email-aryabi...@virtuozzo.com
Signed-off-by: Andrey Ryabinin
Cc: sta...@vger.kernel.org
Acked-by: Oleg Nesterov
Acked-by: Pavel Machek
: Linus Torvalds
https://jira.sw.ru/browse/PSBM-52992
(cherry picked from commit c8d78c1823f46519473949d33f0d1d33fe21ea16)
Signed-off-by: Andrey Ryabinin
---
Documentation/vm/remap_file_pages.txt | 27
include/linux/fs.h| 8 +-
mm/Makefile | 2 +-
mm/fre
rom commit d83a08db5ba6072caa658745881f4baa9bad6a08)
Signed-off-by: Andrey Ryabinin
---
fs/9p/vfs_file.c | 1 -
fs/btrfs/file.c| 1 -
fs/ceph/addr.c | 1 -
fs/cifs/file.c | 1 -
fs/ext4/file.c | 1 -
fs/f2fs/file.c | 1 -
fs/fuse/file.c | 1 -
fs/gfs2/file.c | 1 -
fs/nfs/file.c
: Andrew Morton
Signed-off-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-52992
(cherry picked from commit ac51b934f3912582d3c897c6c4d09b32ea57b2c7)
Signed-off-by: Andrey Ryabinin
---
include/linux/mm_types.h | 8 +++-
mm/interval_tree.c | 34 +---
ked from commit bdab42dfc974d15303afbf259f340f374a453974)
Signed-off-by: Andrey Ryabinin
---
kernel/kcov.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/kcov.c b/kernel/kcov.c
index 9ea7a05..f963fca 100644
--- a/kernel/kcov.c
+++ b/kernel/kcov.c
@@ -44,7 +44,7 @@ struct kcov {
* E
asha Levin
Cc: David Drysdale
Cc: Ard Biesheuvel
Cc: Andrey Ryabinin
Cc: Kirill A. Shutemov
Cc: Jiri Slaby
Cc: Ingo Molnar
Cc: Thomas Gleixner
Cc: "H. Peter Anvin"
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
(cherry-picked from 5c9a8750a6409c63a0f01d51a9024861
://lkml.kernel.org/r/1476115803-20712-1-git-send-email-andreyk...@google.com
Signed-off-by: Andrey Konovalov
Acked-by: Dmitry Vyukov
Cc: Nicolai Stange
Cc: Andrey Ryabinin
Cc: Kees Cook
Cc: James Morse
Cc: Vegard Nossum
Cc: Quentin Casasnovas
Signed-off-by: Andrew Morton
Signed-off-by: Andrey
cer.
Signed-off-by: Andrey Ryabinin
Cc: Dmitry Vyukov
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
(cherry picked from commit 36f05ae8bce904b4c8105363e6227a79d343bda6)
Signed-off-by: Andrey Ryabinin
---
kernel/kcov.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel
close to __bind/__unbind managing md->map pointer.
>
> https://jira.sw.ru/browse/PSBM-53386
>
> Signed-off-by: Maxim Patlasov
Reviewed-by: Andrey Ryabinin
___
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel
go Molnar
> Signed-off-by: Dmitry Safonov
>
> [backported from ms commit ed1e7db33c33 ("x86/signal: Remove bogus
> user_64bit_mode() check from sigaction_compat_abi()")]
> Signed-off-by: Dmitry Safonov
> ---
Acked-by: Andrey Ryabinin
> arch/x86/ia32/ia32_s
0f 1f 44 00 00 55 48 89 e5 41 57 41 56 49 89 fe 48 89 f7 41 55 41 54 53 <4c>
> 8b 7e 20 e8 7f 5f 04 e1 4c 8d 68 58 49 89 c4 8b 00 4c 89 eb
> [13991.014765] RIP [] ip6t_unregister_table+0x18/0x80
> [ip6_tables]
>
> Fixes: commit bff5233618d8 ("ve/net/ip6tables: fix auto
true with the
current case, so just remove it.
Signed-off-by: Johannes Weiner
Cc: Michal Hocko
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-51558
(cherry picked from commit 284f39afeaa4ab1409b8f43b29cdea3007960ee3)
Signed-off-by: Andrey Ryabinin
ra.sw.ru/browse/PSBM-51558
(cherry picked from commit 03583f1a631c0511dfd2f16e716d5b40f675de5a)
Signed-off-by: Andrey Ryabinin
---
mm/memcontrol.c | 7 ---
1 file changed, 7 deletions(-)
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 598abfa..ca3f8a8 100644
--- a/mm/memcontrol.c
/PSBM-51558
(cherry picked from commit 0029e19ebf84dcd70b226820daa7747b28d5956d)
Signed-off-by: Andrey Ryabinin
---
mm/memcontrol.c | 51 +--
1 file changed, 13 insertions(+), 38 deletions(-)
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index
-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-51558
(cherry picked from commit 1bec6b333e241a9db47d3939fb08a4e174ece02f)
Signed-off-by: Andrey Ryabinin
---
mm/memcontrol.c | 40
1 file changed, 16 insertions(+), 24 deletions(-)
diff --git a/mm
ds
https://jira.sw.ru/browse/PSBM-51558
(cherry picked from commit b6b6cc72bc404c952968530d7df4c3a4ab82b65b)
Signed-off-by: Andrey Ryabinin
---
mm/memcontrol.c | 50 ++
1 file changed, 6 insertions(+), 44 deletions(-)
diff --git a/mm/memcont
: Andrew Morton
Signed-off-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-51558
(cherry picked from commit 06b078fc065fe1fe7097675c8ee416aa2ef94fb3)
Signed-off-by: Andrey Ryabinin
---
mm/memcontrol.c | 32 +---
1 file changed, 17 insertions(+), 15 deletions(-)
diff
().
[mho...@suse.cz: add charge mm helper]
Signed-off-by: Johannes Weiner
Acked-by: Michal Hocko
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-51558
(cherry picked from commit 6d1fdc48938cd51a3964778d78f27cb26c8eb55d)
Signed-off-by: Andrey Ryabinin
n Heo
Cc: Vladimir Davydov
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-51558
(cherry picked from commit 9476db974d9e18885123fcebc09f4596bb922e5f)
Signed-off-by: Andrey Ryabinin
---
mm/memcontrol.c | 48 +++---
5e8d35f849b1969b900695ae191326bfacf6bfc6)
Signed-off-by: Andrey Ryabinin
---
mm/memcontrol.c | 37 +
1 file changed, 21 insertions(+), 16 deletions(-)
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index cb7657e..880fa5b 100644
--- a/mm/memcontrol.c
+++ b/mm
: Johannes Weiner
Acked-by: Michal Hocko
Cc: Hugh Dickins
Cc: Tejun Heo
Cc: Vladimir Davydov
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-51558
(cherry picked from commit 6539cc053869bd32a2db731b215b7c73b11f68d3)
Signed-off-by: Andrey Ryabinin
Dickins
Cc: Tejun Heo
Cc: Vladimir Davydov
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-51558
(cherry picked from commit 9b1306192d335759a6cf2f3b404c49e811e5f953)
Signed-off-by: Andrey Ryabinin
---
mm/memcontrol.c | 8
1 file changed, 4
e Hansen
Signed-off-by: Johannes Weiner
Tested-by: Dave Hansen
Acked-by: Michal Hocko
Acked-by: Vladimir Davydov
Signed-off-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-51558
(cherry picked from commit ce00a967377baadf2481521e131771adc7652856)
Signed-off-by: Andrey Ryabinin
---
r Davydov
Tested-by: Jet Chen
Acked-by: Michal Hocko
Tested-by: Felipe Balbi
Signed-off-by: Vladimir Davydov
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-51558
(cherry picked from commit 0a31bc97c80c3fa87b32c091d9a930ac19cd0c40)
commit 747db954cab64c6b7a95b121b517165f34751898)
Signed-off-by: Andrey Ryabinin
---
include/linux/memcontrol.h | 12 +--
include/linux/sched.h | 6 --
kernel/fork.c | 4 -
mm/memcontrol.c| 206 -
mm/swap.c
origuchi
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-51558
(cherry picked from commit 00501b531c4723972aa11d6d4ebcf8d6552007c8)
Signed-off-by: Andrey Ryabinin
---
Documentation/cgroups/memcg_test.txt | 32 +--
include/linux/memcontrol.h |
Cc: Vladimir Davydov
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-51558
(cherry picked from commit 28c34c291e746aab1c2bfd6d6609b2e47fa0978b)
Signed-off-by: Andrey Ryabinin
---
mm/memcontrol.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions
: Johannes Weiner
Signed-off-by: Fengguang Wu
Acked-by: Michal Hocko
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-51558
(cherry picked from commit df381975463996178d685f6ef7d3555c5f887201)
Signed-off-by: Andrey Ryabinin
---
include/linux/memcontrol.h | 12
c: Tejun Heo
Cc: Vladimir Davydov
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-51558
(cherry picked from commit 9a2385eef9f28fb5260c48c45fc8fe01f1da70a6)
Signed-off-by: Andrey Ryabinin
---
mm/memcontrol.c | 9 -
1 file changed, 9 deletions(
eric page allocator
paths")
Reported-and-tested-by: Eric Dumazet
Signed-off-by: Vladimir Davydov
Signed-off-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-51558
(cherry picked from commit c4159a75b64c0e67caededf4d7372c1b58a5f42a)
Signed-off-by: Andrey Ryabinin
---
mm/memcontrol.c | 4 +++
ichal Hocko
Cc: Hugh Dickins
Cc: Tejun Heo
Cc: Vladimir Davydov
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-51558
(cherry picked from commit d51d885bbb137cc8e1704e76be1846c5e0d5e8b4)
Signed-off-by: Andrey Ryabinin
---
mm/huge_memory.c | 6 +++---
1
Cc: Tejun Heo
Cc: Vladimir Davydov
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-51558
(cherry picked from commit 692e7c45d95ad1064b6911800e2cfec7fc0236db)
Signed-off-by: Andrey Ryabinin
---
mm/memcontrol.c | 9 -
1 file changed, 8 insert
y: David Rientjes
> Signed-off-by: Andrew Morton
> Signed-off-by: Linus Torvalds
>
> [backported from ms commit 255d0884f563 ("mm/slub.c: list_lock may not
> be held in some circumstances")]
> Cc: Andrey Ryabinin
> Signed-off-by: Dmitry Safonov
> ---
Ac
Some scripts wants to read this file to perform some sanity checks.
Loaded modules is not security sensitive information, so this shouldn't
be a problem to expose this in container.
Signed-off-by: Andrey Ryabinin
---
kernel/module.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/k
-54455
Fixes: a2d6b96306e3 ("mm: memcontrol: add memory.numa_migrate file")
Signed-off-by: Andrey Ryabinin
---
mm/memcontrol.c | 12 +++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index cdf1b48..6366cc0 100644
--- a/mm/memcontrol.
If tcache is empty we can bail out immediately from
tcache_cleancache_[get_page, invalidate_page,invalidate_inode]().
As a fast way of identifying empty tcache this patch adds global atomic
counter of tcache nodes.
https://jira.sw.ru/browse/PSBM-56475
Signed-off-by: Andrey Ryabinin
---
mm
idate_* to remove such pages from
its cache.
This should save us some CPU cycles during reclaim if tcache is not active
or when we perform global reclaim.
https://jira.sw.ru/browse/PSBM-56475
Signed-off-by: Andrey Ryabinin
---
mm/tcache.c | 19 ---
1 file changed, 8 insertions(+), 11
On 12/12/2016 07:46 PM, Dmitry Safonov wrote:
> It succeed on 256M kdumping, but fires OOM - set 320M limit.
>
> https://jira.sw.ru/browse/PSBM-56847
>
> Cc: Andrey Ryabinin
> Signed-off-by: Dmitry Safonov
Acked-by: Andrey Ryabinin
___
If tcache is empty we can bail out immediately from
tcache_cleancache_[get_page, invalidate_page,invalidate_inode]().
As a fast way of identifying empty tcache this patch adds global atomic
counter of tcache nodes.
https://jira.sw.ru/browse/PSBM-56475
Signed-off-by: Andrey Ryabinin
---
Changes
idate_* to remove such pages from
its cache.
This should save us some CPU cycles during reclaim if tcache is not active
or when we perform global reclaim.
https://jira.sw.ru/browse/PSBM-56475
Signed-off-by: Andrey Ryabinin
---
mm/tcache.c | 19 ---
1 file changed, 8 insertions(+), 11
If tcache is empty we can bail out immediately from
tcache_cleancache_[get_page, invalidate_page,invalidate_inode]().
As a fast way of identifying empty tcache this patch adds global atomic
counter of tcache nodes.
https://jira.sw.ru/browse/PSBM-56475
Signed-off-by: Andrey Ryabinin
---
Changes
idate_* to remove such pages from
its cache.
This should save us some CPU cycles during reclaim if tcache is not active
or when we perform global reclaim.
https://jira.sw.ru/browse/PSBM-56475
Signed-off-by: Andrey Ryabinin
---
mm/tcache.c | 19 ---
1 file changed, 8 insertions(+), 11
On 12/12/2016 03:58 PM, Thomas Hoberg wrote:
> Hi Andrey,
>
> I'm very sorry to contact you directly, but I've run out of options to help
> myself.
>
> I am trying to get CUDA programs to run inside OpenVZ containers (they
> already run on Docker containers on the host) and my problem is that t
On 12/13/2016 05:57 PM, Andrey Ryabinin wrote:
> Access to proc directories is slightly different. We show directory in
> container iff it sticky bit is set.
> You can set sticky bit via chmod (it's forbidden for proc entries in OpenVZ
> kernel, I dunno why),
> but you c
kernel/cpuset.c
from the upstream patch. Our kernel still needs task_lock() task lock there
to protect task_cs(). Upstream switched to RCU protection thus it doesn't
need task_lock() to protect task_cs()]
Signed-off-by: Andrey Ryabinin
---
mm/oom_kill.c | 11 +--
1 file changed, 1 i
FADV_DEACTIVATE advises kernel to move file pages from active to
inactive list.
https://jira.sw.ru/browse/PSBM-57915
Signed-off-by: Andrey Ryabinin
---
include/uapi/linux/fadvise.h | 1 +
mm/fadvise.c | 43 +++
2 files changed, 44
Pfcache's peer files is a shared resource, thus it shouldn't be accounted
per-container.
This makes peer files to be accounted in ub0, the same way as it is in PSBM6.
https://jira.sw.ru/browse/PSBM-56167
Signed-off-by: Andrey Ryabinin
---
mm/memory.c | 3 +++
1 file changed, 3
BM-53314
[aryabinin: s/cgroup_is_dead()/cgroup_is_removed()]
Signed-off-by: Andrey Ryabinin
---
kernel/cgroup.c | 20 +++-
1 file changed, 19 insertions(+), 1 deletion(-)
diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index 1c047b9..6aafc51 100644
--- a/kernel/cgroup.c
+++ b/kernel/c
-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-51558
(cherry picked from commit 1bec6b333e241a9db47d3939fb08a4e174ece02f)
Signed-off-by: Andrey Ryabinin
---
mm/memcontrol.c | 40
1 file changed, 16 insertions(+), 24 deletions(-)
diff --git a/mm
ra.sw.ru/browse/PSBM-51558
(cherry picked from commit 03583f1a631c0511dfd2f16e716d5b40f675de5a)
Signed-off-by: Andrey Ryabinin
---
mm/memcontrol.c | 7 ---
1 file changed, 7 deletions(-)
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 7b2a99f..d09d55d9 100644
--- a/mm/memcontrol.c
ds
https://jira.sw.ru/browse/PSBM-51558
(cherry picked from commit b6b6cc72bc404c952968530d7df4c3a4ab82b65b)
Signed-off-by: Andrey Ryabinin
---
mm/memcontrol.c | 50 ++
1 file changed, 6 insertions(+), 44 deletions(-)
diff --git a/mm/memcont
true with the
current case, so just remove it.
Signed-off-by: Johannes Weiner
Cc: Michal Hocko
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-51558
(cherry picked from commit 284f39afeaa4ab1409b8f43b29cdea3007960ee3)
Signed-off-by: Andrey Ryabinin
: Johannes Weiner
Acked-by: Michal Hocko
Cc: Hugh Dickins
Cc: Tejun Heo
Cc: Vladimir Davydov
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-51558
(cherry picked from commit 6539cc053869bd32a2db731b215b7c73b11f68d3)
Signed-off-by: Andrey Ryabinin
ichal Hocko
Cc: Hugh Dickins
Cc: Tejun Heo
Cc: Vladimir Davydov
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-51558
(cherry picked from commit d51d885bbb137cc8e1704e76be1846c5e0d5e8b4)
Signed-off-by: Andrey Ryabinin
---
mm/huge_memory.c | 6 +++---
1
Dickins
Cc: Tejun Heo
Cc: Vladimir Davydov
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-51558
(cherry picked from commit 9b1306192d335759a6cf2f3b404c49e811e5f953)
Signed-off-by: Andrey Ryabinin
---
mm/memcontrol.c | 8
1 file changed, 4
/PSBM-51558
(cherry picked from commit 0029e19ebf84dcd70b226820daa7747b28d5956d)
Signed-off-by: Andrey Ryabinin
---
mm/memcontrol.c | 51 +--
1 file changed, 13 insertions(+), 38 deletions(-)
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index
Cc: Tejun Heo
Cc: Vladimir Davydov
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-51558
(cherry picked from commit 692e7c45d95ad1064b6911800e2cfec7fc0236db)
Signed-off-by: Andrey Ryabinin
---
mm/memcontrol.c | 9 -
1 file changed, 8 insert
c: Tejun Heo
Cc: Vladimir Davydov
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-51558
(cherry picked from commit 9a2385eef9f28fb5260c48c45fc8fe01f1da70a6)
Signed-off-by: Andrey Ryabinin
---
mm/memcontrol.c | 9 -
1 file changed, 9 deletions(
eric page allocator
paths")
Reported-and-tested-by: Eric Dumazet
Signed-off-by: Vladimir Davydov
Signed-off-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-51558
(cherry picked from commit c4159a75b64c0e67caededf4d7372c1b58a5f42a)
Signed-off-by: Andrey Ryabinin
---
mm/memcontrol.c | 4 +++
5e8d35f849b1969b900695ae191326bfacf6bfc6)
Signed-off-by: Andrey Ryabinin
---
mm/memcontrol.c | 37 +
1 file changed, 21 insertions(+), 16 deletions(-)
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 6c11788..0183a9c 100644
--- a/mm/memcontrol.c
+++ b/mm
commit 747db954cab64c6b7a95b121b517165f34751898)
Signed-off-by: Andrey Ryabinin
---
include/linux/memcontrol.h | 12 +--
include/linux/sched.h | 6 --
kernel/fork.c | 4 -
mm/memcontrol.c| 204 -
mm/swap.c
origuchi
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-51558
(cherry picked from commit 00501b531c4723972aa11d6d4ebcf8d6552007c8)
Signed-off-by: Andrey Ryabinin
---
Documentation/cgroups/memcg_test.txt | 32 +--
include/linux/memcontrol.h |
Cc: Vladimir Davydov
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-51558
(cherry picked from commit 28c34c291e746aab1c2bfd6d6609b2e47fa0978b)
Signed-off-by: Andrey Ryabinin
---
mm/memcontrol.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions
e Hansen
Signed-off-by: Johannes Weiner
Tested-by: Dave Hansen
Acked-by: Michal Hocko
Acked-by: Vladimir Davydov
Signed-off-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-51558
(cherry picked from commit ce00a967377baadf2481521e131771adc7652856)
Signed-off-by: Andrey Ryabinin
---
r Davydov
Tested-by: Jet Chen
Acked-by: Michal Hocko
Tested-by: Felipe Balbi
Signed-off-by: Vladimir Davydov
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-51558
(cherry picked from commit 0a31bc97c80c3fa87b32c091d9a930ac19cd0c40)
n Heo
Cc: Vladimir Davydov
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-51558
(cherry picked from commit 9476db974d9e18885123fcebc09f4596bb922e5f)
Signed-off-by: Andrey Ryabinin
---
mm/memcontrol.c | 48 +++---
().
[mho...@suse.cz: add charge mm helper]
Signed-off-by: Johannes Weiner
Acked-by: Michal Hocko
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-51558
(cherry picked from commit 6d1fdc48938cd51a3964778d78f27cb26c8eb55d)
Signed-off-by: Andrey Ryabinin
: Johannes Weiner
Signed-off-by: Fengguang Wu
Acked-by: Michal Hocko
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-51558
(cherry picked from commit df381975463996178d685f6ef7d3555c5f887201)
Signed-off-by: Andrey Ryabinin
---
include/linux/memcontrol.h | 12
: Andrew Morton
Signed-off-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-51558
(cherry picked from commit 06b078fc065fe1fe7097675c8ee416aa2ef94fb3)
Signed-off-by: Andrey Ryabinin
---
mm/memcontrol.c | 32 +---
1 file changed, 17 insertions(+), 15 deletions(-)
diff
kernel.org
Signed-off-by: Konstantin Neumoin
Signed-off-by: Denis V. Lunev
CC: Michael S. Tsirkin
Signed-off-by: Michael S. Tsirkin
https://jira.sw.ru/browse/PSBM-58601
Signed-off-by: Andrey Ryabinin
---
drivers/virtio/virtio_balloon.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/driv
The size of the ip_tunnel_prl structs allocation is controllable from
user-space,
thus it's better to avoid spam in dmesg if allocation failed.
Also add __GFP_ACCOUNT as this is a good candidate for per-memcg accounting.
https://jira.sw.ru/browse/PSBM-58330
Signed-off-by: Andrey Rya
This adds CFTYPE_ONLY_ON_VE_ROOT flag for control files. It will
be used in later patch to create cgroup control file which will
show up only on ve root cgroups.
https://jira.sw.ru/browse/PSBM-33401
Signed-off-by: Andrey Ryabinin
---
include/linux/cgroup.h | 1 +
kernel/cgroup.c| 59
/PSBM-33401
Signed-off-by: Andrey Ryabinin
---
include/linux/cgroup.h | 1 +
kernel/cgroup.c| 62 ++
2 files changed, 63 insertions(+)
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h
index 816cbac..d99251b 100644
--- a/include/
unter")
Signed-off-by: Andrey Ryabinin
---
mm/memcontrol.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index dc83f4e..233f542 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -4194,7 +4194,7 @@ static inline u64 mem_cgroup_us
g")
Signed-off-by: Andrey Ryabinin
---
mm/memcontrol.c | 18 --
1 file changed, 12 insertions(+), 6 deletions(-)
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 420568b..df6edec 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -6923,7 +6923,7 @@ static void unchar
hat we call cgroup_add_ve_root_files() only once per
cgroup to avoid that problem and message in dmesg as well.
https://jira.sw.ru/browse/PSBM-59693
Signed-off-by: Andrey Ryabinin
---
kernel/cgroup.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/cgroup.c b/ker
https://jira.sw.ru/browse/PSBM-60139
Signed-off-by: Andrey Ryabinin
---
kernel/sched/core.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index cfd4bac..71eeb07 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -5795,11
dd them on every cgroup, but allow writing to it only in VE_ROOT cgroup.
This is much more simpler and allow us to kill a lot of bogus code.
https://jira.sw.ru/browse/PSBM-59122
Signed-off-by: Andrey Ryabinin
---
include/linux/cgroup.h | 1 -
kernel/cgroup.c| 34 ---
o unsigned.
[a...@linux-foundation.org: fix old typo while we're in there]
Signed-off-by: Greg Thelen
Cc: Johannes Weiner
Acked-by: Michal Hocko
Cc: [4.2+]
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-56256
Signed-off-by: Andrey Ryabinin
to
> per-bdi limits and counters.
>
> Kudos to Andrey Ryabinin for pointing out.
>
> https://jira.sw.ru/browse/PSBM-60701
> Signed-off-by: Maxim Patlasov
Acked-by: Andrey Ryabinin
> ---
> mm/page-writeback.c |3 +--
> 1 file changed, 1 insertion(+), 2 deletions
On 03/16/2017 06:03 PM, Konstantin Khorenko wrote:
> Andrey, please take a look.
>
> All other patches from Anatoly are applied already, except this one.
> Worth to apply this one as well?
>
Yep,
Acked-by: Andrey Ryabinin
> --
> Best regards,
>
> Konst
It's broken and probably won't be fixed soon, so revert it for now.
https://jira.sw.ru/browse/PSBM-60359
Signed-off-by: Andrey Ryabinin
---
mm/ksm.c | 732 ++-
1 file changed, 66 insertions(+), 666 deletions(-)
diff --git a/
rkfn+0x11d/0x420
[] process_one_work+0x17b/0x470
[] worker_thread+0x11b/0x400
[] kthread+0xcf/0xe0
[] ret_from_fork+0x58/0x90
---[ end trace 892c68052e9c3d3f ]---
Also add __GFP_NOWARN as failures here is fine.
https://jira.sw.ru/browse/PSBM-58279
Signed-off-by: Andrey Ryabinin
---
mm/z
off-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-62080
Signed-off-by: Andrey Ryabinin
---
mm/memcontrol.c | 37 +
1 file changed, 37 insertions(+)
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 95b1c0c..74faf07 100644
--- a/mm/memcontrol.c
+++ b/mm
ifferent orders this
: would be broken.
Signed-off-by: Jerome Marchand
Acked-by: Michal Hocko
Acked-by: Johannes Weiner
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-62827
Signed-off-by: Andrey Ryabinin
---
mm/memcontrol.c | 2 +-
1 file changed, 1
We can put css only after assigning memcg to pc->mem_cgroup:
pc->mem_cgroup = memcg;
https://jira.sw.ru/browse/PSBM-62827
Signed-off-by: Andrey Ryabinin
---
mm/memcontrol.c | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
We don't uncharge nr_kmem pages from ->mem and ->memsw
if nr_mem == 0 and nr_memsw == 0.
We don't uncharge nr_kmem from ->kmem page counter.
https://jira.sw.ru/browse/PSBM-62827
Fixes: fe9a4e1e4c8f ("ms/mm: memcontrol: teach uncharge_list to deal with kmem
pages")
S
Commit 355ccab81bc9 (reapply of commit a60971691) missed hunk from
memcg_uncharge_kmem()
https://jira.sw.ru/browse/PSBM-62827
Fixes: 355ccab81bc9 ("mm: memcontrol: fix race between kmem uncharge and charge
reparenting")
Signed-off-by: Andrey Ryabinin
---
mm/memcontrol.c | 6
emcg) from __memcg_activate_kmem();
https://jira.sw.ru/browse/PSBM-62827
Signed-off-by: Andrey Ryabinin
---
mm/memcontrol.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 13d4205..bc72a26 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -4351,6 +4351,8 @@
vior by passing kmemaccount=0 on
boot.
Signed-off-by: Vladimir Davydov
https://jira.sw.ru/browse/PSBM-62827
Signed-off-by: Andrey Ryabinin
---
mm/memcontrol.c | 14 +-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index bc72a26..4e1dbbb
ng")
Signed-off-by: Andrey Ryabinin
---
mm/memcontrol.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 74faf07..e028861 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -3043,9 +3043,6 @@ int memcg_charge_kmem(struct mem_cgroup *memcg, gfp_t gf
On 03/29/2017 03:32 PM, Konstantin Khorenko wrote:
> Andrey, did you send it to mainstream as well?
>
> Please post a link here.
>
https://lkml.kernel.org/r/20170331153009.11397-1-aryabi...@virtuozzo.com
Note it slightly different, after looking at this code again I decided to made
small cle
= __this_cpu_sub_return(ulong_counter, ui_one);
CHECK(ul, ulong_counter, 1);
Signed-off-by: Greg Thelen
Acked-by: Tejun Heo
Acked-by: Johannes Weiner
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
https://jira.sw.ru/browse/PSBM-63424
Signed-off-by: Andrey Ryabinin
---
arch/x86
and can be reverted.
Signed-off-by: Andrey Ryabinin
---
mm/page_alloc.c | 3 ++-
mm/slab.c | 6 --
mm/slub.c | 3 ++-
3 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index afac33e..2607756 100644
--- a/mm/page_alloc.c
+++ b/mm/pa
After rebase to rhel7.3 memcg_[un]charge_kmem() takes number of pages
instead of size in bytes. Callers in net/packet/af_packet.c were not
updated, so they still pass bytes which leads to bogus -ENOMEM.
https://jira.sw.ru/browse/PSBM-63654
Signed-off-by: Andrey Ryabinin
---
net/packet
501 - 600 of 1008 matches
Mail list logo