[Devel] [PATCH rh7 v2 1/4] mm: workingset: size shadow nodes lru basing on file cache size

2018-12-29 Thread Andrey Ryabinin
From: Vladimir Davydov A page is activated on refault if the refault distance stored in the corresponding shadow entry is less than the number of active file pages. Since active file pages can't occupy more than half memory, we assume that the maximal effective refault distance can't be greater t

[Devel] [PATCH rh7 v2 3/4] slub: Make cpu partial slab support configurable

2018-12-29 Thread Andrey Ryabinin
From: Joonsoo Kim CPU partial support can introduce level of indeterminism that is not wanted in certain context (like a realtime kernel). Make it configurable. This patch is based on Christoph Lameter's "slub: Make cpu partial slab support configurable V2". Acked-by: Christoph Lameter Signed-

[Devel] [PATCH rh7 v2 2/4] mm: workingset: update shadow limit to reflect bigger active list

2018-12-29 Thread Andrey Ryabinin
From: Johannes Weiner Since commit 59dc76b0d4df ("mm: vmscan: reduce size of inactive file list") the size of the active file list is no longer limited to half of memory. Increase the shadow node limit accordingly to avoid throwing out shadow entries that might still result in eligible refaults.

[Devel] [PATCH rh7 v2 4/4] mm/slub: set slub_max_order = 0 by default.

2018-12-29 Thread Andrey Ryabinin
Setting slub_max_order to 0 makes slub to use minimum possible order for slub page. Pros: - Less fragmentation of slab objects in slab pages -> less slab consumption. E.g. on dvd-store test on machine with 256G this saves us ~3G. - Potentially faster in high memory fragmentation cases (

Re: [Devel] [PATCH rh7 2/4] mm: workingset: update shadow limit to reflect bigger active list

2018-12-29 Thread Vasily Averin
minor note, I hope Kostja will handle this during commit. On 12/29/18 6:48 PM, Andrey Ryabinin wrote: > + * Nodes might be sparsely populated, with only one shadow > + * entry in the extreme case. Obviously, we cannot keep one > + * node for every eligible shadow entry, so compromis

[Devel] [PATCH rh7 3/4] slub: Make cpu partial slab support configurable

2018-12-29 Thread Andrey Ryabinin
From: Joonsoo Kim CPU partial support can introduce level of indeterminism that is not wanted in certain context (like a realtime kernel). Make it configurable. This patch is based on Christoph Lameter's "slub: Make cpu partial slab support configurable V2". Acked-by: Christoph Lameter Signed-

[Devel] [PATCH rh7 2/4] mm: workingset: update shadow limit to reflect bigger active list

2018-12-29 Thread Andrey Ryabinin
From: Johannes Weiner Since commit 59dc76b0d4df ("mm: vmscan: reduce size of inactive file list") the size of the active file list is no longer limited to half of memory. Increase the shadow node limit accordingly to avoid throwing out shadow entries that might still result in eligible refaults.

[Devel] [PATCH rh7 4/4] mm/slub: set slub_max_order = 0 by default.

2018-12-29 Thread Andrey Ryabinin
Setting slub_max_order to 0 makes slub to use minimum possible order for slub page. Pros: - Less fragmentation of slab objects in slab pages -> less slab consumption. E.g. on dvd-store test on machine with 256G this saves us ~3G. - Potentially faster in high memory fragmentation cases (

[Devel] [PATCH rh7 1/4] mm: workingset: size shadow nodes lru basing on file cache size

2018-12-29 Thread Andrey Ryabinin
From: Vladimir Davydov A page is activated on refault if the refault distance stored in the corresponding shadow entry is less than the number of active file pages. Since active file pages can't occupy more than half memory, we assume that the maximal effective refault distance can't be greater t

[Devel] [PATCH rh7] netfilter/vzprivnet: Fix memleaks of 'struct seq_operations'

2018-12-29 Thread Andrey Ryabinin
single_open() allocates seq_operations struct, which leaked because some 'proc_stat_ops', proc_classify_ops, proc_classify6_ops use seq_release 'release' callback instead of single_release. Fix this. Signed-off-by: Andrey Ryabinin --- net/ipv4/netfilter/ip_vzprivnet.c | 4 ++-- net/ipv6/netfilt

[Devel] [PATCH] netfilter: account ebt_table_info to kmemcg

2018-12-29 Thread Kirill Tkhai
[This is not in ms kernel yet, but we are not interested in waiting for next iteration (comment changing was reuested). https://lkml.org/lkml/2018/12/28/457] The [ip,ip6,arp]_tables use x_tables_info internally and the underlying memory is already accounted to kmemcg. Do the same for ebtables. T