Ilya Dryomov
7123ee7b3f
mm/oom: fix pgtables units mismatch in Killed process message
...
commit 941f762bcb276259a78e7931674668874ccbda59 upstream.
pr_err() expects kB, but mm_pgtables_bytes() returns the number of bytes.
As everything else is printed in kB, I chose to fix the value rather than
the string.
Before:
[ pid ] uid tgid total_vm rss pgtables_bytes swapents oom_score_adj name
...
[ 1878] 1000 1878 217253 151144 1269760 0 0 python
...
Out of memory: Killed process 1878 (python) total-vm:869012kB, anon-rss:604572kB, file-rss:4kB, shmem-rss:0kB, UID:1000 pgtables:1269760kB oom_score_adj:0
After:
[ pid ] uid tgid total_vm rss pgtables_bytes swapents oom_score_adj name
...
[ 1436] 1000 1436 217253 151890 1294336 0 0 python
...
Out of memory: Killed process 1436 (python) total-vm:869012kB, anon-rss:607516kB, file-rss:44kB, shmem-rss:0kB, UID:1000 pgtables:1264kB oom_score_adj:0
Link: http://lkml.kernel.org/r/20191211202830.1600-1-idryomov@gmail.com
Fixes: 70cb6d267790 ("mm/oom: add oom_score_adj and pgtables to Killed process message")
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: David Rientjes <rientjes@google.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Edward Chron <echron@arista.com>
Cc: David Rientjes <rientjes@google.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-01-09 10:19:57 +01:00
..
2019-09-24 15:54:08 -07:00
2019-10-06 09:11:35 -06:00
2019-09-04 07:42:01 -04:00
2019-07-12 12:24:03 -07:00
2019-05-14 09:47:45 -07:00
2019-07-16 19:23:21 -07:00
2017-11-02 11:10:55 +01:00
2019-10-14 15:04:01 -07:00
2017-11-02 11:10:55 +01:00
2019-11-15 18:34:00 -08:00
2019-07-12 11:05:46 -07:00
2017-12-11 14:54:44 +01:00
2019-08-30 22:43:58 -07:00
2019-07-12 11:05:43 -07:00
2020-01-09 10:19:55 +01:00
2019-09-25 17:51:41 -07:00
2019-06-19 17:09:52 +02:00
2019-05-14 09:47:45 -07:00
2019-10-19 06:32:32 -04:00
2018-12-28 12:11:47 -08:00
2019-09-07 04:28:04 -03:00
2019-10-19 06:32:32 -04:00
2019-11-15 18:34:00 -08:00
2019-10-19 06:32:32 -04:00
2019-06-03 15:39:40 +02:00
2019-10-19 06:32:32 -04:00
2020-01-09 10:19:55 +01:00
2019-06-19 17:09:08 +02:00
2019-09-24 15:54:11 -07:00
2019-09-24 15:54:08 -07:00
2019-11-15 18:34:00 -08:00
2019-06-05 17:37:06 +02:00
2019-10-14 08:56:16 -07:00
2019-11-22 09:11:18 -08:00
2019-07-12 11:05:44 -07:00
2019-07-18 11:51:00 -07:00
2019-11-15 18:33:59 -08:00
2019-09-24 15:54:10 -07:00
2019-10-19 06:32:32 -04:00
2019-11-15 18:34:00 -08:00
2019-09-24 15:54:08 -07:00
2020-01-09 10:19:56 +01:00
2019-10-19 06:32:31 -04:00
2020-01-09 10:19:55 +01:00
2019-11-15 18:33:59 -08:00
2019-03-05 21:07:20 -08:00
2020-01-09 10:19:56 +01:00
2017-11-02 11:10:55 +01:00
2020-01-09 10:19:57 +01:00
2019-09-25 17:51:41 -07:00
2019-09-25 17:51:41 -07:00
2019-05-21 10:50:45 +02:00
2019-09-25 17:51:41 -07:00
2019-09-24 15:54:09 -07:00
2019-11-06 08:47:50 -08:00
2017-11-02 11:10:55 +01:00
2019-09-25 17:51:41 -07:00
2019-09-25 17:51:41 -07:00
2019-09-25 17:51:41 -07:00
2019-09-24 15:54:08 -07:00
2020-01-09 10:19:57 +01:00
2019-11-06 08:47:50 -08:00
2018-06-07 17:34:36 -07:00
2019-10-14 15:04:00 -07:00
2019-06-29 16:43:45 +08:00
2019-11-15 18:34:00 -08:00
2019-07-12 11:05:43 -07:00
2019-10-19 06:32:31 -04:00
2019-09-24 15:54:08 -07:00
2019-09-24 15:54:08 -07:00
2019-08-27 09:22:38 -06:00
2019-09-07 04:28:04 -03:00
2019-03-13 12:25:31 -07:00
2019-06-05 17:37:16 +02:00
2019-06-05 17:37:16 +02:00
2019-06-05 17:37:16 +02:00
2019-09-04 13:40:49 -07:00
2018-10-09 16:51:11 +02:00
2019-05-30 11:26:32 -07:00
2019-05-21 10:50:45 +02:00
2019-10-19 06:32:32 -04:00
2019-06-05 17:37:17 +02:00
2020-01-09 10:19:54 +01:00
2019-10-07 15:47:19 -07:00
2019-05-14 19:52:48 -07:00
2019-12-17 19:56:49 +01:00
2019-10-14 15:04:01 -07:00
2019-11-06 08:47:50 -08:00
2019-10-07 15:47:20 -07:00
2019-11-15 18:34:00 -08:00
2019-07-18 17:08:07 -07:00
2019-10-07 15:47:19 -07:00
2017-11-02 11:10:55 +01:00
2018-08-22 10:52:44 -07:00
2019-09-24 15:54:08 -07:00
2019-09-25 17:51:41 -07:00
2019-08-20 07:55:16 -07:00
2019-10-19 06:32:33 -04:00
2019-09-17 15:20:17 -07:00
2019-06-19 17:09:53 +02:00
2019-09-24 15:54:11 -07:00
2018-09-13 15:18:04 -10:00
2019-09-25 17:51:39 -07:00
2019-10-07 15:47:19 -07:00
2019-12-31 16:46:07 +01:00
2019-11-06 08:47:50 -08:00
2019-08-13 16:06:52 -07:00
2019-10-07 15:47:19 -07:00
2019-05-21 10:50:45 +02:00
2019-09-24 15:54:12 -07:00
2020-01-09 10:19:56 +01:00
2019-09-24 15:54:12 -07:00