Re: [RFC Patch 0/2] mm: Add parameters to make kernel behavior at memory error on dirty cache selectable

2013-04-12 Thread Mitsuhiro Tanino
(2013/04/11 22:00), Ric Mason wrote: > Hi Mitsuhiro, > On 04/11/2013 08:51 PM, Mitsuhiro Tanino wrote: >> (2013/04/11 12:53), Simon Jeons wrote: >>> One question against mce instead of the patchset. ;-) >>> >>> When check memory is bad? Before memory access?

Re: [RFC Patch 0/2] mm: Add parameters to make kernel behavior at memory error on dirty cache selectable

2013-04-12 Thread Mitsuhiro Tanino
to hook into. Yes. I think both short term solution and long term solution is necessary in order to enable hwpoison feature for Linux as KVM hypervisor. So my proposal is as follows, For short term solution to care both memory error and I/O error: - I will resend a panic knob to handle data lost r

Re: [RFC Patch 2/2] mm: Add parameters to limit a rate of outputting memory error messages

2013-04-12 Thread Mitsuhiro Tanino
ages related to a corrupted file and the other is for adding a panic knob to handle data lost of dirty cache which is caused by both memory error and I/O error. Regards, Mitsuhiro Tanino -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to m

Re: [RFC Patch 0/2] mm: Add parameters to make kernel behavior at memory error on dirty cache selectable

2013-04-12 Thread Mitsuhiro Tanino
(2013/04/11 16:11), Naoya Horiguchi wrote: > Hi Tanino-san, > > On Thu, Apr 11, 2013 at 12:26:19PM +0900, Mitsuhiro Tanino wrote: > ... >> Solution >> - >> The patch proposes a new sysctl interface, vm.memory_failure_dirty_panic, >> in order to prevent

Re: [RFC Patch 0/2] mm: Add parameters to make kernel behavior at memory error on dirty cache selectable

2013-04-12 Thread Mitsuhiro Tanino
(2013/04/11 16:11), Naoya Horiguchi wrote: Hi Tanino-san, On Thu, Apr 11, 2013 at 12:26:19PM +0900, Mitsuhiro Tanino wrote: ... Solution - The patch proposes a new sysctl interface, vm.memory_failure_dirty_panic, in order to prevent data corruption comes from data lost problem

Re: [RFC Patch 2/2] mm: Add parameters to limit a rate of outputting memory error messages

2013-04-12 Thread Mitsuhiro Tanino
, Mitsuhiro Tanino -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [RFC Patch 0/2] mm: Add parameters to make kernel behavior at memory error on dirty cache selectable

2013-04-12 Thread Mitsuhiro Tanino
and I/O error. For long term solution: - Andi's proposal or Horiguchi-san's new pagecache tag based mechanism Regards, Mitsuhiro Tanino -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: [RFC Patch 0/2] mm: Add parameters to make kernel behavior at memory error on dirty cache selectable

2013-04-12 Thread Mitsuhiro Tanino
(2013/04/11 22:00), Ric Mason wrote: Hi Mitsuhiro, On 04/11/2013 08:51 PM, Mitsuhiro Tanino wrote: (2013/04/11 12:53), Simon Jeons wrote: One question against mce instead of the patchset. ;-) When check memory is bad? Before memory access? Is there a process scan it period? Hi Simon-san

Re: [RFC Patch 0/2] mm: Add parameters to make kernel behavior at memory error on dirty cache selectable

2013-04-11 Thread Mitsuhiro Tanino
on a memory before OS accesses the memory bit, MCA recovery notifies SRAO error into OS and OS handles the SRAO error using hwpoison function. Regards, Mitsuhiro Tanino -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord..

Re: [RFC Patch 0/2] mm: Add parameters to make kernel behavior at memory error on dirty cache selectable

2013-04-11 Thread Mitsuhiro Tanino
before OS accesses the memory bit, MCA recovery notifies SRAO error into OS and OS handles the SRAO error using hwpoison function. Regards, Mitsuhiro Tanino -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo

[RFC Patch 2/2] mm: Add parameters to limit a rate of outputting memory error messages

2013-04-10 Thread Mitsuhiro Tanino
the number of messages we can send before rate limiting. Signed-off-by: Mitsuhiro Tanino --- diff --git a/a/Documentation/sysctl/vm.txt b/b/Documentation/sysctl/vm.txt index 7dad994..eea6f4d 100644 --- a/a/Documentation/sysctl/vm.txt +++ b/b/Documentation/sysctl/vm.txt @@ -36,6 +36,8 @@ Currently

[RFC Patch 1/2] mm: Add a parameter to force a kernel panic when memory error occurs on dirty cache

2013-04-10 Thread Mitsuhiro Tanino
This patch introduces a sysctl interface, vm.memory_failure_dirty_panic, to provide selectable actions when a memory error is detected on dirty page cache. Signed-off-by: Mitsuhiro Tanino --- diff --git a/a/Documentation/sysctl/vm.txt b/b/Documentation/sysctl/vm.txt index 078701f..7dad994

[RFC Patch 0/2] mm: Add parameters to make kernel behavior at memory error on dirty cache selectable

2013-04-10 Thread Mitsuhiro Tanino
Hi All, Please find a patch set that introduces these new sysctl interfaces, to handle a case when an memory error is detected on dirty page cache. - vm.memory_failure_dirty_panic - vm.memory_failure_print_ratelimit - vm.memory_failure_print_ratelimit_burst Problem - Recently, it is

[RFC Patch 0/2] mm: Add parameters to make kernel behavior at memory error on dirty cache selectable

2013-04-10 Thread Mitsuhiro Tanino
Hi All, Please find a patch set that introduces these new sysctl interfaces, to handle a case when an memory error is detected on dirty page cache. - vm.memory_failure_dirty_panic - vm.memory_failure_print_ratelimit - vm.memory_failure_print_ratelimit_burst Problem - Recently, it is

[RFC Patch 1/2] mm: Add a parameter to force a kernel panic when memory error occurs on dirty cache

2013-04-10 Thread Mitsuhiro Tanino
This patch introduces a sysctl interface, vm.memory_failure_dirty_panic, to provide selectable actions when a memory error is detected on dirty page cache. Signed-off-by: Mitsuhiro Tanino mitsuhiro.tanino...@hitachi.com --- diff --git a/a/Documentation/sysctl/vm.txt b/b/Documentation/sysctl

[RFC Patch 2/2] mm: Add parameters to limit a rate of outputting memory error messages

2013-04-10 Thread Mitsuhiro Tanino
the number of messages we can send before rate limiting. Signed-off-by: Mitsuhiro Tanino mitsuhiro.tanino...@hitachi.com --- diff --git a/a/Documentation/sysctl/vm.txt b/b/Documentation/sysctl/vm.txt index 7dad994..eea6f4d 100644 --- a/a/Documentation/sysctl/vm.txt +++ b/b/Documentation/sysctl

Re: [PATCH 2/2 v2] kexec: Export PG_hwpoison flag into vmcoreinfo

2013-02-15 Thread Mitsuhiro Tanino
patch into makedumpfile-1.5.2. Regards, Mitsuhiro Tanino > TO: mm-comm...@vger.kernel.org; > CC: mitsuhiro.tanino...@hitachi.com; ebied...@xmission.com; > vgo...@redhat.com; > Sender: a...@linux-foundation.org > Sugject: + kexec-export-pg_hwpoison-flag-into-vmcoreinfo.patch added

Re: [PATCH 2/2 v2] kexec: Export PG_hwpoison flag into vmcoreinfo

2013-02-15 Thread Mitsuhiro Tanino
into makedumpfile-1.5.2. Regards, Mitsuhiro Tanino TO: mm-comm...@vger.kernel.org; CC: mitsuhiro.tanino...@hitachi.com; ebied...@xmission.com; vgo...@redhat.com; Sender: a...@linux-foundation.org Sugject: + kexec-export-pg_hwpoison-flag-into-vmcoreinfo.patch added to -mm tree Date: 2013/02/13

Re: [PATCH 2/2 v2] kexec: Export PG_hwpoison flag into vmcoreinfo

2013-02-12 Thread Mitsuhiro Tanino
introduce a function into "makedumpfile" to exclude hwpoison page from vmcore dump. In order to introduce this function, PG_hwpoison flag have to export into vmcoreinfo. Acked-by: "Eric W. Biederman" Signed-off-by: Mitsuhiro Tanino --- kernel/kexec.c |3 +++ 1 file change

Re: [PATCH 2/2 v2] kexec: Export PG_hwpoison flag into vmcoreinfo

2013-02-12 Thread Mitsuhiro Tanino
a function into makedumpfile to exclude hwpoison page from vmcore dump. In order to introduce this function, PG_hwpoison flag have to export into vmcoreinfo. Acked-by: Eric W. Biederman ebied...@xmission.com Signed-off-by: Mitsuhiro Tanino mitsuhiro.tanino...@hitachi.com --- kernel/kexec.c |3

Re: [PATCH 2/2 v2] kexec: Export PG_hwpoison flag into vmcoreinfo

2013-02-11 Thread Mitsuhiro Tanino
Re: [Patch 0/2] Exclude hwpoison page from vmcore dump (2012/11/01 19:40), Eric W. Biederman wrote: > Mitsuhiro Tanino writes: > I agree. If we are performing filtering filtering out of poisoned pages > seems very reasonable. So ack on the basic concept. > > Eric Hello, E

Re: [PATCH 2/2 v2] kexec: Export PG_hwpoison flag into vmcoreinfo

2013-02-11 Thread Mitsuhiro Tanino
Re: [Patch 0/2] Exclude hwpoison page from vmcore dump (2012/11/01 19:40), Eric W. Biederman wrote: Mitsuhiro Tanino mitsuhiro.tanino...@hitachi.com writes: I agree. If we are performing filtering filtering out of poisoned pages seems very reasonable. So ack on the basic concept. Eric

Re: [Patch 0/2] Exclude hwpoison page from vmcore dump

2012-11-01 Thread Mitsuhiro Tanino
Hi Vivek, (2012/10/31 23:14), Vivek Goyal wrote: > If hwpoision functionality is not available in hardware, then respective > bit will not be even set in struct page and it will be saved by default. > So it should not matter whether hardware has hwpoision functionality > or not. Thanks, I

Re: [Patch 0/2] Exclude hwpoison page from vmcore dump

2012-11-01 Thread Mitsuhiro Tanino
Hi Vivek, (2012/10/31 23:14), Vivek Goyal wrote: If hwpoision functionality is not available in hardware, then respective bit will not be even set in struct page and it will be saved by default. So it should not matter whether hardware has hwpoision functionality or not. Thanks, I

[PATCH 2/2 v2] kexec: Export PG_hwpoison flag into vmcoreinfo

2012-10-31 Thread Mitsuhiro Tanino
mcore dump. In order to introduce this function, PG_hwpoison flag have to export into vmcoreinfo. Signed-off-by: Mitsuhiro Tanino --- kernel/kexec.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/kexec.c b/kernel/kexec.c index 0668d58..0d5d6bc 100644 --- a/kernel/kexec.c +++ b/kerne

[PATCH 1/2 v2] makedumpfile: Add a default action to exclude hwpoison page from vmcore

2012-10-31 Thread Mitsuhiro Tanino
This patch introduces a function which excludes hwpoison pages from vmcore as a default action for makedumpfile. Signed-off-by: Mitsuhiro Tanino diff -uprN a/makedumpfile.c b/makedumpfile.c --- a/makedumpfile.c2012-10-01 15:26:54.510354074 +0900 +++ b/makedumpfile.c2012-10-29 22:32

[PATCH 0/2 v2] Exclude hwpoison page from vmcore dump

2012-10-31 Thread Mitsuhiro Tanino
Hi All, Please find a set of patches that introduce a function into "makedumpfile" to exclude hwpoison page from vmcore dump. Changes from v1 to v2: Patch1: Remove "-p" option. Details as described below. Problem --- Recently, according to increase large memory systems, possibility of

Re: [Patch 0/2] Exclude hwpoison page from vmcore dump

2012-10-31 Thread Mitsuhiro Tanino
Hi Vivek, (2012/10/30 23:37), Vivek Goyal wrote: > Why to introduce this option "-p"? Until and unless there are serious > side effects, this should be default functionality. Isn't it? Who would > like to touch/save poisoned pages and run into MCE? Thank you for your review of my patch. In my

Re: [Patch 0/2] Exclude hwpoison page from vmcore dump

2012-10-31 Thread Mitsuhiro Tanino
Hi Vivek, (2012/10/30 23:37), Vivek Goyal wrote: Why to introduce this option -p? Until and unless there are serious side effects, this should be default functionality. Isn't it? Who would like to touch/save poisoned pages and run into MCE? Thank you for your review of my patch. In my

[PATCH 0/2 v2] Exclude hwpoison page from vmcore dump

2012-10-31 Thread Mitsuhiro Tanino
Hi All, Please find a set of patches that introduce a function into makedumpfile to exclude hwpoison page from vmcore dump. Changes from v1 to v2: Patch1: Remove -p option. Details as described below. Problem --- Recently, according to increase large memory systems, possibility of

[PATCH 1/2 v2] makedumpfile: Add a default action to exclude hwpoison page from vmcore

2012-10-31 Thread Mitsuhiro Tanino
This patch introduces a function which excludes hwpoison pages from vmcore as a default action for makedumpfile. Signed-off-by: Mitsuhiro Tanino mitsuhiro.tanino...@hitachi.com diff -uprN a/makedumpfile.c b/makedumpfile.c --- a/makedumpfile.c2012-10-01 15:26:54.510354074 +0900 +++ b

[PATCH 2/2 v2] kexec: Export PG_hwpoison flag into vmcoreinfo

2012-10-31 Thread Mitsuhiro Tanino
to introduce this function, PG_hwpoison flag have to export into vmcoreinfo. Signed-off-by: Mitsuhiro Tanino mitsuhiro.tanino...@hitachi.com --- kernel/kexec.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/kexec.c b/kernel/kexec.c index 0668d58..0d5d6bc 100644 --- a/kernel/kexec.c +++ b

[RFC][PATCH 2/2] kexec: Export PG_hwpoison flag into vmcoreinfo

2012-10-30 Thread Mitsuhiro Tanino
hwpoison page from vmcore dump. In order to introduce this feature, PG_hwpoison flag have to export into vmcoreinfo. Signed-off-by: Mitsuhiro Tanino --- kernel/kexec.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/kexec.c b/kernel/kexec.c index 0668d58..0d5d6bc 100644 --- a/kerne

[RFC][PATCH 1/2] makedumpfile: Add a new "-p" option to exclude hwpoison page from vmcore

2012-10-30 Thread Mitsuhiro Tanino
"makedumpfile" has filtering function to exclude some types of pages, like zero page, free page, user data, etc, without saving the whole dump. This patch introduce a new "-p" option into "makedumpfile" to exclude hwpoison page while copying vmcore to dumpfile. S

[Patch 0/2] Exclude hwpoison page from vmcore dump

2012-10-30 Thread Mitsuhiro Tanino
Hi All, Please find a set of patches that introduce a new "-p" option into "makedumpfile" to exclude hwpoison page from vmcore dump. Details as described below. Problem --- Recently, according to increase large memory systems, possibility of failures which come from memory crash are also

[Patch 0/2] Exclude hwpoison page from vmcore dump

2012-10-30 Thread Mitsuhiro Tanino
Hi All, Please find a set of patches that introduce a new -p option into makedumpfile to exclude hwpoison page from vmcore dump. Details as described below. Problem --- Recently, according to increase large memory systems, possibility of failures which come from memory crash are also

[RFC][PATCH 1/2] makedumpfile: Add a new -p option to exclude hwpoison page from vmcore

2012-10-30 Thread Mitsuhiro Tanino
makedumpfile has filtering function to exclude some types of pages, like zero page, free page, user data, etc, without saving the whole dump. This patch introduce a new -p option into makedumpfile to exclude hwpoison page while copying vmcore to dumpfile. Signed-off-by: Mitsuhiro Tanino

[RFC][PATCH 2/2] kexec: Export PG_hwpoison flag into vmcoreinfo

2012-10-30 Thread Mitsuhiro Tanino
to introduce this feature, PG_hwpoison flag have to export into vmcoreinfo. Signed-off-by: Mitsuhiro Tanino mitsuhiro.tanino...@hitachi.com --- kernel/kexec.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/kexec.c b/kernel/kexec.c index 0668d58..0d5d6bc 100644 --- a/kernel/kexec.c