lkml.org 
[lkml]   [2005]   [Apr]   [2]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateSat, 2 Apr 2005 18:05:45 +0200
FromDiego Calleja <>
Subjectmake OOM more "user friendly"
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/
\
 
 \ /
  Last update: 2005-04-06 11:31    [from the cache]
©2003-2008