g>
https://jira.sw.ru/browse/PSBM-52992
(cherry picked from commit c8d78c1823f46519473949d33f0d1d33fe21ea16)
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
Documentation/vm/remap_file_pages.txt | 27
include/linux/fs.h| 8 +-
mm/Make
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 <aryabi...@virtuozzo.com>
Cc: sta...@vger.kernel.org
Acked-by: Oleg Nesterov <o...@redhat.co
org>
Signed-off-by: Linus Torvalds <torva...@linux-foundation.org>
https://jira.sw.ru/browse/PSBM-52992
(cherry picked from commit 27ba0644ea9dfe6e7693abc85837b60e40583b96)
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
Documentation/cachetlb.txt | 8 +-
fs/inode.
ned-off-by: Andrew Morton <a...@linux-foundation.org>
Signed-off-by: Linus Torvalds <torva...@linux-foundation.org>
https://jira.sw.ru/browse/PSBM-52992
(cherry picked from commit 0661a33611fca12570cba48d9344ce68834ee86c)
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
inclu
as Ignotas <nota...@gmail.com>
Tested-by: Grazvydas Ignotas <nota...@gmail.com>
Cc: <sta...@vger.kernel.org>[4.0+]
Signed-off-by: Andrew Morton <a...@linux-foundation.org>
Signed-off-by: Linus Torvalds <torva...@linux-foundation.org>
https://jira.sw.ru/browse/PSBM-52992
(che
g>
Signed-off-by: Andrew Morton <a...@linux-foundation.org>
Signed-off-by: Linus Torvalds <torva...@linux-foundation.org>
https://jira.sw.ru/browse/PSBM-52992
(cherry picked from commit 1ac0b6dec656f3f78d1c3dd216fad84cb4d0a01e)
Signed-off-by: And
oundation.org>
Signed-off-by: Linus Torvalds <torva...@linux-foundation.org>
https://jira.sw.ru/browse/PSBM-52992
(cherry picked from commit 9b4bdd2ffab9557ac43af7dff02e7dab1c8c58bd)
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
include/linux/mm.h | 16 +
a...@linux-foundation.org>
Signed-off-by: Linus Torvalds <torva...@linux-foundation.org>
https://jira.sw.ru/browse/PSBM-52992
(cherry picked from commit 1da4b35b001481df99a6dcab12d5d39a876f7056)
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
fs/proc/task_mmu.c | 15 -
by: Linus Torvalds <torva...@linux-foundation.org>
https://jira.sw.ru/browse/PSBM-52992
(cherry picked from commit 5064c8e19dc215afae8ffae95570e7f22062d49c)
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
include/asm-generic/pgtable.h | 15 ---
1 file changed, 15
Backported patchset "Workaround for Xeon Phi PTE A/D bits erratum"
caused - kernel BUG at mm/rmap.c:1305!
_PAGE_BIT_FILE is not present in upstream but still present
in RHEL7 kernel, so they did this:
/* Pick a bit unaffected by the "KNL4 erratum": */
#define _PAGE_BIT_FILE
.org>
https://jira.sw.ru/browse/PSBM-52992
(cherry picked from commit 8a5f14a23177061ec11daeaa3d09d0765d785c47)
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
include/linux/mm.h | 1 -
mm/madvise.c | 9 +-
mm/memory.c| 83 ++---
On 10/03/2016 11:56 AM, Andrey Ryabinin wrote:
> Backported patchset "Workaround for Xeon Phi PTE A/D bits erratum"
> caused - kernel BUG at mm/rmap.c:1305!
>
> _PAGE_BIT_FILE is not present in upstream but still present
> in RHEL7 kernel, so they did this:
>
https://jira.sw.ru/browse/PSBM-52992
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
Changes since v1 - fixed typo
s/_PAGE_PIT_DIRTY/_PAGE_BIT_DIRTY
arch/x86/include/asm/pgtable_types.h | 6 +-
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/arch/x86/include/asm/p
Which conflicts with ours code:
#define _PAGE_SWP_SOFT_DIRTY _PAGE_PSE
So, as temporary fix restore old value for _PAGE_FILE.
If we care about supporting Xeon Phi we could backport
remap_file_pages() emulation from upstream which removes uses _PAGE_FILE.
https://jira.sw.ru/browse/PSBM-52992
S
nel
>
> https://jira.sw.ru/browse/PSBM-52719
>
> Signed-off-by: Kirill Tkhai <ktk...@virtuozzo.com>
Reviewed-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
> ---
> kernel/panic.c |3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git
On 09/23/2016 05:13 PM, Konstantin Khorenko wrote:
> Why mainstream still keeps it?
>
By mistake, I guess.
> --
> Best regards,
>
> Konstantin Khorenko,
> Virtuozzo Linux Kernel Team
>
> On 09/22/2016 07:44 PM, Andrey Ryabinin wrote:
>> There is no need
from commit 1d3aa6f683b1c1a813a63339d7309cff58ba4531)
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
drivers/md/dm.c | 14 +++---
1 file changed, 3 insertions(+), 11 deletions(-)
diff --git a/drivers/md/dm.c b/drivers/md/dm.c
index d9a24c9..a7993cf 100644
--- a/dri
There is no need for it.
https://jira.sw.ru/browse/PSBM-50727
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
drivers/md/dm-ioctl.c | 8
1 file changed, 8 deletions(-)
diff --git a/drivers/md/dm-ioctl.c b/drivers/md/dm-ioctl.c
index 720ceeb..0fe4233 100644
--- a/d
ep a moment ago.
>
> See for dec_nr_active_cfs_rqs(), which postpone actions it does.
>
> Signed-off-by: Kirill Tkhai <ktk...@virtuozzo.com>
Reviewed-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
> ---
> kernel/sched/fair.c |2 +-
> 1 file changed, 1 insertion(
>
https://jira.sw.ru/browse/PSBM-51056
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
kernel/sched/core.c | 9 -
kernel/sched/fair.c | 16 +---
kernel/sched/sched.h | 3 ++-
3 files changed, 19 insertions(+), 9 deletions(-)
diff --git a/kernel/sche
ed-off-by: Vladimir Davydov <vdavy...@virtuozzo.com>
> Cc: Andrey Ryabinin <aryabi...@virtuozzo.com>
> Cc: Igor Redko <red...@virtuozzo.com>
> Cc: Konstantin Neumoin <kneum...@virtuozzo.com>
Reviewed-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
ed-off-by: Vladimir Davydov <vdavy...@virtuozzo.com>
> Cc: Andrey Ryabinin <aryabi...@virtuozzo.com>
> Cc: Igor Redko <red...@virtuozzo.com>
> Cc: Konstantin Neumoin <kneum...@virtuozzo.com>
> ---
echo "0 100" > /sys/fs/cgroup/memory/machine.slice
that.
https://jira.sw.ru/browse/PSBM-50858
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
fs/block_dev.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/fs/block_dev.c b/fs/block_dev.c
index 4575c62..325ee71 100644
--- a/fs/block_dev.c
+++ b/fs/block
/PSBM-50858
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
drivers/block/ploop/dev.c | 21 ++---
drivers/block/ploop/io_direct.c | 12
drivers/md/dm-crypt.c | 8 +++-
drivers/md/dm.c | 6 ++
drivers/m
For encrypted ploop we will need to know what block_device was frozen
in ploop_freeze(), so we could thaw() it. We don't need to store super_block,
because we sould be able to get it from frozen block device.
https://jira.sw.ru/browse/PSBM-50858
Signed-off-by: Andrey Ryabinin <ary
If freeze_bdev() called in find_and_freeze_bdev() fails we should
drop a reference counter grabbed by bdget_disk() call.
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
Acked-by: Maxim Patlasov <mpatla...@virtuozzo.com>
---
drivers/block/ploop/dev.c | 5 -
1 fil
On 08/19/2016 02:40 AM, Maxim Patlasov wrote:
> On 08/18/2016 09:49 AM, Andrey Ryabinin wrote:
>
>>
>> On 08/18/2016 04:21 AM, Maxim Patlasov wrote:
>>> Andrey,
>>>
>>>
>>> ploop_freeze() must use __ploop_get_dm_crypt_bdev(), not
>
/PSBM-50858
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
Changes since v1:
- fixed deadlock in ploop_freeze()
- use bdgrab()/bdput() to keep bdev alive
- use sb->s_bdev in ploop_thaw() instead of plo->dm_crypt_bdev in case
it changed after freeze
drivers/block
On 08/18/2016 04:21 AM, Maxim Patlasov wrote:
> Andrey,
>
>
> ploop_freeze() must use __ploop_get_dm_crypt_bdev(), not
> ploop_get_dm_crypt_bdev()!
>
YUp.
>
> Another problem is that the patch does not ensure that plo->dm_crypt_bdev
> stays the same between PLOOP_IOC_FREEZE/THAW. I could
/PSBM-50858
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
drivers/block/ploop/dev.c | 27 +--
drivers/block/ploop/io_direct.c | 9 +
drivers/md/dm-crypt.c | 8 +++-
drivers/md/dm.c | 6 ++
drivers/m
This backports simple helper from upstream commit
146aa8b1453b ("KEYS: Merge the type-specific data with the payload data")
To be used in dm-crypt.
https://jira.sw.ru/browse/PSBM-44218
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
include/keys/user-type.h
looks like this:
[|:]
[<#opt_params> ]
Note: userspace part for this is not implemented yet.
https://jira.sw.ru/browse/PSBM-44218
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
Changes since v1:
- Fixed memleak on crypt_decode_key() failure.
drivers/md/dm-c
looks like this:
[|:]
[<#opt_params> ]
Note: userspace part for this is not implemented yet.
https://jira.sw.ru/browse/PSBM-44218
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
drivers/md/dm-crypt.c | 114 ++
1 file
This backports simple helper from upstream commit
146aa8b1453b ("KEYS: Merge the type-specific data with the payload data")
To be used in dm-crypt.
https://jira.sw.ru/browse/PSBM-44218
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
include/keys/user-type.h
://jira.sw.ru/browse/PSBM-50548
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
kernel/kmod.c | 1 +
net/ipv6/netfilter/ip6table_raw.c | 3 +++
2 files changed, 4 insertions(+)
diff --git a/kernel/kmod.c b/kernel/kmod.c
index 5e5c2c6..d2c16a9 100644
--- a/kernel/
nix.de>
Link:
http://lkml.kernel.org/r/146608183552.21905.15924473394414832071.stgit@buzz
Signed-off-by: Ingo Molnar <mi...@kernel.org>
https://jira.sw.ru/browse/PSBM-50099
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
kernel/sched/fair.c | 9 -
1 file changed, 4 in
ogle.com
Link: http://lkml.kernel.org/r/146608182119.21870.8439834428248129633.stgit@buzz
Signed-off-by: Ingo Molnar <mi...@kernel.org>
https://jira.sw.ru/browse/PSBM-50099
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
kernel/sched/fair.c | 20
kernel/sched/sched.h | 2 +-
2 f
If allocation failed due to memory overcommit failcounters doesn't change.
This contradicts with userspace expectations.
With this patch, such failures will be accounted in failconter of
UB_PRIVVMPAGES.
https://jira.sw.ru/browse/PSBM-48891
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.
All device permissions are controlled via device cgroup now.
We don't need this ioctl() anymore.
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
include/uapi/linux/vzcalluser.h | 2 +-
kernel/ve/vecalls.c | 37 -
2 files chan
ned-off-by: Kirill Tkhai <ktk...@virtuozzo.com>
Reviewed-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
___
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel
-ENOENT if we asked for vcpu stats of root_task_group.
https://jira.sw.ru/browse/PSBM-48721
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
kernel/sched/core.c | 10 --
kernel/ve/ve.c | 7 ---
2 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/
This is a leftover from PCS6. Currently this code does absolutely
nothing, so let's remove it.
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
include/linux/fs.h | 1 -
security/device_cgroup.c | 13 ++---
2 files changed, 2 insertions(+), 12 deletions(-)
diff
off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
security/device_cgroup.c | 11 ---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/security/device_cgroup.c b/security/device_cgroup.c
index 0a6d9c4..08e80a5 100644
--- a/security/device_cgroup.c
+++ b/security/device
486
Fixes: 60c21d9f08bf ("kernel/sysrq: reset watchdog on all cpus while during
sysrq-w")
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
kernel/sched/core.c | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/kernel/sched/core.c b/kernel/sched/cor
# cat /sys/fs/cgroup/cpu,cpuacct/101/cpu.nr_cpus
0
tg_update_cpu_limit() does that without any apparent reason,
so let's fix it,.
https://jira.sw.ru/browse/PSBM-48061
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
kernel/sched/core.c | 1 -
1 file changed, 1 deletion(-)
ctly copy ->csum_bad along with
->csum_level and ->remcsum_offload fields which are also copied in the
upstream kernel after b19372273164 commit.
Note that we already have stepped on this in
https://jira.sw.ru/browse/PSBM-38924
but this wasn't properly fixed at the time.
https://jira.sw.ru/brows
Patch 'fs/aio: show real number of aio events in fs.aio-nr sysctl'
changed only incrementing of fs.aio-nr counter. It failed to update
decrement path which leads to constant growing of fs.aio-nr value.
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
fs/aio.c | 4 ++--
1 file c
On 05/25/2016 04:31 PM, Andrey Ryabinin wrote:
> Lengthy output of sysrq-w may take a lot of time on slow serial console.
> Currently we reset NMI-watchdog on the current cpu to avoid softlockup,
> however this doesn't work since watchdog might be triggered on the other
> cpu wh
spurious softlockup messages.
https://jira.sw.ru/browse/PSBM-47486
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
kernel/sched/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 2c147c8..d21ccf0
at
After:
BUG: KASAN: out-of-bounds access in at
Link:
http://lkml.kernel.org/r/1462538722-1574-2-git-send-email-aryabi...@virtuozzo.com
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
Acked-by: Alexander Potapenko <gli...@google.com>
Cc: Dmitry Vyukov <dvyu...@googl
-1574-3-git-send-email-aryabinin@virtuocom
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
Acked-by: Alexander Potapenko <gli...@google.com>
Cc: Dmitry Vyukov <dvyu...@google.com>
Cc: Ingo Molnar <mi...@elte.hu>
Cc: "H. Peter Anvin" <h...@zytor.com>
...@virtuozzo.com: move kasan check under the condition]
Link:
http://lkml.kernel.org/r/1462869209-21096-1-git-send-email-aryabi...@virtuozzo.com
Link:
http://lkml.kernel.org/r/1462538722-1574-4-git-send-email-aryabi...@virtuozzo.com
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
Cc: Ale
() the number of actually created events. This leads
to inconsistent value of fs.aio-nr after the restore.
Let's account in fs.aio-nr a number of created events, not requested.
https://jira.sw.ru/browse/PSBM-47209
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
fs/aio.c | 6 +++---
e/PSBM-47023
Link:
http://lkml.kernel.org/g/1463588367-16310-1-git-send-email-aryabi...@virtuozzo.com
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
Suggested-by: Hannes Frederic Sowa <han...@stressinduktion.org>
Acked-by: Eric Dumazet <eduma...@google.com>
---
incl
off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
drivers/block/ploop/dev.c | 73 +--
1 file changed, 32 insertions(+), 41 deletions(-)
diff --git a/drivers/block/ploop/dev.c b/drivers/block/ploop/dev.c
index f3bb092..c4f81df 100644
--- a/driv
UBC_PRIVVMPAGES limit is still
> taken into account. If disabled (ubc.overcommit_memory = 1), only the
> UBC_PRIVVMPAGES limit will be checked.
>
> https://jira.sw.ru/browse/PSBM-45695
>
> Signed-off-by: Vladimir Davydov <vdavy...@virtuozzo.com>
Reviewed-by: Andrey Ryab
gt;
> Acked-by: Johannes Weiner <han...@cmpxchg.org>
> Signed-off-by: Jens Axboe <ax...@fb.com>
> (cherry picked from commit 733a572e66d2a23c852fdce34dba5bbd40667817)
> Signed-off-by: Vladimir Davydov <vdavy...@virtuozzo.com>
>
Reviewed-by: Andrey Ryabinin <
irectly from memory cgroup where they are already properly
> accounted.
>
> Along the way, zap ub_page_stat and use mem_cgroup_get_nr_pages
> directly.
>
> Signed-off-by: Vladimir Davydov <vdavy...@virtuozzo.com>
Reviewed-by: Andrey Ryabinin <aryabi...@virtuozzo.com&g
On 05/05/2016 01:23 PM, Vladimir Davydov wrote:
> Needed by the following patches.
>
> Signed-off-by: Vladimir Davydov <vdavy...@virtuozzo.com>
Reviewed-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
> ---
> mm/memcontrol.c | 8 +++-
> 1 file change
will discarded later.
https://jira.sw.ru/browse/PSBM-42548
https://jira.sw.ru/browse/PSBM-45364
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
lib/balloon.c | 17 +
1 file changed, 17 insertions(+)
diff --git a/lib/balloon.c b/lib/balloon.c
index 6346f7c..612a6bd
Borisov <ker...@kyup.com>
Signed-off-by: Pablo Neira Ayuso <pa...@netfilter.org>
https://jira.sw.ru/browse/PSBM-45783
(cherry picked from commit 639e077b43d9c54ffb1e1b54a2de54597ceae1d8)
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
net/netfilter/nfnetlink_queue_co
"netns: remove BUG_ONs from net_generic()"].
Signed-off-by: Francesco Ruggeri <frugg...@arista.com>
Signed-off-by: Pablo Neira Ayuso <pa...@netfilter.org>
https://jira.sw.ru/browse/PSBM-45783
(cherry picked from commit 3bfe049807c240344b407e3cfb74544927359817)
Si
On 02/26/2016 02:10 PM, Vladimir Davydov wrote:
> On Thu, Feb 25, 2016 at 07:19:38PM +0300, Andrey Ryabinin wrote:
> ...
>> @@ -2673,7 +2676,10 @@ static struct mnt_namespace *create_mnt_ns(struct
>> vfsmount *m)
>> struct mount *mnt = real_mount(m);
>
s over all
mounts of mount namespaces in ve. List of ve's mount namespaces maintained
via mntns_list.
https://jira.sw.ru/browse/PSBM-44125
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
fs/mount.h | 1 +
fs/namespace.c | 7 +++
fs/sync.c
sync_mutex in ve_struct doesn't do anything useful and could
be removed safely.
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
Reviewed-by: Vladimir Davydov <vdavy...@virtuozzo.com>
---
fs/sync.c | 4
include/linux/ve.h | 1 -
kernel/ve/ve.c | 1 -
3 file
all mounts that
seen in container's /proc/mounts). This approach seems much more correct and
also simpler.
https://jira.sw.ru/browse/PSBM-44125
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
fs/mount.h | 1 -
fs/namespace.c | 2 +-
fs/sync.c | 4 ++--
3 files changed, 3 i
sync_mutex in ve_struct doesn't do anything useful and could
be removed safely.
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
fs/sync.c | 4
include/linux/ve.h | 1 -
kernel/ve/ve.c | 1 -
3 files changed, 6 deletions(-)
diff --git a/fs/sync.c b/fs/sync.c
On 02/24/2016 07:15 PM, Vladimir Davydov wrote:
> On Wed, Feb 24, 2016 at 06:36:22PM +0300, Andrey Ryabinin wrote:
>> Currently sync reads 've->root_path.mnt' mount and iterate over it childs.
>> This doesn't work, as not all in-container mounts could be reached that way
all mounts that
seen in container's /proc/mounts). This approach seems much more correct and
also simpler.
I think we could get rid of 've->root_path' now.
https://jira.sw.ru/browse/PSBM-44125
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
fs/mount.h | 1 -
fs/name
Inodes with dirty metadata could be detached from UB
(mapping->dirtied_ub == NULL). So sync() will skip such inodes.
With this patch sync() will skip inodes with dirty data only.
https://jira.sw.ru/browse/PSBM-44125
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
fs/fs-wr
On 12/04/2015 08:16 PM, Vasily Averin wrote:
> Customer reports that free or top command inside Centos7 CT shows 0 memory
> used
>
> free from procps-ng-3.3.10-3.el7 uses /proc/meminfo output and calculates
> used = total - free - buffers - cache - slab
>
> However kernel in some cases
On 02/03/2016 03:12 PM, Vladimir Davydov wrote:
>> ub = get_exec_ub();
>> @@ -246,15 +252,18 @@ SYSCALL_DEFINE0(sync)
>> fsb = __ve_fsync_behavior(ve);
>> if (fsb == FSYNC_NEVER)
>> goto skip;
>> +
>> +if (fsb == FSYNC_FILTERED)
>>
On 02/03/2016 04:49 PM, Andrey Ryabinin wrote:
>>
>> If sync_ub != NULL, you sync inodes and bdevs twice, here and in
>> sync_filesystems_ve. Better move all the iterate_supers/bdevs from here
>> to sync_filesystems under !ub branch?
>>
>
&g
The implementation is straightforward, since we already have per container
writeback. Sync just get user beancounter and launches writeback work for it.
https://jira.sw.ru/browse/PSBM-39583
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
fs/fs-writeback.c
Filter inodes before should happen befor the check for I_SYNC flag.
During per-container writeback we don't wan't to requeue inodes from
other containers.
https://jira.sw.ru/browse/PSBM-39583
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
fs/fs-writeback.c | 13 +++---
Port of diff-ubc-dont-skip-dirty-metadata-on-filtered-sync patch
from PCS6.
Don't skip dirty metadata during per container sync[fs].
https://jira.sw.ru/browse/PSBM-39583
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
fs/fs-writeback.c | 4 +++-
1 file changed, 3 insertions
On 02/02/2016 05:26 PM, Pavel Tikhomirov wrote:
> need in next patch for kernel.core_pattern sysctl
>
> https://jira.sw.ru/browse/PSBM-43596
>
> v2: put syscall_virtual closer to the top of kernel/sysctl.c
> Signed-off-by: Pavel Tikhomirov <ptikhomi...@virtuozzo.com&
Port of diff-ubc-dont-skip-dirty-metadata-on-filtered-sync patch
from PCS6.
Don't skip dirty metadata during per container sync[fs].
https://jira.sw.ru/browse/PSBM-39583
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
fs/fs-writeback.c | 4 +++-
1 file changed, 3 insertions
ump to
>|/root/core_test 445 UID=0 GID=0 sig=11 pipe failed
>
> Also docker is going to use pipe'ing in coredumps functionality:
> https://github.com/docker/docker/issues/19289
>
> https://jira.sw.ru/browse/PSBM-43596
>
> v2: split sysctl_virtual in separate p
The implementation is straightforward, since we already have per container
writeback. Sync just get user beancounter and launches writeback work for it.
https://jira.sw.ru/browse/PSBM-39583
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
fs/fs-writeback.c
sync_inodes_one_sb() doesn't have an argument, so passing
pointer to nowait is completely useless.
No functional changes here.
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
fs/sync.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/sync.c b/fs/
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
fs/sync.c | 92 ---
1 file changed, 92 deletions(-)
diff --git a/fs/sync.c b/fs/sync.c
index 7ac77bb..cb2c7c2 100644
--- a/fs/sync.c
+++ b/fs/sync.c
@@ -99,98 +99,6 @@
-dont-skip-dirty-metadata-on-filtered-sync patch).
https://jira.sw.ru/browse/PSBM-39583
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
fs/buffer.c | 2 +-
fs/fs-writeback.c | 82 ---
fs/sync.c
sync_inodes_one_sb() doesn't have an argument, so passing
pointer to nowait is completely useless.
No functional changes here.
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
fs/sync.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/sync.c b/fs/
-by: Vladimir Davydov <vdavy...@virtuozzo.com>
Reviewed-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
___
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
configs/kernel-3.10.0-x86_64.config | 1 -
1 file changed, 1 deletion(-)
diff --git a/configs/kernel-3.10.0-x86_64.config
b/configs/kernel-3.10.0-x86_64.config
index 46345b5..3c55454 100644
--- a/configs/kernel-3.10.0-x86_64.
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
configs/kernel-3.10.0-x86_64.config | 1 -
1 file changed, 1 deletion(-)
diff --git a/configs/kernel-3.10.0-x86_64.config
b/configs/kernel-3.10.0-x86_64.config
index 46345b5..3c55454 100644
--- a/configs/kernel-3.10.0-x86_64.
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
configs/kernel-3.10.0-x86_64.config | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configs/kernel-3.10.0-x86_64.config
b/configs/kernel-3.10.0-x86_64.config
index 46345b5..6330233 100644
--- a/configs/kernel-
We call requeue_io() on inode that meant to be skipped. It's not right
since requeue_io() means that we will busy retry to write that inode.
redirty_tail() should be used to skip inodes.
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
fs/fs-writeback.c | 2 +-
1 file chan
On 01/21/2016 01:35 PM, Vladimir Davydov wrote:
>> +if (ub_dirty + ub_writeback <= ub_thresh)
>> +break;
>> +if (!writeback_in_progress(bdi))
>> +bdi_start_background_writeback(bdi);
>> +
>> +/*
>> + *
On 01/21/2016 02:43 PM, Andrey Ryabinin wrote:
> + /*
> + * We start background writeout at the lower ub_background_thresh,
> + * to keep the amount of dirty memory low.
> + */
> + if (!laptop_mode && ub_dirty > ub_background_thresh)
Ugh... S
ew 'struct user_beancounter *ub' argument
which is needed for targeted per-CT writeback. This will be used in the next
patch.
https://jira.sw.ru/browse/PSBM-33841
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
Reviewed-by: Vladimir Davydov <vdavy...@virtuozzo.com>
---
fs/fs-writ
Drop unused UB_DIRTY_EXCEEDED and ub_flags field as well,
since this was the only flag.
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
include/bc/beancounter.h | 6 --
kernel/ve/vziolimit.c| 2 --
2 files changed, 8 deletions(-)
diff --git a/include/bc/beancount
.
https://jira.sw.ru/browse/PSBM-33841
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
mm/page-writeback.c | 98 -
1 file changed, 97 insertions(+), 1 deletion(-)
diff --git a/mm/page-writeback.c b/mm/page-writeback.c
index 4
.
https://jira.sw.ru/browse/PSBM-33841
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
Reviewed-by: Vladimir Davydov <vdavy...@virtuozzo.com>
---
mm/page-writeback.c | 98 -
1 file changed, 97 insertions(+), 1 deletion(-)
diff --g
Drop unused UB_DIRTY_EXCEEDED and ub_flags field as well,
since this was the only flag.
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
Reviewed-by: Vladimir Davydov <vdavy...@virtuozzo.com>
---
include/bc/beancounter.h | 6 --
kernel/ve/vziolimit.c| 2 --
2 file
ew 'struct user_beancounter *ub' argument
which is needed for targeted per-CT writeback. This will be used in the next
patch.
https://jira.sw.ru/browse/PSBM-33841
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
Reviewed-by: Vladimir Davydov <vdavy...@virtuozzo.com>
---
fs/fs-writ
.
https://jira.sw.ru/browse/PSBM-33841
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
mm/page-writeback.c | 99 -
1 file changed, 98 insertions(+), 1 deletion(-)
diff --git a/mm/page-writeback.c b/mm/page-writeback.c
index 4
ew 'struct user_beancounter *ub' argument
which is needed for targeted per-CT writeback. This will be used in the next
patch.
https://jira.sw.ru/browse/PSBM-33841
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
fs/fs-writeback.c | 29 +++--
incl
ew 'struct user_beancounter *ub' argument
which is needed for targeted per-CT writeback. This will be used in the next
patch.
https://jira.sw.ru/browse/PSBM-33841
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
fs/fs-writeback.c | 38 --
801 - 900 of 1007 matches
Mail list logo