public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* make OOM more "user friendly"
@ 2005-04-02 16:05 Diego Calleja
  2005-04-02 16:58 ` Matthias-Christian Ott
  0 siblings, 1 reply; 4+ messages in thread
From: Diego Calleja @ 2005-04-02 16:05 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel

When people gets OOM messages, many of them don't know what is happening or what
OOM means. This brief message explains it.

--- stable/mm/oom_kill.c.orig	2005-04-02 17:44:14.000000000 +0200
+++ stable/mm/oom_kill.c	2005-04-02 18:01:02.000000000 +0200
@@ -189,7 +189,8 @@
 		return;
 	}
 	task_unlock(p);
-	printk(KERN_ERR "Out of Memory: Killed process %d (%s).\n", p->pid, p->comm);
+	printk(KERN_ERR "The system has run Out Of Memory (RAM + swap), a process will be killed to free some memory\n");
+	printk(KERN_ERR "OOM: Killed process %d (%s).\n", p->pid, p->comm);
 
 	/*
 	 * We give our sacrificial lamb high priority and access to

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

* Re: make OOM more "user friendly"
  2005-04-02 16:05 make OOM more "user friendly" Diego Calleja
@ 2005-04-02 16:58 ` Matthias-Christian Ott
  2005-04-02 17:11   ` Diego Calleja
  2005-04-02 17:36   ` Indrek Kruusa
  0 siblings, 2 replies; 4+ messages in thread
From: Matthias-Christian Ott @ 2005-04-02 16:58 UTC (permalink / raw)
  To: Diego Calleja; +Cc: akpm, linux-kernel

Diego Calleja schrieb:

>When people gets OOM messages, many of them don't know what is happening or what
>OOM means. This brief message explains it.
>
>--- stable/mm/oom_kill.c.orig	2005-04-02 17:44:14.000000000 +0200
>+++ stable/mm/oom_kill.c	2005-04-02 18:01:02.000000000 +0200
>@@ -189,7 +189,8 @@
> 		return;
> 	}
> 	task_unlock(p);
>-	printk(KERN_ERR "Out of Memory: Killed process %d (%s).\n", p->pid, p->comm);
>+	printk(KERN_ERR "The system has run Out Of Memory (RAM + swap), a process will be killed to free some memory\n");
>+	printk(KERN_ERR "OOM: Killed process %d (%s).\n", p->pid, p->comm);
> 
> 	/*
> 	 * We give our sacrificial lamb high priority and access to
>-
>To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at  http://www.tux.org/lkml/
>
>  
>
I disagree this is _not_ usefull. If the user don't knows what OOM means 
he can use google to get this information.

Matthias-Christian Ott

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

* Re: make OOM more "user friendly"
  2005-04-02 16:58 ` Matthias-Christian Ott
@ 2005-04-02 17:11   ` Diego Calleja
  2005-04-02 17:36   ` Indrek Kruusa
  1 sibling, 0 replies; 4+ messages in thread
From: Diego Calleja @ 2005-04-02 17:11 UTC (permalink / raw)
  To: Matthias-Christian Ott; +Cc: akpm, linux-kernel

El Sat, 02 Apr 2005 18:58:53 +0200,
Matthias-Christian Ott <matthias.christian@tiscali.de> escribió:

> I disagree this is _not_ usefull. If the user don't knows what OOM means 
> he can use google to get this information.

And google will take them to what random source of information? There's no "official"
meaning of what OOM is outside the kernel.... And anyway, why shouldn't the kernel tell
what's happening? That printk is not exactly a fifty-page explanation, it just says "your
system has run out of memory" instead of "OOM", which is what it's really happening and
it's not verbose at all, and it doesn't scare users.

OOM doesn't prints just those messages, if prints a lot of "debugging info" about the state
of the memory subsystem, I've found people in usenet who reboots their systems when
they see that because they think it's a critical failure or something - and looking at how it's
printed, I don't blame them. This is the reason why I submitted this patch.

(and I'd have added a "look at Documentation/oom.txt", but there's zero documentation of
what OOM is, what are the causes of it, tips of how to find apps triggering it and tips to fix
it, and I'm not the right person to write it, so...)

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

* Re: make OOM more "user friendly"
  2005-04-02 16:58 ` Matthias-Christian Ott
  2005-04-02 17:11   ` Diego Calleja
@ 2005-04-02 17:36   ` Indrek Kruusa
  1 sibling, 0 replies; 4+ messages in thread
From: Indrek Kruusa @ 2005-04-02 17:36 UTC (permalink / raw)
  To: Matthias-Christian Ott; +Cc: Diego Calleja, akpm, linux-kernel

Matthias-Christian Ott wrote:

> Diego Calleja schrieb:
>
>> When people gets OOM messages, many of them don't know what is 
>> happening or what
>> OOM means. This brief message explains it.
>>
>> --- stable/mm/oom_kill.c.orig    2005-04-02 17:44:14.000000000 +0200
>> +++ stable/mm/oom_kill.c    2005-04-02 18:01:02.000000000 +0200
>> @@ -189,7 +189,8 @@
>>         return;
>>     }
>>     task_unlock(p);
>> -    printk(KERN_ERR "Out of Memory: Killed process %d (%s).\n", 
>> p->pid, p->comm);
>> +    printk(KERN_ERR "The system has run Out Of Memory (RAM + swap), 
>> a process will be killed to free some memory\n");
>> +    printk(KERN_ERR "OOM: Killed process %d (%s).\n", p->pid, p->comm);
>>
>>     /*
>>      * We give our sacrificial lamb high priority and access to
>> -
>> To unsubscribe from this list: send the line "unsubscribe 
>> linux-kernel" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>> Please read the FAQ at  http://www.tux.org/lkml/
>>
>>  
>>
> I disagree this is _not_ usefull. If the user don't knows what OOM 
> means he can use google to get this information.


:)  Somewhat like "Use your mobile phone to call helpdesk if your mobile 
phone is broken". Maybe such messages should have some kind of link to 
information  in Documentation/  ?

regards,
Indrek



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

end of thread, other threads:[~2005-04-02 17:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-02 16:05 make OOM more "user friendly" Diego Calleja
2005-04-02 16:58 ` Matthias-Christian Ott
2005-04-02 17:11   ` Diego Calleja
2005-04-02 17:36   ` Indrek Kruusa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox