Introduce zero-filled pages handler to capture and handle zero pages.
Acked-by: Dan Magenheimer
Signed-off-by: Wanpeng Li
---
drivers/staging/zcache/zcache-main.c | 26 ++
1 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/drivers/staging/zcache/zcache
, we fill the page frame with zero.
Acked-by: Dan Magenheimer
Reviewed-by: Konrad Rzeszutek Wilk
Signed-off-by: Wanpeng Li
---
drivers/staging/zcache/zcache-main.c | 80 -
1 files changed, 68 insertions(+), 12 deletions(-)
diff --git a/drivers/staging/zcache
-
zcache_[eph|pers]_zbytes)
* 100 / (zcache_[eph|pers]_pageframes * PAGE_SIZE)
- memory zcache occupy = zcache_[eph|pers]_zbytes
Result:
without zero-filled awareness:
- fragmentation level: 98%
- memory zcache occupy: 238MB
with zero-filled awareness:
- fragmentation level: 0%
- memory zcache occu
Cleanup TODO list since support zero-filled pages more efficiently has
already done by this patchset.
Acked-by: Dan Magenheimer
Signed-off-by: Wanpeng Li
---
drivers/staging/zcache/TODO |3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/zcache/TODO b
ttenback_pages seperately, however, corresponding .val =
&zcache_zcache_outstanding_writeback_pages and .val =
&zcache_zcache_writtenback_pages,
which are not correct.
Signed-off-by: Wanpeng Li
---
drivers/staging/zcache/debug.c |4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Introduce zero-filled page statistics to monitor the number of
zero-filled pages.
Acked-by: Dan Magenheimer
Signed-off-by: Wanpeng Li
---
drivers/staging/zcache/debug.h | 15 +++
drivers/staging/zcache/zcache-main.c |5 +
2 files changed, 20 insertions(+), 0
frames for storage. So the zpages counter should
be increased but the pageframes counter should not.
[Dan Magenheimer : patch description]
Acked-by: Dan Magenheimer
Reviewed-by: Konrad Rzeszutek Wilk
Signed-off-by: Wanpeng Li
---
drivers/staging/zcache/zcache-main.c |7 ++-
1 files
eated as shared variables.
Signed-off-by: Wanpeng Li
---
drivers/staging/zcache/debug.h | 62 +-
drivers/staging/zcache/zcache-main.c | 31 +
2 files changed, 62 insertions(+), 31 deletions(-)
diff --git a/drivers/staging/zcache/debug.h b/
Before commit 9c0ad59ef ("zcache/debug: Use an array to initialize/use debugfs
attributes"),
pers_pageframes|_max are exported in debugfs, but this commit forgot use array
export
pers_pageframes|_max. This patch add pers_pageframes|_max back.
Signed-off-by: Wanpeng Li
---
drive
t be treated as shared variables.
Signed-off-by: Wanpeng Li
---
drivers/staging/zcache/debug.c | 32
drivers/staging/zcache/debug.h | 62
2 files changed, 63 insertions(+), 31 deletions(-)
diff --git a/drivers/staging/zcache/debug.c b/
Cleanup TODO list since support zero-filled pages more efficiently has
already done by this patchset.
Acked-by: Dan Magenheimer
Signed-off-by: Wanpeng Li
---
drivers/staging/zcache/TODO |3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/zcache/TODO b
areness:
- fragmentation level: 98%
- memory zcache occupy: 238MB
with zero-filled awareness:
- fragmentation level: 0%
- memory zcache occupy: 0MB
Wanpeng Li (3):
staging: zcache: fix static variables defined in debug.h but used in
mutiple C files
staging: zcache: introduce zero-filled page
Introduce zero-filled page statistics to monitor the number of
zero-filled pages.
Acked-by: Dan Magenheimer
Signed-off-by: Wanpeng Li
---
drivers/staging/zcache/debug.c |3 +++
drivers/staging/zcache/debug.h | 17 +
drivers/staging/zcache/zcache-main.c |4
hugetlb_prefault is not used by any users. This patch remove redundant
hugetlb_prefault.
Signed-off-by: Wanpeng Li
---
include/linux/hugetlb.h |2 --
1 file changed, 2 deletions(-)
diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h
index b7e4106..813b265 100644
--- a/include
Use already exist interface huge_page_order() instead of h->order to get
huge page order.
Signed-off-by: Wanpeng Li
---
mm/hugetlb.c | 36 +++-
1 file changed, 19 insertions(+), 17 deletions(-)
diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index 328f140..0cae
Enable gigantic hugetlb page pools shrinking.
Signed-off-by: Wanpeng Li
---
mm/hugetlb.c |7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index eeaf6f2..328f140 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -1416,7 +1416,8 @@ static
order >= MAX_ORDER pages can't be freed to buddy system directly, this patch
destroy the gigantic hugetlb page to normal order-0 pages and free them one
by one.
Signed-off-by: Wanpeng Li
---
mm/hugetlb.c| 39 +--
mm/internal.h |
Use already exist interface huge_page_shift instead of h->order + PAGE_SHIFT.
Signed-off-by: Wanpeng Li
---
mm/hugetlb.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index 0cae950..750ed8a 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetl
m any more.
Signed-off-by: Wanpeng Li
---
Documentation/sysctl/vm.txt | 13 +
include/linux/hugetlb.h |3 +++
kernel/sysctl.c |7 +++
mm/hugetlb.c|9 +
4 files changed, 32 insertions(+)
diff --git a/Documentation/sysct
35972
Swap: 35999 0 35999
Wanpeng Li (6):
introduce new sysctl knob which control gigantic page pools shrinking
update_and_free_page gigantic pages awareness
enable gigantic hugetlb page pools shrinking
use already exist huge_page_order() instead of h->order
re
Introduce zero-filled pages handler to capture and handle zero pages.
Signed-off-by: Wanpeng Li
---
drivers/staging/zcache/zcache-main.c | 26 ++
1 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/drivers/staging/zcache/zcache-main.c
b/drivers/staging
Introduce zero-filled page statistics to monitor the number of
zero-filled pages.
Signed-off-by: Wanpeng Li
---
drivers/staging/zcache/zcache-main.c |7 +++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/drivers/staging/zcache/zcache-main.c
b/drivers/staging/zcache
, we fill the page frame with zero.
Signed-off-by: Wanpeng Li
---
drivers/staging/zcache/tmem.c|4 +-
drivers/staging/zcache/tmem.h|5 ++
drivers/staging/zcache/zcache-main.c | 87 ++
3 files changed, 85 insertions(+), 11 deletions(-)
diff
Since zbudpage consist of two zpages, two zero-filled pages compression
contribute to one [eph|pers]pageframe count accumulated.
Signed-off-by: Wanpeng Li
---
drivers/staging/zcache/zcache-main.c | 25 +++--
1 files changed, 23 insertions(+), 2 deletions(-)
diff --git a
When zram decompress fails, the code unnecessarily dumps failure messages and
does stat accumulation in function zram_decompress_page(), this work is already
done in function zram_decompress_page, the patch skips the redundant work.
Signed-off-by: Wanpeng Li
---
drivers/staging/zram/zram_drv.c
illed awareness:
- fragmentation level: 0%
- memory zcache occupy: 0MB
Wanpeng Li (4):
introduce zero-filled pages handler
zero-filled pages awareness
introduce zero-filled pages stat count
add pageframes count once compress zero-filled pages twice
drivers/staging/zcache/tmem.c|4 +-
case:
boot: hugepagesz=1G hugepages=1
before patch:
egrep 'CommitLimit' /proc/meminfo
CommitLimit: 55434168 kB
after patch:
egrep 'CommitLimit' /proc/meminfo
CommitLimit: 54909880 kB
Signed-off-by: Wanpeng Li
---
mm/hugetlb.c | 7 +--
1 file changed, 5 insertions(+), 2
|pers]_zbytes)
* 100 / (zcache_[eph|pers]_pageframes * PAGE_SIZE)
- memory zcache occupy = zcache_[eph|pers]_zbytes
Result:
without zero-filled awareness:
- fragmentation level: 98%
- memory zcache occupy: 238MB
with zero-filled awareness:
- fragmentation level: 0%
- memory zcache occupy: 0MB
Wanp
Cleanup TODO list since support zero-filled pages more efficiently has
already done by this patchset.
Acked-by: Dan Magenheimer
Signed-off-by: Wanpeng Li
---
drivers/staging/zcache/TODO |3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/zcache/TODO b
Introduce zero-filled page statistics to monitor the number of
zero-filled pages.
Acked-by: Dan Magenheimer
Signed-off-by: Wanpeng Li
---
drivers/staging/zcache/zcache-main.c |7 +++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/drivers/staging/zcache/zcache-main.c
b
, we fill the page frame with zero.
Acked-by: Dan Magenheimer
Signed-off-by: Wanpeng Li
---
drivers/staging/zcache/zcache-main.c | 86 +++--
1 files changed, 80 insertions(+), 6 deletions(-)
diff --git a/drivers/staging/zcache/zcache-main.c
b/drivers/staging/zcache
Introduce zero-filled pages handler to capture and handle zero pages.
Acked-by: Dan Magenheimer
Signed-off-by: Wanpeng Li
---
drivers/staging/zcache/zcache-main.c | 26 ++
1 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/drivers/staging/zcache/zcache
esz=1G hugepages=1
before patch:
egrep 'CommitLimit' /proc/meminfo
CommitLimit: 55434168 kB
after patch:
egrep 'CommitLimit' /proc/meminfo
CommitLimit: 54909880 kB
Signed-off-by: Wanpeng Li
---
mm/hugetlb.c | 7 +--
1 file changed, 5 insertions(+), 2 deleti
tio is 50
before patch:
egrep 'CommitLimit' /proc/meminfo
CommitLimit: 55434168 kB
after patch:
egrep 'CommitLimit' /proc/meminfo
CommitLimit: 54909880 kB
Signed-off-by: Wanpeng Li
---
mm/hugetlb.c | 7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git
Introduce zero-filled pages handler to capture and handle zero pages.
Acked-by: Dan Magenheimer
Signed-off-by: Wanpeng Li
---
drivers/staging/zcache/zcache-main.c | 26 ++
1 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/drivers/staging/zcache/zcache
Cleanup TODO list since support zero-filled pages more efficiently has
already done by this patchset.
Acked-by: Dan Magenheimer
Signed-off-by: Wanpeng Li
---
drivers/staging/zcache/TODO |3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/zcache/TODO b
Introduce zero-filled page statistics to monitor the number of
zero-filled pages.
Acked-by: Dan Magenheimer
Signed-off-by: Wanpeng Li
---
drivers/staging/zcache/zcache-main.c |7 +++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/drivers/staging/zcache/zcache-main.c
b
frames for storage. So the zpages counter should
be increased but the pageframes counter should not.
[Dan Magenheimer : patch description]
Acked-by: Dan Magenheimer
Signed-off-by: Wanpeng Li
---
drivers/staging/zcache/zcache-main.c |7 ++-
1 files changed, 6 insertions(+), 1 deletion
, we fill the page frame with zero.
Acked-by: Dan Magenheimer
Signed-off-by: Wanpeng Li
---
drivers/staging/zcache/zcache-main.c | 81 +++---
1 files changed, 75 insertions(+), 6 deletions(-)
diff --git a/drivers/staging/zcache/zcache-main.c
b/drivers/staging/zcache
zcache_[eph|pers]_zbytes
Result:
without zero-filled awareness:
- fragmentation level: 98%
- memory zcache occupy: 238MB
with zero-filled awareness:
- fragmentation level: 0%
- memory zcache occupy: 0MB
Wanpeng Li (5):
introduce zero-filled pages handler
zero-filled pages awareness
handle zcache
Drop forward reference declarations __soft_offline_page.
Reviewed-by: Naoya Horiguchi
Signed-off-by: Wanpeng Li
---
mm/memory-failure.c | 128 ++--
1 file changed, 63 insertions(+), 65 deletions(-)
diff --git a/mm/memory-failure.c b/mm/memory
ck page
if (!PageHWPoison(p))
unlock page and return
hwpoison_user_mappings
if (PageTransHuge(hpage))
split_huge_page(hpage);
Suggested-by: Naoya Horiguchi
Signed-off-by: Wanpeng Li
---
mm/memory-failure.c | 10 ++
1 file changed, 10 insertions(+)
di
s MIGRATE_ISOLATE. There are other two parts
can change MIGRATE_ISOLATE except hwpoison. One is memory hoplug, however, we
hold lock_memory_hotplug() which avoid race. The second is CMA which umovable
page allocation requst can't fallback to. So it's safe here.
Signed-off-by: Wanpeng L
ory
[ 117.256163] MCE: Page was already unpoisoned 0x19d0
[ 117.256167] pfn 0x19d0, page count = 1 after unpoison memory
[ 117.917772] MCE: Page was already unpoisoned 0x19d0
[ 117.91] pfn 0x19d0, page count = 1 after unpoison memory
Signed-off-by: Wanpeng Li
---
mm/memory-failure.c
n LRU page recovery: Ignored
Reviewed-by: Naoya Horiguchi
Signed-off-by: Wanpeng Li
---
mm/madvise.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mm/madvise.c b/mm/madvise.c
index 95795df..588bb19 100644
--- a/mm/madvise.c
+++ b/mm/madvise.c
@@ -353,14 +353,14 @@
bpage will be poisoned. There is unnecessary to hold
compound lock for hugetlbfs page. This patch replace compound_trans_order
by compond_order in the place where the page is hugetlbfs page.
Reviewed-by: Naoya Horiguchi
Signed-off-by: Wanpeng Li
---
include/linux/mm.h | 14 --
mm/mem
lure for page 91cdd3 at 7f9f5b0e6000
[ 163.603852] MCE 0x91cdd3: dirty mlocked LRU page recovery: Recovered
[ 163.610305] MCE 0x91cdd3: dirty mlocked LRU page still referenced by 1 users
Reviewed-by: Naoya Horiguchi
Signed-off-by: Wanpeng Li
---
mm/memory-failure.c | 3 +++
1 file changed, 3 inserti
Repalce atomic_long_sub() with atomic_long_dec() since the page is
normal page instead of hugetlbfs page or thp.
Reviewed-by: Naoya Horiguchi
Signed-off-by: Wanpeng Li
---
mm/memory-failure.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/memory-failure.c b/mm/memory
bpage will be poisoned. There is unnecessary to hold
compound lock for hugetlbfs page. This patch replace compound_trans_order
by compond_order in the place where the page is hugetlbfs page.
Reviewed-by: Naoya Horiguchi
Signed-off-by: Wanpeng Li
---
include/linux/mm.h | 14 --
mm/mem
ory
[ 117.256163] MCE: Page was already unpoisoned 0x19d0
[ 117.256167] pfn 0x19d0, page count = 1 after unpoison memory
[ 117.917772] MCE: Page was already unpoisoned 0x19d0
[ 117.91] pfn 0x19d0, page count = 1 after unpoison memory
Signed-off-by: Wanpeng Li
---
mm/memory-failure.c
Drop forward reference declarations __soft_offline_page.
Reviewed-by: Naoya Horiguchi
Signed-off-by: Wanpeng Li
---
mm/memory-failure.c | 128 ++--
1 file changed, 63 insertions(+), 65 deletions(-)
diff --git a/mm/memory-failure.c b/mm/memory
buddy system which is not correct since empty
zero page has PG_reserved flag. This patch fix it by don't reduce the page
reference count under 1 against empty zero page.
Signed-off-by: Wanpeng Li
---
mm/memory-failure.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a
s MIGRATE_ISOLATE. There are other two parts
can change MIGRATE_ISOLATE except hwpoison. One is memory hoplug, however, we
hold lock_memory_hotplug() which avoid race. The second is CMA which umovable
page allocation requst can't fallback to. So it's safe here.
Signed-off-by: Wanpeng L
turn
hwpoison_user_mappings
if (PageTransHuge(hpage))
split_huge_page(hpage);
Suggested-by: Naoya Horiguchi
Signed-off-by: Wanpeng Li
---
mm/memory-failure.c | 10 ++
1 file changed, 10 insertions(+)
diff --git a/mm/memory-failure.c b/mm/memory-failure.c
ind
n-pfn: Permission denied
This patch change the permission of corrupt-pfn/unpoison-pfn to 0400.
Signed-off-by: Wanpeng Li
---
mm/hwpoison-inject.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mm/hwpoison-inject.c b/mm/hwpoison-inject.c
index 3a61efc..8b77bfd 100644
--- a/mm/hwp
n LRU page recovery: Ignored
Reviewed-by: Naoya Horiguchi
Signed-off-by: Wanpeng Li
---
mm/madvise.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mm/madvise.c b/mm/madvise.c
index 95795df..588bb19 100644
--- a/mm/madvise.c
+++ b/mm/madvise.c
@@ -353,14 +353,14 @@
lure for page 91cdd3 at 7f9f5b0e6000
[ 163.603852] MCE 0x91cdd3: dirty mlocked LRU page recovery: Recovered
[ 163.610305] MCE 0x91cdd3: dirty mlocked LRU page still referenced by 1 users
Reviewed-by: Naoya Horiguchi
Signed-off-by: Wanpeng Li
---
mm/memory-failure.c | 3 +++
1 file changed, 3 inserti
Repalce atomic_long_sub() with atomic_long_dec() since the page is
normal page instead of hugetlbfs page or thp.
Reviewed-by: Naoya Horiguchi
Signed-off-by: Wanpeng Li
---
mm/memory-failure.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/memory-failure.c b/mm/memory
which is not correct since empty
zero page has PG_reserved flag. This patch fix it by don't reduce the page
reference count under 1 against empty zero page.
Signed-off-by: Wanpeng Li
---
mm/memory-failure.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/memory-fail
failure for page 0x19d0 at 0xb77da000
[ 93.076224] MCE 0x19d0: already hardware poisoned
[ 93.076225] pfn 0x19d0, page count = 3 after memory failure
Suggested-by: Naoya Horiguchi
Signed-off-by: Wanpeng Li
---
mm/madvise.c | 4
1 file changed, 4 insertions(+)
diff --git a/mm/madvise.c b/mm
ssion denied
This patch change the permission of corrupt-pfn/unpoison-pfn to 0200.
Reviewed-by: Naoya Horiguchi
Signed-off-by: Wanpeng Li
---
mm/hwpoison-inject.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mm/hwpoison-inject.c b/mm/hwpoison-inject.c
index 3a
the last page reference
count and free empty zero page to buddy system which is not correct since empty
zero page has PG_reserved flag. This patch fix it by ignore empty zero page for
madvise_hwpoison directly.
Suggested-by: Naoya Horiguchi
Signed-off-by: Wanpeng Li
---
mm/madvise.c|
ssion denied
This patch change the permission of corrupt-pfn/unpoison-pfn to 0200.
Reviewed-by: Naoya Horiguchi
Signed-off-by: Wanpeng Li
---
mm/hwpoison-inject.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mm/hwpoison-inject.c b/mm/hwpoison-inject.c
index 3a
The return value outside for loop is always zero which means madvise_hwpoison
return success, however, this is not truth for soft_offline_page w/ failure
return value.
Signed-off-by: Wanpeng Li
---
mm/madvise.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/madvise.c b
d-off-by: Wanpeng Li
---
mm/vmalloc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/vmalloc.c b/mm/vmalloc.c
index d78d117..e3ec8b4 100644
--- a/mm/vmalloc.c
+++ b/mm/vmalloc.c
@@ -1635,7 +1635,7 @@ void *__vmalloc_node_range(unsigned long size, unsigned
lo
tch move the check just before show_numa_info in order that
some messages still can be dumped via /proc/vmallocinfo. This patch revert
commit d157a558 (mm/vmalloc.c: check VM_UNINITIALIZED flag in s_show instead
of show_numa_info);
Reviewed-by: Zhang Yanfei
Signed-off-by: Wanpeng Li
---
Changelog:
*v1 -> v2: rebase against mmotm tree
The caller address has already been set in set_vmalloc_vm(), there's no need
to set it again in __vmalloc_area_node.
Reviewed-by: Zhang Yanfei
Signed-off-by: Wanpeng Li
---
mm/vmalloc.c | 1 -
1 file changed, 1 deletion(-)
diff --
ce they are not possible for !VM_VM_AREA case.
Suggested-by: Joonsoo Kim
Signed-off-by: Wanpeng Li
---
mm/vmalloc.c | 15 ++-
1 file changed, 6 insertions(+), 9 deletions(-)
diff --git a/mm/vmalloc.c b/mm/vmalloc.c
index 5368b17..9b75028 100644
--- a/mm/vmalloc.c
+++ b/mm/vmalloc.c
iewed-by: Naoya Horiguchi
Signed-off-by: Wanpeng Li
---
mm/madvise.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/mm/madvise.c b/mm/madvise.c
index 6975bc8..539eeb9 100644
--- a/mm/madvise.c
+++ b/mm/madvise.c
@@ -343,10 +343,11 @@ static long madvise_remove(struct vm_a
patch:
[ 94.710860] Injecting memory failure at pfn 215b68
[ 94.710885] MCE 0x215b68: dirty LRU page recovery: Recovered
Reviewed-by: Naoya Horiguchi
Signed-off-by: Wanpeng Li
---
mm/hwpoison-inject.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/mm/hwpoison
200010
[ 346.332189] MCE 0x200010: free buddy, 2nd try page recovery: Delayed
After patch:
[ 297.742600] Injecting memory failure at pfn 200010
[ 297.742941] MCE 0x200010: free buddy page recovery: Delayed
Reviewed-by: Naoya Horiguchi
Signed-off-by: Wanpeng Li
---
mm/memory-failure.c |6
ecovery: Delayed
[ 105.722303] MCE: Software-unpoisoned page 0x23a000
Reviewed-by: Naoya Horiguchi
Signed-off-by: Wanpeng Li
---
mm/memory-failure.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/memory-failure.c b/mm/memory-failure.c
index e28ee77..b114570 100644
--- a/mm/memory
__vmalloc_area_node() no longer need "caller" argument. It can use area->caller
instead. This patch drop "caller" argument of __vmalloc_area_node().
Signed-off-by: Wanpeng Li
---
mm/vmalloc.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/mm/v
ZY_FREE |
VM_LAZY_FREEING)
check since they are not possible for !VM_VM_AREA case.
Suggested-by: Joonsoo Kim
Acked-by: KOSAKI Motohiro
Signed-off-by: Wanpeng Li
---
mm/vmalloc.c | 15 ++-
1 file changed, 6 insertions(+), 9 deletions(-)
diff --git a/mm/vmalloc.c b/mm/vmalloc.c
in
Naoya Horiguchi
Acked-by: Andi Kleen
Signed-off-by: Wanpeng Li
---
mm/madvise.c |5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/mm/madvise.c b/mm/madvise.c
index 6975bc8..539eeb9 100644
--- a/mm/madvise.c
+++ b/mm/madvise.c
@@ -343,10 +343,11 @@ static long madvis
200010
[ 346.332189] MCE 0x200010: free buddy, 2nd try page recovery: Delayed
After patch:
[ 297.742600] Injecting memory failure at pfn 200010
[ 297.742941] MCE 0x200010: free buddy page recovery: Delayed
Reviewed-by: Naoya Horiguchi
Acked-by: Andi Kleen
Signed-off-by: Wanpeng Li
---
mm/memory
:
[ 94.710860] Injecting memory failure at pfn 215b68
[ 94.710885] MCE 0x215b68: dirty LRU page recovery: Recovered
Reviewed-by: Naoya Horiguchi
Acked-by: Andi Kleen
Signed-off-by: Wanpeng Li
---
mm/hwpoison-inject.c |5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff
ecovery: Delayed
[ 105.722303] MCE: Software-unpoisoned page 0x23a000
Reviewed-by: Naoya Horiguchi
Acked-by: Andi Kleen
Signed-off-by: Wanpeng Li
---
mm/memory-failure.c |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/mm/memory-failure.c b/mm/memory-failure.c
index e28ee77..ed41
200010
[ 346.332189] MCE 0x200010: free buddy, 2nd try page recovery: Delayed
After patch:
[ 297.742600] Injecting memory failure at pfn 200010
[ 297.742941] MCE 0x200010: free buddy page recovery: Delayed
Signed-off-by: Wanpeng Li
---
mm/memory-failure.c |6 --
1 files changed, 4
patch:
[ 94.710860] Injecting memory failure at pfn 215b68
[ 94.710885] MCE 0x215b68: dirty LRU page recovery: Recovered
Signed-off-by: Wanpeng Li
---
mm/hwpoison-inject.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/mm/hwpoison-inject.c b/mm/hwpoison-inject.c
3a200: huge page recovery: Delayed
[ 140.355100] MCE: Memory failure is now running on 0x23a200
After patch:
[ 94.290793] Injecting memory failure at pfn 23a000
[ 94.290800] MCE 0x23a000: huge page recovery: Delayed
[ 105.722303] MCE: Software-unpoisoned page 0x23a000
Signed-off-by: Wanpe
Signed-off-by: Wanpeng Li
---
mm/madvise.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/mm/madvise.c b/mm/madvise.c
index 6975bc8..539eeb9 100644
--- a/mm/madvise.c
+++ b/mm/madvise.c
@@ -343,10 +343,11 @@ static long madvise_remove(struct vm_area_struct *vma,
that
some messages still can be dumped via /proc/vmallocinfo.
Signed-off-by: Wanpeng Li
---
mm/vmalloc.c | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/mm/vmalloc.c b/mm/vmalloc.c
index e3ec8b4..c4720cd 100644
--- a/mm/vmalloc.c
+++ b/mm/vmalloc.c
@@ -2590,11 +2590,6
The caller address has already been set in set_vmalloc_vm(), there's no need
to set it again in __vmalloc_area_node.
Signed-off-by: Wanpeng Li
---
mm/vmalloc.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/mm/vmalloc.c b/mm/vmalloc.c
index 1074543..d78d117 100644
--- a/mm/vmalloc.c
Don't warning twice in __vmalloc_area_node and __vmalloc_node_range if
__vmalloc_area_node allocation failure.
Signed-off-by: Wanpeng Li
---
mm/vmalloc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/vmalloc.c b/mm/vmalloc.c
index ee41cc6..e324d38 100644
---
200010
[ 346.332189] MCE 0x200010: free buddy, 2nd try page recovery: Delayed
After patch:
[ 297.742600] Injecting memory failure at pfn 200010
[ 297.742941] MCE 0x200010: free buddy page recovery: Delayed
Reviewed-by: Naoya Horiguchi
Signed-off-by: Wanpeng Li
---
mm/memory-failure.c |6
patch:
[ 94.710860] Injecting memory failure at pfn 215b68
[ 94.710885] MCE 0x215b68: dirty LRU page recovery: Recovered
Reviewed-by: Naoya Horiguchi
Signed-off-by: Wanpeng Li
---
mm/hwpoison-inject.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/mm/hwpoison
iewed-by: Naoya Horiguchi
Signed-off-by: Wanpeng Li
---
mm/madvise.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/mm/madvise.c b/mm/madvise.c
index 6975bc8..539eeb9 100644
--- a/mm/madvise.c
+++ b/mm/madvise.c
@@ -343,10 +343,11 @@ static long madvise_remove(struct vm_a
ecovery: Delayed
[ 105.722303] MCE: Software-unpoisoned page 0x23a000
Signed-off-by: Wanpeng Li
---
mm/memory-failure.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/memory-failure.c b/mm/memory-failure.c
index e28ee77..b114570 100644
--- a/mm/memory-failure.c
+++ b/mm/
Don't warning twice in __vmalloc_area_node and __vmalloc_node_range if
__vmalloc_area_node allocation failure.
Signed-off-by: Wanpeng Li
---
mm/vmalloc.c |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/mm/vmalloc.c b/mm/vmalloc.c
index d78d117..e3ec8b4 100644
---
Changelog:
* rebase against mmotm tree
The caller address has already been set in set_vmalloc_vm(), there's no need
to set it again in __vmalloc_area_node.
Signed-off-by: Wanpeng Li
---
mm/vmalloc.c |1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/mm/vmalloc.c
some messages still can be dumped via /proc/vmallocinfo.
Signed-off-by: Wanpeng Li
---
mm/vmalloc.c | 10 +-
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/mm/vmalloc.c b/mm/vmalloc.c
index e3ec8b4..c4720cd 100644
--- a/mm/vmalloc.c
+++ b/mm/vmalloc.c
@@ -2590,11 +2590,6
Changelog:
*v2 -> v3: revert commit 46c001a2 directly
Don't warning twice in __vmalloc_area_node and __vmalloc_node_range if
__vmalloc_area_node allocation failure. This patch revert commit 46c001a2
(mm/vmalloc.c: emit the failure message before return).
Signed-off-by: Wanpeng Li
tch move the check just before show_numa_info in order that
some messages still can be dumped via /proc/vmallocinfo. This patch revert
commit d157a558 (mm/vmalloc.c: check VM_UNINITIALIZED flag in s_show instead
of show_numa_info);
Signed-off-by: Wanpeng Li
---
mm/vmalloc.c | 10 +-
1 f
Changelog:
*v1 -> v2: rebase against mmotm tree
The caller address has already been set in set_vmalloc_vm(), there's no need
to set it again in __vmalloc_area_node.
Reviewed-by: Zhang Yanfei
Signed-off-by: Wanpeng Li
---
mm/vmalloc.c | 1 -
1 file changed, 1 deletion(-)
diff --
va->flags |= VM_LAZY_FREE
The assumption is introduced by commit: d4033afd(mm, vmalloc: iterate
vmap_area_list,
instead of vmlist, in vmallocinfo()). This patch fix it by drop the assumption
and
keep not dump vm_map_ram allocation information as the logic before that
Changelog:
*v2 -> v3: revert commit 46c001a2 directly
Don't warning twice in __vmalloc_area_node and __vmalloc_node_range if
__vmalloc_area_node allocation failure. This patch revert commit 46c001a2
(mm/vmalloc.c: emit the failure message before return).
Signed-off-by: Wanpeng Li
tch move the check just before show_numa_info in order that
some messages still can be dumped via /proc/vmallocinfo. This patch revert
commit d157a558 (mm/vmalloc.c: check VM_UNINITIALIZED flag in s_show instead
of show_numa_info);
Signed-off-by: Wanpeng Li
---
mm/vmalloc.c | 10 +-
1 f
Changelog:
*v1 -> v2: rebase against mmotm tree
The caller address has already been set in set_vmalloc_vm(), there's no need
to set it again in __vmalloc_area_node.
Reviewed-by: Zhang Yanfei
Signed-off-by: Wanpeng Li
---
mm/vmalloc.c | 1 -
1 file changed, 1 deletion(-)
diff --
d-off-by: Wanpeng Li
---
mm/vmalloc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/vmalloc.c b/mm/vmalloc.c
index d78d117..e3ec8b4 100644
--- a/mm/vmalloc.c
+++ b/mm/vmalloc.c
@@ -1635,7 +1635,7 @@ void *__vmalloc_node_range(unsigned long size, unsigned
lo
1 - 100 of 2857 matches
Mail list logo