Bug 80208 - [all]igt/gem_userptr_blits fails with OOM killer
Summary: [all]igt/gem_userptr_blits fails with OOM killer
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: Other All
: highest blocker
Assignee: Chris Wilson
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
: 79245 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-06-19 02:34 UTC by Guo Jinxian
Modified: 2016-10-19 09:21 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
dmesg (93.85 KB, text/plain)
2014-06-19 02:34 UTC, Guo Jinxian
no flags Details

Description Guo Jinxian 2014-06-19 02:34:17 UTC
Created attachment 101330 [details]
dmesg

==System Environment==
--------------------------
Regression: No. 
It's new case

Non-working platforms: ILK SNB IVB HSW

==kernel==
--------------------------
origin/drm-intel-nightly: fff6c5111af7356d3815521f597959554e7bc1cc(fails)
    drm-intel-nightly: 2014y-06m-18d-00h-49m-52s integration manifest
origin/drm-intel-next-queued: 27b6c122512ca30399bb1b39cc42eda83901f304(fails)
    drm/i915/chv: Ack interrupts before handling them (CHV)
origin/drm-intel-fixes: 223a6f2b975ab35d93270ea1d4fb6e0ac6b27fe6(fails)
    drm/i915/bdw: remove erroneous chv specific workarounds from bdw code

==Bug detailed description==
-----------------------------
igt/gem_userptr_blits unable to exist


Case list:
igt/gem_userptr_blits/forked-sync-interruptible
igt/gem_userptr_blits/forked-sync-mempressure-interruptible
igt/gem_userptr_blits/forked-sync-mempressure-normal
igt/gem_userptr_blits/forked-sync-multifd-interruptible
igt/gem_userptr_blits/forked-sync-multifd-mempressure-interruptible
igt/gem_userptr_blits/forked-sync-multifd-mempressure-normal
igt/gem_userptr_blits/forked-sync-swapping-interruptible
igt/gem_userptr_blits/forked-sync-swapping-mempressure-interruptible
igt/gem_userptr_blits/forked-sync-swapping-mempressure-normal
igt/gem_userptr_blits/forked-sync-swapping-multifd-interruptible
igt/gem_userptr_blits/forked-sync-swapping-multifd-mempressure-interruptible
igt/gem_userptr_blits/forked-sync-swapping-multifd-mempressure-normal
igt/gem_userptr_blits/forked-unsync-multifd-mempressure-normal
igt/gem_userptr_blits/forked-unsync-swapping-mempressure-normal
igt/gem_userptr_blits/forked-unsync-swapping-multifd-mempressure-interruptible
igt/gem_userptr_blits/forked-unsync-swapping-multifd-mempressure-normal
igt/gem_userptr_blits/swapping-normal-sync
igt/gem_userptr_blits/swapping-sync-interruptible
igt/gem_userptr_blits/swapping-unsync-interruptible
igt/gem_userptr_blits/swapping-unsync-normal


Output:
[root@x-hsw27 tests]# time ./gem_userptr_blits --run-subtest forked-sync-interruptible
IGT-Version: 1.7-g1b1f4b1 (x86_64) (Linux: 3.15.0-rc8_drm-intel-fixes_223a6f_20140618+ x86_64)
Aperture size is 2048 MiB
Total RAM is 7669 MiB
Testing unsynchronized mappings...
Testing synchronized mappings...


^C
real    18m10.336s
user    0m4.631s
sys     97m46.113s


==Reproduce steps==
---------------------------- 
1. ./gem_userptr_blits --run-subtest forked-sync-interruptible
Comment 1 lu hua 2014-06-20 03:04:47 UTC
Increase priority, Because it impacts about 20 cases, and these cases take more than 1 hour.
Comment 2 Guo Jinxian 2014-06-24 03:45:49 UTC
The test still unable to exit on IVB on latest -fixes.

Output:
[root@x-ivb6 tests]# time ./gem_userptr_blits --run-subtest forked-sync-swapping-multifd-mempressure-interruptible
IGT-Version: 1.7-gfedb9b6 (x86_64) (Linux: 3.15.0-rc8_drm-intel-fixes_4a11e3_20140623_debug+ x86_64)
Aperture size is 2048 MiB
Total RAM is 7873 MiB
Testing unsynchronized mappings...
Testing synchronized mappings...
child 0 died with signal 9, Killed
Subtest forked-sync-swapping-multifd-mempressure-interruptible: FAIL
Test assertion failure function igt_stop_helper, file igt_core.c:818:
Last errno: 0, Success
Failed assertion: WIFSIGNALED(status) && WTERMSIG(status) == (proc->use_SIGKILL ? SIGKILL : SIGQUIT)
gem_userptr_blits: igt_core.c:753: fork_helper_exit_handler: Assertion `ret == 0' failed.
Test assertion failure function igt_stop_helper, file igt_core.c:818:
Last errno: 0, Success
Failed assertion: WIFSIGNALED(status) && WTERMSIG(status) == (proc->use_SIGKILL ? SIGKILL : SIGQUIT)
gem_userptr_blits: igt_core.c:753: fork_helper_exit_handler: Assertion `ret == 0' failed.
Test assertion failure function igt_stop_helper, file igt_core.c:818:
Last errno: 0, Success
Failed assertion: WIFSIGNALED(status) && WTERMSIG(status) == (proc->use_SIGKILL ? SIGKILL : SIGQUIT)
gem_userptr_blits: igt_core.c:753: fork_helper_exit_handler: Assertion `ret == 0' failed.

^Cgem_userptr_blits: igt_core.c:859: children_exit_handler: Assertion `ret == 0' failed.
Aborted (core dumped)

real    12m53.437s
user    0m0.058s
sys     0m2.270s
Comment 3 lu hua 2014-06-27 01:55:34 UTC
It impacts all platforms.
Comment 4 Guo Jinxian 2014-06-30 07:15:26 UTC
System will haven't response after core dumped

[   92.087261] CPU: 5 PID: 4188 Comm: gem_userptr_bli Not tainted 3.16.0-rc2_drm-intel-nightly_1087d4_20140630+ #64
[   92.087726] Hardware name: ASUS All Series/Z87-EXPERT, BIOS 1008 05/17/2013
[   92.088192]  0000000000000000 00000000000280da ffffffff8177f9bf ffff8800880b7000
[   92.088678]  ffffffff8177cf31 0000000000000206 00000000000a7000 0000000000000000
[   92.089204]  01000000000041eb 0000000000000206 ffffffff8132cf0e ffff8800880b4800
[   92.089715] Call Trace:
[   92.090201]  [<ffffffff8177f9bf>] ? dump_stack+0x41/0x51
[   92.090718]  [<ffffffff8177cf31>] ? dump_header.isra.10+0x69/0x191
[   92.091219]  [<ffffffff8132cf0e>] ? ___ratelimit+0xae/0xc8
[   92.091880]  [<ffffffff810cdd59>] ? oom_kill_process+0x76/0x330
[   92.092693]  [<ffffffff810cdb1c>] ? find_lock_task_mm+0x22/0x6e
[   92.093506]  [<ffffffff810ce593>] ? out_of_memory+0x41f/0x452
[   92.094321]  [<ffffffff810d1eca>] ? __alloc_pages_nodemask+0x6ea/0x835
[   92.095144]  [<ffffffff81100bed>] ? alloc_pages_vma+0x106/0x162
[   92.095970]  [<ffffffff810eb5a8>] ? handle_mm_fault+0x2f8/0x835
[   92.096798]  [<ffffffff8107b947>] ? rcu_note_context_switch+0x33/0x7c
[   92.097629]  [<ffffffff810305ab>] ? __do_page_fault+0x42e/0x47b
[   92.098505]  [<ffffffff8109f11c>] ? __audit_syscall_exit+0x209/0x225
[   92.099337]  [<ffffffff8100d1ef>] ? syscall_trace_leave+0x34/0x15d
[   92.100182]  [<ffffffff81044155>] ? recalc_sigpending+0x12/0x41
[   92.100770]  [<ffffffff81001f90>] ? restore_sigcontext+0x13c/0x142
[   92.101290]  [<ffffffff8104745f>] ? restore_altstack+0x10/0x22
[   92.101828]  [<ffffffff81786f62>] ? page_fault+0x22/0x30
[   92.102342] Mem-Info:
[   92.102873] Node 0 DMA per-cpu:
[   92.103383] CPU    0: hi:    0, btch:   1 usd:   0
[   92.103915] CPU    1: hi:    0, btch:   1 usd:   0
[   92.104421] CPU    2: hi:    0, btch:   1 usd:   0
[   92.104946] CPU    3: hi:    0, btch:   1 usd:   0
[   92.105443] CPU    4: hi:    0, btch:   1 usd:   0
[   92.105960] CPU    5: hi:    0, btch:   1 usd:   0
[   92.106449] CPU    6: hi:    0, btch:   1 usd:   0
[   92.106974] CPU    7: hi:    0, btch:   1 usd:   0
[   92.107455] Node 0 DMA32 per-cpu:
[   92.107971] CPU    0: hi:  186, btch:  31 usd:   0
[   92.108451] CPU    1: hi:  186, btch:  31 usd:   0
[   92.108948] CPU    2: hi:  186, btch:  31 usd:   0
[   92.109422] CPU    3: hi:  186, btch:  31 usd:   0
[   92.109912] CPU    4: hi:  186, btch:  31 usd:   0
[   92.110381] CPU    5: hi:  186, btch:  31 usd:   0
[   92.110872] CPU    6: hi:  186, btch:  31 usd:   0
[   92.111336] CPU    7: hi:  186, btch:  31 usd:   0
[   92.111838] Node 0 Normal per-cpu:
[   92.112303] CPU    0: hi:  186, btch:  31 usd:   0
[   92.112796] CPU    1: hi:  186, btch:  31 usd:   0
[   92.113264] CPU    2: hi:  186, btch:  31 usd:   0
[   92.113749] CPU    3: hi:  186, btch:  31 usd:   0
[   92.114213] CPU    4: hi:  186, btch:  31 usd:   0
[   92.114714] CPU    5: hi:  186, btch:  31 usd:   0
[   92.115171] CPU    6: hi:  186, btch:  31 usd:   9
[   92.115647] CPU    7: hi:  186, btch:  31 usd:  21
[   92.116102] active_anon:1631923 inactive_anon:279307 isolated_anon:160
 active_file:65 inactive_file:84 isolated_file:0
 unevictable:0 dirty:20 writeback:244868 unstable:0
 free:12213 slab_reclaimable:3755 slab_unreclaimable:17855
 mapped:133 shmem:169 pagetables:10479 bounce:0
 free_cma:0
[   92.119087] Node 0 DMA free:15884kB min:20kB low:24kB high:28kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:15984kB managed:15900kB mlocked:0kB dirty:0kB writeback:0kB mapped:0kB shmem:0kB slab_reclaimable:0kB slab_unreclaimable:16kB kernel_stack:0kB pagetables:0kB unstable:0kB bounce:0kB free_cma:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? yes
[   92.120794] lowmem_reserve[]: 0 2126 7630 7630
[   92.121353] Node 0 DMA32 free:25116kB min:3112kB low:3888kB high:4668kB active_anon:1721556kB inactive_anon:430468kB active_file:0kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:2279440kB managed:2200672kB mlocked:0kB dirty:20kB writeback:292924kB mapped:400kB shmem:0kB slab_reclaimable:2256kB slab_unreclaimable:5984kB kernel_stack:416kB pagetables:11460kB unstable:0kB bounce:0kB free_cma:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? yes
[   92.124714] lowmem_reserve[]: 0 0 5504 5504
[   92.125758] Node 0 Normal free:8172kB min:8056kB low:10068kB high:12084kB active_anon:4806088kB inactive_anon:687104kB active_file:316kB inactive_file:348kB unevictable:0kB isolated(anon):640kB isolated(file):0kB present:5765120kB managed:5636604kB mlocked:0kB dirty:60kB writeback:684388kB mapped:132kB shmem:676kB slab_reclaimable:12764kB slab_unreclaimable:65192kB kernel_stack:2944kB pagetables:30456kB unstable:0kB bounce:0kB free_cma:0kB writeback_tmp:0kB pages_scanned:35982 all_unreclaimable? no
[   92.130422] lowmem_reserve[]: 0 0 0 0
[   92.131627] Node 0 DMA: 1*4kB (U) 1*8kB (U) 0*16kB 0*32kB 2*64kB (U) 1*128kB (U) 1*256kB (U) 0*512kB 1*1024kB (U) 1*2048kB (R) 3*4096kB (M) = 15884kB
[   92.132884] Node 0 DMA32: 107*4kB (UE) 26*8kB (UEM) 27*16kB (UEM) 25*32kB (UEM) 28*64kB (UEM) 5*128kB (UM) 3*256kB (UE) 2*512kB (EM) 1*1024kB (U) 1*2048kB (M) 4*4096kB (EMR) = 25548kB
[   92.135340] Node 0 Normal: 1016*4kB (UE) 1*8kB (R) 1*16kB (R) 1*32kB (R) 0*64kB 0*128kB 0*256kB 1*512kB (R) 1*1024kB (R) 1*2048kB (R) 0*4096kB = 7704kB
[   92.136652] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB
[   92.137943] 265753 total pagecache pages
[   92.139276] 265032 pages in swap cache
[   92.140649] Swap cache stats: add 542855, delete 277824, find 6076/7679
[   92.142063] Free swap  = 268kB
[   92.143466] Total swap = 2047996kB
[   92.144843] 2015136 pages RAM
[   92.146230] 0 pages HighMem/MovableOnly
[   92.147619] 32129 pages reserved
[   92.149005] [ pid ]   uid  tgid total_vm      rss nr_ptes swapents oom_score_adj name
[   92.150347] [ 2671]     0  2671    76364       20     157       75             0 systemd-journal
[   92.151758] [ 3630]     0  3630    10307        1      23      194         -1000 systemd-udevd
[   92.153156] [ 3672]     0  3672    24468        0      22       46             0 lvmetad
[   92.154549] [ 3700]     0  3700    12233        0      22      102         -1000 auditd
[   92.155944] [ 3710]     0  3710    20055        1       8       40             0 audispd
[   92.157392] [ 3711]     0  3711     5995        0      27       43             0 sedispatch
[   92.158845] [ 3716]     0  3716     4253        1      20      107             0 alsactl
[   92.160306] [ 3718]     0  3718     9256        0      36       68             0 abrtd
[   92.161772] [ 3719]     0  3719     8727        0      35       60             0 abrt-watch-log
[   92.163253] [ 3721]     0  3721     8727        1      35       58             0 abrt-watch-log
[   92.164806] [ 3722]     0  3722     4799        1      21       53             0 irqbalance
[   92.166271] [ 3727]     0  3727     6071        1      16      152             0 smartd
[   92.167736] [ 3731]     0  3731     1077        0       9       20             0 rngd
[   92.169196] [ 3732]     0  3732     8252        1      21       76             0 systemd-logind
[   92.170671] [ 3735]     0  3735    65774       25      29      140             0 rsyslogd
[   92.172155] [ 3736]     0  3736    66133        1      60      393             0 NetworkManager
[   92.173666] [ 3737]    70  3737     7018       29      30       36             0 avahi-daemon
[   92.175174] [ 3739]    81  3739     6121        1      16      125          -900 dbus-daemon
[   92.176714] [ 3749]   993  3749     5649        0      15       58             0 chronyd
[   92.178262] [ 3762]     0  3762     1751        1      10       31             0 mcelog
[   92.179787] [ 3765]    70  3765     6987        0      21       50             0 avahi-daemon
[   92.181321] [ 3784]   999  3784   131508        1      52      855             0 polkitd
[   92.182850] [ 3792]     0  3792    40409        1      68      185          -900 modem-manager
[   92.184384] [ 3821]     0  3821    25514        1      50     3113             0 dhclient
[   92.185935] [ 3829]     0  3829   106853        1     141     1192             0 libvirtd
[   92.187511] [ 3842]     0  3842    20106        1      42      201         -1000 sshd
[   92.189111] [ 3844]    32  3844     9424        0      22       94             0 rpcbind
[   92.190723] [ 3870]     0  3870    25193       24      49      458             0 sendmail
[   92.192348] [ 3885]    51  3885    21455        1      42      378             0 sendmail
[   92.193970] [ 3965]     0  3965     5932        0      17       48             0 atd
[   92.195557] [ 3966]     0  3966     5129        1      15      152             0 crond
[   92.197225] [ 3971]     0  3971    27500        1      11       28             0 agetty
[   92.198886] [ 3974]     0  3974    32258        2      65      283             0 sshd
[   92.200539] [ 3989]     0  3989    29264        1      20      509             0 bash
[   92.202183] [ 4161]     0  4161    18498        0      36      224             0 ssh
[   92.203815] [ 4167]     0  4167   197091    68867     401   111641          1000 gem_userptr_bli
[   92.205396] [ 4168]     0  4168   197091   126465     398    54049          1000 gem_userptr_bli
[   92.206913] [ 4169]     0  4169   197091   126105     398    54409          1000 gem_userptr_bli
[   92.208332] [ 4170]     0  4170   197091        7     398      788          1000 gem_userptr_bli
[   92.209718] [ 4171]     0  4171   197091   162273     398    18259          1000 gem_userptr_bli
[   92.211060] [ 4172]     0  4172   197091        7     398      788          1000 gem_userptr_bli
[   92.212353] [ 4173]     0  4173   197091   124707     398    55807          1000 gem_userptr_bli
[   92.213600] [ 4174]     0  4174   197091        7     398      788          1000 gem_userptr_bli
[   92.214797] [ 4175]     0  4175   197091        7     398      788          1000 gem_userptr_bli
[   92.215983] [ 4176]     0  4176   197091   166496     398    14009          1000 gem_userptr_bli
[   92.217128] [ 4177]     0  4177   197091        7     398     1044          1000 gem_userptr_bli
[   92.218220] [ 4178]     0  4178   197091   125974     398    54543          1000 gem_userptr_bli
[   92.219262] [ 4179]     0  4179   197091        7     398     1812          1000 gem_userptr_bli
[   92.220021] [ 4180]     0  4180   197091   155519     398    24994          1000 gem_userptr_bli
[   92.220663] [ 4181]     0  4181   197091   154249     398    26268          1000 gem_userptr_bli
[   92.221510] [ 4182]     0  4182   197091     4962     398     2489          1000 gem_userptr_bli
[   92.222437] [ 4183]     0  4183   197091   157255     398    23262          1000 gem_userptr_bli
[   92.223318] [ 4186]     0  4186   197091     6242     398     2489          1000 gem_userptr_bli
[   92.224143] [ 4187]     0  4187   197091     6754     398     2489          1000 gem_userptr_bli
[   92.224909] [ 4188]     0  4188   197091   134130     398    26635          1000 gem_userptr_bli
[   92.225659] [ 4189]     0  4189   197091     7266     398     2489          1000 gem_userptr_bli
[   92.226403] [ 4190]     0  4190   197091   143706     398    17632          1000 gem_userptr_bli
[   92.227133] [ 4191]     0  4191   197091     7778     398     2489          1000 gem_userptr_bli
[   92.227843] Out of memory: Kill process 4178 (gem_userptr_bli) score 1070 or sacrifice child
Comment 5 lu hua 2014-07-08 01:26:15 UTC
(In reply to comment #4)
> System will haven't response after core dumped
> 
> [   92.087261] CPU: 5 PID: 4188 Comm: gem_userptr_bli Not tainted
> 3.16.0-rc2_drm-intel-nightly_1087d4_20140630+ #64
> [   92.087726] Hardware name: ASUS All Series/Z87-EXPERT, BIOS 1008
> 05/17/2013
> [   92.088192]  0000000000000000 00000000000280da ffffffff8177f9bf
> ffff8800880b7000
> [   92.088678]  ffffffff8177cf31 0000000000000206 00000000000a7000
> 0000000000000000
> [   92.089204]  01000000000041eb 0000000000000206 ffffffff8132cf0e
> ffff8800880b4800
> [   92.089715] Call Trace:
> [   92.090201]  [<ffffffff8177f9bf>] ? dump_stack+0x41/0x51
> [   92.090718]  [<ffffffff8177cf31>] ? dump_header.isra.10+0x69/0x191
> [   92.091219]  [<ffffffff8132cf0e>] ? ___ratelimit+0xae/0xc8
> [   92.091880]  [<ffffffff810cdd59>] ? oom_kill_process+0x76/0x330
> [   92.092693]  [<ffffffff810cdb1c>] ? find_lock_task_mm+0x22/0x6e
> [   92.093506]  [<ffffffff810ce593>] ? out_of_memory+0x41f/0x452
> [   92.094321]  [<ffffffff810d1eca>] ? __alloc_pages_nodemask+0x6ea/0x835
> [   92.095144]  [<ffffffff81100bed>] ? alloc_pages_vma+0x106/0x162
> [   92.095970]  [<ffffffff810eb5a8>] ? handle_mm_fault+0x2f8/0x835
> [   92.096798]  [<ffffffff8107b947>] ? rcu_note_context_switch+0x33/0x7c
> [   92.097629]  [<ffffffff810305ab>] ? __do_page_fault+0x42e/0x47b
> [   92.098505]  [<ffffffff8109f11c>] ? __audit_syscall_exit+0x209/0x225
> [   92.099337]  [<ffffffff8100d1ef>] ? syscall_trace_leave+0x34/0x15d
> [   92.100182]  [<ffffffff81044155>] ? recalc_sigpending+0x12/0x41
> [   92.100770]  [<ffffffff81001f90>] ? restore_sigcontext+0x13c/0x142
> [   92.101290]  [<ffffffff8104745f>] ? restore_altstack+0x10/0x22
> [   92.101828]  [<ffffffff81786f62>] ? page_fault+0x22/0x30
> [   92.102342] Mem-Info:
> [   92.102873] Node 0 DMA per-cpu:
> [   92.103383] CPU    0: hi:    0, btch:   1 usd:   0
> [   92.103915] CPU    1: hi:    0, btch:   1 usd:   0
> [   92.104421] CPU    2: hi:    0, btch:   1 usd:   0
> [   92.104946] CPU    3: hi:    0, btch:   1 usd:   0
> [   92.105443] CPU    4: hi:    0, btch:   1 usd:   0
> [   92.105960] CPU    5: hi:    0, btch:   1 usd:   0
> [   92.106449] CPU    6: hi:    0, btch:   1 usd:   0
> [   92.106974] CPU    7: hi:    0, btch:   1 usd:   0
> [   92.107455] Node 0 DMA32 per-cpu:
> [   92.107971] CPU    0: hi:  186, btch:  31 usd:   0
> [   92.108451] CPU    1: hi:  186, btch:  31 usd:   0
> [   92.108948] CPU    2: hi:  186, btch:  31 usd:   0
> [   92.109422] CPU    3: hi:  186, btch:  31 usd:   0
> [   92.109912] CPU    4: hi:  186, btch:  31 usd:   0
> [   92.110381] CPU    5: hi:  186, btch:  31 usd:   0
> [   92.110872] CPU    6: hi:  186, btch:  31 usd:   0
> [   92.111336] CPU    7: hi:  186, btch:  31 usd:   0
> [   92.111838] Node 0 Normal per-cpu:
> [   92.112303] CPU    0: hi:  186, btch:  31 usd:   0
> [   92.112796] CPU    1: hi:  186, btch:  31 usd:   0
> [   92.113264] CPU    2: hi:  186, btch:  31 usd:   0
> [   92.113749] CPU    3: hi:  186, btch:  31 usd:   0
> [   92.114213] CPU    4: hi:  186, btch:  31 usd:   0
> [   92.114714] CPU    5: hi:  186, btch:  31 usd:   0
> [   92.115171] CPU    6: hi:  186, btch:  31 usd:   9
> [   92.115647] CPU    7: hi:  186, btch:  31 usd:  21
> [   92.116102] active_anon:1631923 inactive_anon:279307 isolated_anon:160
>  active_file:65 inactive_file:84 isolated_file:0
>  unevictable:0 dirty:20 writeback:244868 unstable:0
>  free:12213 slab_reclaimable:3755 slab_unreclaimable:17855
>  mapped:133 shmem:169 pagetables:10479 bounce:0
>  free_cma:0
> [   92.119087] Node 0 DMA free:15884kB min:20kB low:24kB high:28kB
> active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB
> unevictable:0kB isolated(anon):0kB isolated(file):0kB present:15984kB
> managed:15900kB mlocked:0kB dirty:0kB writeback:0kB mapped:0kB shmem:0kB
> slab_reclaimable:0kB slab_unreclaimable:16kB kernel_stack:0kB pagetables:0kB
> unstable:0kB bounce:0kB free_cma:0kB writeback_tmp:0kB pages_scanned:0
> all_unreclaimable? yes
> [   92.120794] lowmem_reserve[]: 0 2126 7630 7630
> [   92.121353] Node 0 DMA32 free:25116kB min:3112kB low:3888kB high:4668kB
> active_anon:1721556kB inactive_anon:430468kB active_file:0kB
> inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB
> present:2279440kB managed:2200672kB mlocked:0kB dirty:20kB
> writeback:292924kB mapped:400kB shmem:0kB slab_reclaimable:2256kB
> slab_unreclaimable:5984kB kernel_stack:416kB pagetables:11460kB unstable:0kB
> bounce:0kB free_cma:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable?
> yes
> [   92.124714] lowmem_reserve[]: 0 0 5504 5504
> [   92.125758] Node 0 Normal free:8172kB min:8056kB low:10068kB high:12084kB
> active_anon:4806088kB inactive_anon:687104kB active_file:316kB
> inactive_file:348kB unevictable:0kB isolated(anon):640kB isolated(file):0kB
> present:5765120kB managed:5636604kB mlocked:0kB dirty:60kB
> writeback:684388kB mapped:132kB shmem:676kB slab_reclaimable:12764kB
> slab_unreclaimable:65192kB kernel_stack:2944kB pagetables:30456kB
> unstable:0kB bounce:0kB free_cma:0kB writeback_tmp:0kB pages_scanned:35982
> all_unreclaimable? no
> [   92.130422] lowmem_reserve[]: 0 0 0 0
> [   92.131627] Node 0 DMA: 1*4kB (U) 1*8kB (U) 0*16kB 0*32kB 2*64kB (U)
> 1*128kB (U) 1*256kB (U) 0*512kB 1*1024kB (U) 1*2048kB (R) 3*4096kB (M) =
> 15884kB
> [   92.132884] Node 0 DMA32: 107*4kB (UE) 26*8kB (UEM) 27*16kB (UEM) 25*32kB
> (UEM) 28*64kB (UEM) 5*128kB (UM) 3*256kB (UE) 2*512kB (EM) 1*1024kB (U)
> 1*2048kB (M) 4*4096kB (EMR) = 25548kB
> [   92.135340] Node 0 Normal: 1016*4kB (UE) 1*8kB (R) 1*16kB (R) 1*32kB (R)
> 0*64kB 0*128kB 0*256kB 1*512kB (R) 1*1024kB (R) 1*2048kB (R) 0*4096kB =
> 7704kB
> [   92.136652] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0
> hugepages_size=2048kB
> [   92.137943] 265753 total pagecache pages
> [   92.139276] 265032 pages in swap cache
> [   92.140649] Swap cache stats: add 542855, delete 277824, find 6076/7679
> [   92.142063] Free swap  = 268kB
> [   92.143466] Total swap = 2047996kB
> [   92.144843] 2015136 pages RAM
> [   92.146230] 0 pages HighMem/MovableOnly
> [   92.147619] 32129 pages reserved
> [   92.149005] [ pid ]   uid  tgid total_vm      rss nr_ptes swapents
> oom_score_adj name
> [   92.150347] [ 2671]     0  2671    76364       20     157       75       
> 0 systemd-journal
> [   92.151758] [ 3630]     0  3630    10307        1      23      194       
> -1000 systemd-udevd
> [   92.153156] [ 3672]     0  3672    24468        0      22       46       
> 0 lvmetad
> [   92.154549] [ 3700]     0  3700    12233        0      22      102       
> -1000 auditd
> [   92.155944] [ 3710]     0  3710    20055        1       8       40       
> 0 audispd
> [   92.157392] [ 3711]     0  3711     5995        0      27       43       
> 0 sedispatch
> [   92.158845] [ 3716]     0  3716     4253        1      20      107       
> 0 alsactl
> [   92.160306] [ 3718]     0  3718     9256        0      36       68       
> 0 abrtd
> [   92.161772] [ 3719]     0  3719     8727        0      35       60       
> 0 abrt-watch-log
> [   92.163253] [ 3721]     0  3721     8727        1      35       58       
> 0 abrt-watch-log
> [   92.164806] [ 3722]     0  3722     4799        1      21       53       
> 0 irqbalance
> [   92.166271] [ 3727]     0  3727     6071        1      16      152       
> 0 smartd
> [   92.167736] [ 3731]     0  3731     1077        0       9       20       
> 0 rngd
> [   92.169196] [ 3732]     0  3732     8252        1      21       76       
> 0 systemd-logind
> [   92.170671] [ 3735]     0  3735    65774       25      29      140       
> 0 rsyslogd
> [   92.172155] [ 3736]     0  3736    66133        1      60      393       
> 0 NetworkManager
> [   92.173666] [ 3737]    70  3737     7018       29      30       36       
> 0 avahi-daemon
> [   92.175174] [ 3739]    81  3739     6121        1      16      125       
> -900 dbus-daemon
> [   92.176714] [ 3749]   993  3749     5649        0      15       58       
> 0 chronyd
> [   92.178262] [ 3762]     0  3762     1751        1      10       31       
> 0 mcelog
> [   92.179787] [ 3765]    70  3765     6987        0      21       50       
> 0 avahi-daemon
> [   92.181321] [ 3784]   999  3784   131508        1      52      855       
> 0 polkitd
> [   92.182850] [ 3792]     0  3792    40409        1      68      185       
> -900 modem-manager
> [   92.184384] [ 3821]     0  3821    25514        1      50     3113       
> 0 dhclient
> [   92.185935] [ 3829]     0  3829   106853        1     141     1192       
> 0 libvirtd
> [   92.187511] [ 3842]     0  3842    20106        1      42      201       
> -1000 sshd
> [   92.189111] [ 3844]    32  3844     9424        0      22       94       
> 0 rpcbind
> [   92.190723] [ 3870]     0  3870    25193       24      49      458       
> 0 sendmail
> [   92.192348] [ 3885]    51  3885    21455        1      42      378       
> 0 sendmail
> [   92.193970] [ 3965]     0  3965     5932        0      17       48       
> 0 atd
> [   92.195557] [ 3966]     0  3966     5129        1      15      152       
> 0 crond
> [   92.197225] [ 3971]     0  3971    27500        1      11       28       
> 0 agetty
> [   92.198886] [ 3974]     0  3974    32258        2      65      283       
> 0 sshd
> [   92.200539] [ 3989]     0  3989    29264        1      20      509       
> 0 bash
> [   92.202183] [ 4161]     0  4161    18498        0      36      224       
> 0 ssh
> [   92.203815] [ 4167]     0  4167   197091    68867     401   111641       
> 1000 gem_userptr_bli
> [   92.205396] [ 4168]     0  4168   197091   126465     398    54049       
> 1000 gem_userptr_bli
> [   92.206913] [ 4169]     0  4169   197091   126105     398    54409       
> 1000 gem_userptr_bli
> [   92.208332] [ 4170]     0  4170   197091        7     398      788       
> 1000 gem_userptr_bli
> [   92.209718] [ 4171]     0  4171   197091   162273     398    18259       
> 1000 gem_userptr_bli
> [   92.211060] [ 4172]     0  4172   197091        7     398      788       
> 1000 gem_userptr_bli
> [   92.212353] [ 4173]     0  4173   197091   124707     398    55807       
> 1000 gem_userptr_bli
> [   92.213600] [ 4174]     0  4174   197091        7     398      788       
> 1000 gem_userptr_bli
> [   92.214797] [ 4175]     0  4175   197091        7     398      788       
> 1000 gem_userptr_bli
> [   92.215983] [ 4176]     0  4176   197091   166496     398    14009       
> 1000 gem_userptr_bli
> [   92.217128] [ 4177]     0  4177   197091        7     398     1044       
> 1000 gem_userptr_bli
> [   92.218220] [ 4178]     0  4178   197091   125974     398    54543       
> 1000 gem_userptr_bli
> [   92.219262] [ 4179]     0  4179   197091        7     398     1812       
> 1000 gem_userptr_bli
> [   92.220021] [ 4180]     0  4180   197091   155519     398    24994       
> 1000 gem_userptr_bli
> [   92.220663] [ 4181]     0  4181   197091   154249     398    26268       
> 1000 gem_userptr_bli
> [   92.221510] [ 4182]     0  4182   197091     4962     398     2489       
> 1000 gem_userptr_bli
> [   92.222437] [ 4183]     0  4183   197091   157255     398    23262       
> 1000 gem_userptr_bli
> [   92.223318] [ 4186]     0  4186   197091     6242     398     2489       
> 1000 gem_userptr_bli
> [   92.224143] [ 4187]     0  4187   197091     6754     398     2489       
> 1000 gem_userptr_bli
> [   92.224909] [ 4188]     0  4188   197091   134130     398    26635       
> 1000 gem_userptr_bli
> [   92.225659] [ 4189]     0  4189   197091     7266     398     2489       
> 1000 gem_userptr_bli
> [   92.226403] [ 4190]     0  4190   197091   143706     398    17632       
> 1000 gem_userptr_bli
> [   92.227133] [ 4191]     0  4191   197091     7778     398     2489       
> 1000 gem_userptr_bli
> [   92.227843] Out of memory: Kill process 4178 (gem_userptr_bli) score 1070
> or sacrifice child


This case fails with OOM killer, and system is no response.
It blocks testing.
Comment 6 Chris Wilson 2014-07-11 10:00:38 UTC
*** Bug 79245 has been marked as a duplicate of this bug. ***
Comment 7 Chris Wilson 2014-07-11 10:00:45 UTC
*** Bug 79242 has been marked as a duplicate of this bug. ***
Comment 8 Chris Wilson 2014-07-11 10:00:51 UTC
*** Bug 79237 has been marked as a duplicate of this bug. ***
Comment 9 Chris Wilson 2014-07-11 10:29:51 UTC
commit 9344aa78e8ad1eb36e7cf17686907d4259d34235
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Fri Jul 11 10:16:54 2014 +0100

    igt/gem_userptr_blits: Shared memory allocations
    
    The forked tests allocate the bo (and thus for userptr, the memory) in
    the parent and pass them to all children. The difference for userptr is
    that we allocate system memory which the kernel then copies into each
    child. As the children need to access the memory for their checks, it
    does need to be shared - so allocate the userptr from shared memory!
    
    Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=80208
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Comment 10 Guo Jinxian 2014-07-14 07:21:05 UTC
Verified on latest -nightly(271bff129a641b5b35d99c9eb0ceb866ca42f692)

root@x-byt06:/GFX/Test/Intel_gpu_tools/intel-gpu-tools/tests# time ./gem_userptr_blits --run-subtest forked-sync-interruptible
IGT-Version: 1.7-ge74dd22 (x86_64) (Linux: 3.16.0-rc4_drm-intel-nightly_271bff_20140714+ x86_64)
Aperture size is 2048 MiB
Total RAM is 1894 MiB
Testing unsynchronized mappings...
Testing synchronized mappings...
Subtest forked-sync-interruptible: SUCCESS

real    0m0.981s
user    0m0.052s
sys     0m0.965s
Comment 11 Jari Tahvanainen 2016-10-19 09:21:12 UTC
Closing verified+fixed. Fixed on igt with commit 9344aa7.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.