[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#695182: linux-image-3.2.0-4-686-pae: Write couple of 1GB files for OOM crash



Dear Ben,

> Although PAE supports up to 64 GB RAM ... The use of such a large
> amount of high memory is problematic ...
> Or you can test ... by restricting what the kernel uses with the
> 'mem' parameter, e.g. mem=16G.

Trying various mem=XX values, no OOM was observed with mem=32G or less,
but a crash is obtained with any memory over 32GB e.g. with mem=34G.
This suggests a signed/unsigned bug more than an issue with highmem
size; you said PAE supports 64GB, not just 32GB.

> A 64-bit kernel doesn't have a split between normal and high memory.

... and it may have larger integers, less affected by signedness bugs.

Cheers, Paul

Paul Szabo   psz@maths.usyd.edu.au   http://www.maths.usyd.edu.au/u/psz/
School of Mathematics and Statistics   University of Sydney    Australia


*** mem=34G - Tail end of /var/log/kern.log
[    0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.2.0-4-686-pae mem=34G root=UUID=469c2730-1786-46f7-9d80-5d651ee581d7 ro quiet
...
[  388.560098] dd invoked oom-killer: gfp_mask=0x800d0, order=0, oom_adj=0, oom_score_adj=0
[  388.560106] dd cpuset=/ mems_allowed=0
[  388.560113] Pid: 4244, comm: dd Not tainted 3.2.0-4-686-pae #1 Debian 3.2.32-1
[  388.560117] Call Trace:
[  388.560135]  [<c1097c1c>] ? dump_header.isra.6+0x5c/0x167
[  388.560144]  [<c1120ff8>] ? security_real_capable_noaudit+0x2c/0x35
[  388.560149]  [<c1097e93>] ? oom_kill_process+0x30/0x201
[  388.560155]  [<c109810f>] ? select_bad_process.constprop.12+0xab/0xff
[  388.560160]  [<c10983e0>] ? out_of_memory+0xf8/0x135
[  388.560167]  [<c109aecd>] ? __alloc_pages_nodemask+0x509/0x63e
[  388.560176]  [<c10c0ca3>] ? ____cache_alloc+0x253/0x407
[  388.560183]  [<c10c1425>] ? kmem_cache_alloc+0x29/0x89
[  388.560193]  [<c11605ee>] ? radix_tree_preload+0x24/0x61
[  388.560203]  [<c10961cd>] ? add_to_page_cache_locked+0x3e/0xb3
[  388.560210]  [<c1096253>] ? add_to_page_cache_lru+0x11/0x2f
[  388.560217]  [<c10962cb>] ? grab_cache_page_write_begin+0x5a/0x94
[  388.560244]  [<f88bb348>] ? ext3_write_begin+0xa0/0x1d2 [ext3]
[  388.560251]  [<c109d562>] ? put_page+0x16/0x24
[  388.560258]  [<c1095e61>] ? generic_file_buffered_write+0xd8/0x1dd
[  388.560265]  [<c1096afb>] ? __generic_file_aio_write+0x25e/0x282
[  388.560273]  [<c100f2fb>] ? read_tsc+0xa/0x28
[  388.560282]  [<c1053548>] ? timekeeping_get_ns+0x11/0x55
[  388.560287]  [<c1096b7c>] ? generic_file_aio_write+0x5d/0xb3
[  388.560298]  [<c10cbc31>] ? wait_on_retry_sync_kiocb+0x3c/0x3c
[  388.560304]  [<c10cbcd9>] ? do_sync_write+0xa8/0xdc
[  388.560311]  [<c10cc1f3>] ? rw_verify_area+0xc6/0xe7
[  388.560317]  [<c10cc493>] ? vfs_write+0x83/0xd4
[  388.560323]  [<c10cc653>] ? sys_write+0x3d/0x61
[  388.560331]  [<c12c5d1f>] ? sysenter_do_call+0x12/0x28
[  388.560334] Mem-Info:
[  388.560337] DMA per-cpu:
[  388.560341] CPU    0: hi:	0, btch:   1 usd:   0
[  388.560345] CPU    1: hi:	0, btch:   1 usd:   0
[  388.560348] CPU    2: hi:	0, btch:   1 usd:   0
[  388.560351] CPU    3: hi:	0, btch:   1 usd:   0
[  388.560355] CPU    4: hi:	0, btch:   1 usd:   0
[  388.560358] CPU    5: hi:	0, btch:   1 usd:   0
[  388.560361] CPU    6: hi:	0, btch:   1 usd:   0
[  388.560365] CPU    7: hi:	0, btch:   1 usd:   0
[  388.560368] CPU    8: hi:	0, btch:   1 usd:   0
[  388.560371] CPU    9: hi:	0, btch:   1 usd:   0
[  388.560374] CPU   10: hi:	0, btch:   1 usd:   0
[  388.560378] CPU   11: hi:	0, btch:   1 usd:   0
[  388.560381] CPU   12: hi:	0, btch:   1 usd:   0
[  388.560384] CPU   13: hi:	0, btch:   1 usd:   0
[  388.560387] CPU   14: hi:	0, btch:   1 usd:   0
[  388.560390] CPU   15: hi:	0, btch:   1 usd:   0
[  388.560394] CPU   16: hi:	0, btch:   1 usd:   0
[  388.560397] CPU   17: hi:	0, btch:   1 usd:   0
[  388.560400] CPU   18: hi:	0, btch:   1 usd:   0
[  388.560404] CPU   19: hi:	0, btch:   1 usd:   0
[  388.560407] CPU   20: hi:	0, btch:   1 usd:   0
[  388.560410] CPU   21: hi:	0, btch:   1 usd:   0
[  388.560413] CPU   22: hi:	0, btch:   1 usd:   0
[  388.560417] CPU   23: hi:	0, btch:   1 usd:   0
[  388.560420] CPU   24: hi:	0, btch:   1 usd:   0
[  388.560423] CPU   25: hi:	0, btch:   1 usd:   0
[  388.560427] CPU   26: hi:	0, btch:   1 usd:   0
[  388.560430] CPU   27: hi:	0, btch:   1 usd:   0
[  388.560433] CPU   28: hi:	0, btch:   1 usd:   0
[  388.560436] CPU   29: hi:	0, btch:   1 usd:   0
[  388.560440] CPU   30: hi:	0, btch:   1 usd:   0
[  388.560443] CPU   31: hi:	0, btch:   1 usd:   0
[  388.560446] Normal per-cpu:
[  388.560449] CPU    0: hi:  186, btch:  31 usd: 174
[  388.560452] CPU    1: hi:  186, btch:  31 usd: 164
[  388.560456] CPU    2: hi:  186, btch:  31 usd:  53
[  388.560459] CPU    3: hi:  186, btch:  31 usd:  51
[  388.560462] CPU    4: hi:  186, btch:  31 usd: 155
[  388.560465] CPU    5: hi:  186, btch:  31 usd:  72
[  388.560469] CPU    6: hi:  186, btch:  31 usd: 143
[  388.560472] CPU    7: hi:  186, btch:  31 usd:  95
[  388.560475] CPU    8: hi:  186, btch:  31 usd: 178
[  388.560478] CPU    9: hi:  186, btch:  31 usd: 171
[  388.560481] CPU   10: hi:  186, btch:  31 usd:  26
[  388.560485] CPU   11: hi:  186, btch:  31 usd:  49
[  388.560488] CPU   12: hi:  186, btch:  31 usd:  36
[  388.560491] CPU   13: hi:  186, btch:  31 usd:  38
[  388.560494] CPU   14: hi:  186, btch:  31 usd:  37
[  388.560497] CPU   15: hi:  186, btch:  31 usd:  49
[  388.560500] CPU   16: hi:  186, btch:  31 usd: 174
[  388.560503] CPU   17: hi:  186, btch:  31 usd: 162
[  388.560507] CPU   18: hi:  186, btch:  31 usd: 175
[  388.560510] CPU   19: hi:  186, btch:  31 usd: 161
[  388.560513] CPU   20: hi:  186, btch:  31 usd: 162
[  388.560516] CPU   21: hi:  186, btch:  31 usd: 172
[  388.560519] CPU   22: hi:  186, btch:  31 usd: 139
[  388.560522] CPU   23: hi:  186, btch:  31 usd: 155
[  388.560525] CPU   24: hi:  186, btch:  31 usd: 131
[  388.560529] CPU   25: hi:  186, btch:  31 usd: 154
[  388.560532] CPU   26: hi:  186, btch:  31 usd: 175
[  388.560535] CPU   27: hi:  186, btch:  31 usd: 173
[  388.560538] CPU   28: hi:  186, btch:  31 usd: 178
[  388.560541] CPU   29: hi:  186, btch:  31 usd: 138
[  388.560544] CPU   30: hi:  186, btch:  31 usd: 125
[  388.560547] CPU   31: hi:  186, btch:  31 usd: 168
[  388.560550] HighMem per-cpu:
[  388.560553] CPU    0: hi:  186, btch:  31 usd: 117
[  388.560556] CPU    1: hi:  186, btch:  31 usd: 115
[  388.560559] CPU    2: hi:  186, btch:  31 usd:  34
[  388.560562] CPU    3: hi:  186, btch:  31 usd:  46
[  388.560566] CPU    4: hi:  186, btch:  31 usd:  53
[  388.560569] CPU    5: hi:  186, btch:  31 usd: 150
[  388.560572] CPU    6: hi:  186, btch:  31 usd:  72
[  388.560575] CPU    7: hi:  186, btch:  31 usd:  18
[  388.560578] CPU    8: hi:  186, btch:  31 usd:  34
[  388.560582] CPU    9: hi:  186, btch:  31 usd:  16
[  388.560585] CPU   10: hi:  186, btch:  31 usd:  24
[  388.560588] CPU   11: hi:  186, btch:  31 usd:  62
[  388.560591] CPU   12: hi:  186, btch:  31 usd:   5
[  388.560594] CPU   13: hi:  186, btch:  31 usd:  24
[  388.560598] CPU   14: hi:  186, btch:  31 usd:   4
[  388.560601] CPU   15: hi:  186, btch:  31 usd:  37
[  388.560604] CPU   16: hi:  186, btch:  31 usd: 172
[  388.560607] CPU   17: hi:  186, btch:  31 usd: 157
[  388.560611] CPU   18: hi:  186, btch:  31 usd: 138
[  388.560614] CPU   19: hi:  186, btch:  31 usd: 153
[  388.560617] CPU   20: hi:  186, btch:  31 usd: 158
[  388.560620] CPU   21: hi:  186, btch:  31 usd: 130
[  388.560623] CPU   22: hi:  186, btch:  31 usd: 157
[  388.560626] CPU   23: hi:  186, btch:  31 usd: 151
[  388.560629] CPU   24: hi:  186, btch:  31 usd: 175
[  388.560632] CPU   25: hi:  186, btch:  31 usd: 131
[  388.560635] CPU   26: hi:  186, btch:  31 usd: 185
[  388.560639] CPU   27: hi:  186, btch:  31 usd: 160
[  388.560642] CPU   28: hi:  186, btch:  31 usd: 143
[  388.560645] CPU   29: hi:  186, btch:  31 usd: 182
[  388.560648] CPU   30: hi:  186, btch:  31 usd: 166
[  388.560651] CPU   31: hi:  186, btch:  31 usd: 145
[  388.560660] active_anon:12141 inactive_anon:206 isolated_anon:0
[  388.560662]  active_file:2689 inactive_file:7638801 isolated_file:0
[  388.560664]  unevictable:0 dirty:532 writeback:927 unstable:0
[  388.560665]  free:507417 slab_reclaimable:126086 slab_unreclaimable:7435
[  388.560667]  mapped:7462 shmem:327 pagetables:500 bounce:0
[  388.560681] DMA free:4256kB min:784kB low:980kB high:1176kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:36kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:15784kB mlocked:0kB dirty:0kB writeback:0kB mapped:0kB shmem:0kB slab_reclaimable:11464kB slab_unreclaimable:124kB kernel_stack:0kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:318 all_unreclaimable? yes
[  388.560690] lowmem_reserve[]: 0 867 32452 32452
[  388.560705] Normal free:43552kB min:44112kB low:55140kB high:66168kB active_anon:0kB inactive_anon:0kB active_file:704kB inactive_file:248kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:887976kB mlocked:0kB dirty:0kB writeback:0kB mapped:4kB shmem:0kB slab_reclaimable:492880kB slab_unreclaimable:29616kB kernel_stack:3072kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:2314 all_unreclaimable? yes
[  388.560714] lowmem_reserve[]: 0 0 252685 252685
[  388.560728] HighMem free:1981860kB min:512kB low:402232kB high:803952kB active_anon:48564kB inactive_anon:824kB active_file:10052kB inactive_file:30554920kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:32343780kB mlocked:0kB dirty:2128kB writeback:3708kB mapped:29844kB shmem:1308kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:2000kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
[  388.560737] lowmem_reserve[]: 0 0 0 0
[  388.560742] DMA: 344*4kB 24*8kB 2*16kB 1*32kB 3*64kB 1*128kB 1*256kB 0*512kB 0*1024kB 1*2048kB 0*4096kB = 4256kB
[  388.560755] Normal: 499*4kB 410*8kB 206*16kB 141*32kB 76*64kB 41*128kB 22*256kB 7*512kB 1*1024kB 3*2048kB 1*4096kB = 43676kB
[  388.560768] HighMem: 27*4kB 108*8kB 180*16kB 69*32kB 10*64kB 1*128kB 0*256kB 1*512kB 0*1024kB 2*2048kB 481*4096kB = 1981612kB
[  388.560781] 7641929 total pagecache pages
[  388.560784] 0 pages in swap cache
[  388.560787] Swap cache stats: add 0, delete 0, find 0/0
[  388.560789] Free swap  = 0kB
[  388.560791] Total swap = 0kB
[  388.689761] 8912880 pages RAM
[  388.689764] 8685058 pages HighMem
[  388.689765] 602863 pages reserved
[  388.689766] 7651933 pages shared
[  388.689766] 164670 pages non-shared
[  388.689768] [ pid ]   uid  tgid total_vm	 rss cpu oom_adj oom_score_adj name
[  388.689796] [  664]     0   664	867	 487  11     -17	 -1000 udevd
[  388.689799] [  976]     0   976	800	 360   4     -17	 -1000 udevd
[  388.689802] [  977]     0   977	800	 361  12     -17	 -1000 udevd
[  388.689805] [ 2185]     0  2185	594	 198  12       0	     0 rpcbind
[  388.689808] [ 2216]   105  2216	662	 315  10       0	     0 rpc.statd
[  388.689811] [ 2234]     0  2234	644	  98  17       0	     0 rpc.idmapd
[  388.689813] [ 2561]     0  2561     7051	 410   0       0	     0 rsyslogd
[  388.689816] [ 2631]     0  2631	538	  31   0       0	     0 atd
[  388.689818] [ 2694]     0  2694	959	 237   8       0	     0 cron
[  388.689821] [ 2747]     0  2747	469	 154   1       0	     0 acpid
[  388.689823] [ 2781]   101  2781	854	 367   3       0	     0 dbus-daemon
[  388.689826] [ 3014]     0  3014     1121	 348   8       0	     0 bluetoothd
[  388.689829] [ 3029]   106  3029	789	 366   2       0	     0 avahi-daemon
[  388.689831] [ 3030]   106  3030	789	 108  15       0	     0 avahi-daemon
[  388.689834] [ 3066]     0  3066     1616	 264   6     -17	 -1000 sshd
[  388.689836] [ 3085]     0  3085     6803	1138   1       0	     0 NetworkManager
[  388.689839] [ 3145]     0  3145     4504	 693   6       0	     0 gdm3
[  388.689841] [ 3157]     0  3157     6101	1012   8       0	     0 polkitd
[  388.689844] [ 3173]     0  3173     1722	 688   7       0	     0 modem-manager
[  388.689846] [ 3176]   104  3176     1855	 230   1       0	     0 exim4
[  388.689849] [ 3215]     0  3215     1295	 765   5       0	     0 dhclient
[  388.689851] [ 3216]     0  3216     5110	1021   0       0	     0 gdm-simple-slav
[  388.689854] [ 3234]     0  3234    31832	4078   1       0	     0 Xorg
[  388.689856] [ 3237]     0  3237	462	  76   1       0	     0 minissdpd
[  388.689859] [ 3238]     0  3238	945	 214  10       0	     0 getty
[  388.689862] [ 3239]     0  3239	945	 213   9       0	     0 getty
[  388.689864] [ 3240]     0  3240	945	 213  25       0	     0 getty
[  388.689866] [ 3241]     0  3241	945	 213   2       0	     0 getty
[  388.689869] [ 3242]     0  3242	945	 213   8       0	     0 getty
[  388.689871] [ 3243]     0  3243	945	 215  11       0	     0 getty
[  388.689873] [ 3306]   112  3306	849	 278   7       0	     0 dbus-daemon
[  388.689876] [ 3307]     0  3307     6940	 988   1       0	     0 gdm-session-wor
[  388.689878] [ 3310]     0  3310     5844	 756   8       0	     0 accounts-daemon
[  388.689881] [ 3314]     0  3314     7258	 851  20       0	     0 console-kit-dae
[  388.689883] [ 3388]   112  3388    12814	2247   0       0	     0 gnome-session
[  388.689886] [ 3392]   112  3392    55404	3225   0       0	     0 gnome-settings-
[  388.689888] [ 3399]     0  3399     6836	 945   2       0	     0 upowerd
[  388.689891] [ 3437]   112  3437     2093	 511   1       0	     0 gvfsd
[  388.689893] [ 3485]   112  3485    10529	 766   1       0	     0 at-spi-bus-laun
[  388.689896] [ 3489]   112  3489	755	 358  11       0	     0 dbus-daemon
[  388.689898] [ 3493]   112  3493     4219	 772   6       0	     0 at-spi2-registr
[  388.689901] [ 3508]   112  3508    21879	 920   4       0	     0 pulseaudio
[  388.689903] [ 3512]   110  3512     5001	 303   4       0	     0 rtkit-daemon
[  388.689906] [ 3749]   112  3749    32934	2110   2       0	     0 metacity
[  388.689908] [ 3780]   112  3780     8191	2083  12       0	     0 polkit-gnome-au
[  388.689911] [ 3781]   112  3781    34326	3480   2       0	     0 gdm-simple-gree
[  388.689913] [ 3792]     0  3792     4735	 758   7       0	     0 gdm-session-wor
[  388.689916] [ 3794]     0  3794     2475	 847   0       0	     0 sshd
[  388.689918] [ 3799]  1000  3799     2475	 522   0       0	     0 sshd
[  388.689921] [ 3800]  1000  3800     1398	 696  10       0	     0 bash
[  388.689923] [ 3886]     0  3886     2475	 846   1       0	     0 sshd
[  388.689925] [ 3891]  1000  3891     2475	 523   0       0	     0 sshd
[  388.689928] [ 3892]  1000  3892     1398	 696   3       0	     0 bash
[  388.689930] [ 3976]  1000  3976     1398	 409   9       0	     0 bash
[  388.689932] [ 4010]  1000  4010	849	 127  17       0	     0 tail
[  388.689935] [ 4244]  1000  4244     1142	 404  12       0	     0 dd
[  388.689937] Out of memory: Kill process 2185 (rpcbind) score 1 or sacrifice child
[  388.689941] Killed process 2185 (rpcbind) total-vm:2376kB, anon-rss:212kB, file-rss:580kB


Reply to: