linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH 2/2] use oom_killer_disabled in page fault oom path
  2011-04-26  5:31 [PATCH 2/2] use oom_killer_disabled in page fault oom path Dave Young
@ 2011-04-26  5:19 ` KAMEZAWA Hiroyuki
  2011-04-26  5:51 ` KOSAKI Motohiro
  2011-04-26  8:07 ` Minchan Kim
  2 siblings, 0 replies; 5+ messages in thread
From: KAMEZAWA Hiroyuki @ 2011-04-26  5:19 UTC (permalink / raw)
  To: Dave Young; +Cc: linux-mm, linux-kernel, kosaki.motohiro

On Tue, 26 Apr 2011 13:31:50 +0800
Dave Young <hidave.darkstar@gmail.com> wrote:

> Currently oom_killer_disabled is only used in __alloc_pages_slowpath,
> For page fault oom case it is not considered. One use case is
> virtio balloon driver, when memory pressure is high, virtio ballooning
> will cause oom killing due to such as page fault oom.
> 
> Thus add oom_killer_disabled checking in pagefault_out_of_memory.
> 
> Signed-off-by: Dave Young <hidave.darkstar@gmail.com>

Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 2/2] use oom_killer_disabled in page fault oom path
@ 2011-04-26  5:31 Dave Young
  2011-04-26  5:19 ` KAMEZAWA Hiroyuki
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Dave Young @ 2011-04-26  5:31 UTC (permalink / raw)
  To: linux-mm, linux-kernel, kamezawa.hiroyu, kosaki.motohiro

Currently oom_killer_disabled is only used in __alloc_pages_slowpath,
For page fault oom case it is not considered. One use case is
virtio balloon driver, when memory pressure is high, virtio ballooning
will cause oom killing due to such as page fault oom.

Thus add oom_killer_disabled checking in pagefault_out_of_memory.

Signed-off-by: Dave Young <hidave.darkstar@gmail.com>
---
 mm/oom_kill.c |    3 +++
 1 file changed, 3 insertions(+)

--- linux-2.6.orig/mm/oom_kill.c	2011-04-26 11:32:21.446452686 +0800
+++ linux-2.6/mm/oom_kill.c	2011-04-26 11:33:05.426452586 +0800
@@ -747,6 +747,9 @@ out:
  */
 void pagefault_out_of_memory(void)
 {
+	if (oom_killer_disabled)
+		return;
+
 	if (try_set_system_oom()) {
 		out_of_memory(NULL, 0, 0, NULL);
 		clear_system_oom();

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] use oom_killer_disabled in page fault oom path
  2011-04-26  5:31 [PATCH 2/2] use oom_killer_disabled in page fault oom path Dave Young
  2011-04-26  5:19 ` KAMEZAWA Hiroyuki
@ 2011-04-26  5:51 ` KOSAKI Motohiro
  2011-04-26  8:07 ` Minchan Kim
  2 siblings, 0 replies; 5+ messages in thread
From: KOSAKI Motohiro @ 2011-04-26  5:51 UTC (permalink / raw)
  To: Dave Young; +Cc: kosaki.motohiro, linux-mm, linux-kernel, kamezawa.hiroyu

> Currently oom_killer_disabled is only used in __alloc_pages_slowpath,
> For page fault oom case it is not considered. One use case is
> virtio balloon driver, when memory pressure is high, virtio ballooning
> will cause oom killing due to such as page fault oom.
> 
> Thus add oom_killer_disabled checking in pagefault_out_of_memory.
> 
> Signed-off-by: Dave Young <hidave.darkstar@gmail.com>

Thank you.
	Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>



--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] use oom_killer_disabled in page fault oom path
  2011-04-26  5:31 [PATCH 2/2] use oom_killer_disabled in page fault oom path Dave Young
  2011-04-26  5:19 ` KAMEZAWA Hiroyuki
  2011-04-26  5:51 ` KOSAKI Motohiro
@ 2011-04-26  8:07 ` Minchan Kim
  2011-04-26  8:21   ` Minchan Kim
  2 siblings, 1 reply; 5+ messages in thread
From: Minchan Kim @ 2011-04-26  8:07 UTC (permalink / raw)
  To: Dave Young; +Cc: linux-mm, linux-kernel, kamezawa.hiroyu, kosaki.motohiro

On Tue, Apr 26, 2011 at 2:31 PM, Dave Young <hidave.darkstar@gmail.com> wrote:
> Currently oom_killer_disabled is only used in __alloc_pages_slowpath,
> For page fault oom case it is not considered. One use case is
> virtio balloon driver, when memory pressure is high, virtio ballooning
> will cause oom killing due to such as page fault oom.

Other mm guys already accepted but sorry I can't understand your point
since I am not familiar with virtio.

Now oom_killer_disabled is used by only hibernation and hibernation
freezes processes so page fault shouldn't happen.

Now are you using oom_killer_disabled in virtio?
Could you elaborate use case ?

Thanks.
-- 
Kind regards,
Minchan Kim

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] use oom_killer_disabled in page fault oom path
  2011-04-26  8:07 ` Minchan Kim
@ 2011-04-26  8:21   ` Minchan Kim
  0 siblings, 0 replies; 5+ messages in thread
From: Minchan Kim @ 2011-04-26  8:21 UTC (permalink / raw)
  To: Dave Young; +Cc: linux-mm, linux-kernel, kamezawa.hiroyu, kosaki.motohiro

On Tue, Apr 26, 2011 at 5:07 PM, Minchan Kim <minchan.kim@gmail.com> wrote:
> On Tue, Apr 26, 2011 at 2:31 PM, Dave Young <hidave.darkstar@gmail.com> wrote:
>> Currently oom_killer_disabled is only used in __alloc_pages_slowpath,
>> For page fault oom case it is not considered. One use case is
>> virtio balloon driver, when memory pressure is high, virtio ballooning
>> will cause oom killing due to such as page fault oom.
>
> Other mm guys already accepted but sorry I can't understand your point
> since I am not familiar with virtio.
>
> Now oom_killer_disabled is used by only hibernation and hibernation
> freezes processes so page fault shouldn't happen.
>
> Now are you using oom_killer_disabled in virtio?
> Could you elaborate use case ?

Sorry, I lost your [1/2] in my mail box.
I will see it in marc linux-mm

-- 
Kind regards,
Minchan Kim

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-04-26  8:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-26  5:31 [PATCH 2/2] use oom_killer_disabled in page fault oom path Dave Young
2011-04-26  5:19 ` KAMEZAWA Hiroyuki
2011-04-26  5:51 ` KOSAKI Motohiro
2011-04-26  8:07 ` Minchan Kim
2011-04-26  8:21   ` Minchan Kim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).