Bug 97109 - [IVB][IGT] gem_evict_everything mlocked-* killed due to out of memory?
Summary: [IVB][IGT] gem_evict_everything mlocked-* killed due to out of memory?
Status: CLOSED DUPLICATE of bug 89928
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Humberto Israel Perez Rodriguez
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
: 97835 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-07-28 12:49 UTC by cprigent
Modified: 2018-02-13 16:23 UTC (History)
1 user (show)

See Also:
i915 platform: BYT, IVB
i915 features: GEM/Other


Attachments
IVB-gem_evict_everything__mlocked-kern.log (195.59 KB, text/plain)
2016-07-28 12:49 UTC, cprigent
no flags Details

Description cprigent 2016-07-28 12:49:20 UTC
Created attachment 125371 [details]
IVB-gem_evict_everything__mlocked-kern.log

Platform: IVB
CPU: Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz (family 6, model 58, stepping 9)
Motherboard version: DH77EB
GPU: Intel® HD Graphics 4000 - Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller
Software
Bios: EBH7710H.86A.0096.2012.1012.1645
Linux distribution: Ubuntu 16.04 64 bits
Kernel: 4.7.0-rc7 7eeb04a from http://cgit.freedesktop.org/drm-intel/
  commit 7eeb04a101316645916d4d9df058a9341797f1af
  Author: Chris Wilson <chris@chris-wilson.co.uk>
  Date:   Sun Jul 24 11:00:31 2016 +0100
  drm-intel-nightly: 2016y-07m-24d-09h-59m-54s UTC integration manifest
drm: libdrm-2.4.70 0caa84c from git://anongit.freedesktop.org/mesa/drm
mesa: mesa-11.2.2 3a9f628from git://anongit.freedesktop.org/mesa/mesa
cairo: 1.15.2 db8a7f1 from git://anongit.freedesktop.org/cairo
xserver: xorg-server-1.18.0-497 0b2f308 from git://git.freedesktop.org/git/xorg/xserver
xf86-video-intel: 2.99.917-687 6988b87 from git://git.freedesktop.org/git/xorg/driver/xf86-video-intel
libva: libva-1.7.0-26 c36971c from git://git.freedesktop.org/git/vaapi/libva
vaapi-intel-driver: 1.7.0-58 e554446 from git://git.freedesktop.org/git/vaapi/intel-driver
Intel-Gpu-Tools 1.15-140 e3abb20 from http://anongit.freedesktop.org/git/xorg/app/intel-gpu-tools.git

Steps:
------
1. Execute IGT tests:
# ./gem_evict_everything --r mlocked-interruptible
./gem_evict_everything --r mlocked-normal

Actual results:
---------------
1. Process is killed:
# ./gem_evict_everything --r mlocked-interruptible
IGT-Version: 1.15-ge3abb20 (x86_64) (Linux: 4.7.0-nightly+ x86_64)
Killed
# ./gem_evict_everything --r mlocked-normal
IGT-Version: 1.15-ge3abb20 (x86_64) (Linux: 4.7.0-nightly+ x86_64)
Killed

Expected result:
----------------
1. Tests are skip due to memory pre-condition not met?
Comment 1 Chris Wilson 2016-07-28 16:49:32 UTC
That's the typical failure pattern for the Spanish OOM - large amounts of slab_unreclaimable, not much memory pinned to the GPU, no swap used.
Comment 2 yann 2016-10-06 10:17:37 UTC
*** Bug 97835 has been marked as a duplicate of this bug. ***
Comment 3 Chris Wilson 2016-10-06 11:39:36 UTC
But note that a GPU hang is always unexpected, even if we oom, we should not lose data (in that case presumably the context state).
Comment 4 Jari Tahvanainen 2017-03-29 06:10:09 UTC
Ricardo et.al. - please make check if one still has Hang or Oops with the latest kernel.
Comment 5 Ricardo 2017-04-10 13:56:36 UTC
Humberto please restest
Comment 6 Ricardo Madrigal 2017-08-11 20:00:04 UTC
This issue is still present with the follow test: 

./gem_evict_everything --r mlocked-normal

(gem_evict_everything:24389) drmtest-DEBUG: Test requirement passed: !(fd<0)
(gem_evict_everything:24389) igt-gt-DEBUG: Test requirement passed: !(gen < 5)
(gem_evict_everything:24389) igt-core-DEBUG: Exiting with status code 0
(gem_evict_everything:24389) igt-debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0'
IGT-Version: 1.19-gc227059 (x86_64) (Linux: 4.13.0-rc4-drm-tip-ww32-commit-fbb8288+ x86_64)
(gem_evict_everything:24520) drmtest-DEBUG: Test requirement passed: !(fd<0)
(gem_evict_everything:24520) igt-debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0'
(gem_evict_everything:24520) drmtest-DEBUG: Test requirement passed: is_i915_device(fd) && has_known_intel_chipset(fd)
(gem_evict_everything:24520) ioctl-wrappers-DEBUG: Test requirement passed: err == 0
(gem_evict_everything:24520) igt-core-DEBUG: Starting subtest: mlocked-normal
(gem_evict_everything:24520) intel-os-DEBUG: Checking 1536 surfaces of size 1048576 bytes (total 1611399168) against RAM
(gem_evict_everything:24520) drmtest-DEBUG: Test requirement passed: !(fd<0)
(gem_evict_everything:24520) igt-debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0'
(gem_evict_everything:24520) intel-os-DEBUG: Test requirement passed: __intel_check_memory(count, size, mode, &required, &total)
(gem_evict_everything:24520) igt-core-DEBUG: Test requirement passed: !igt_run_in_simulation()
(gem_evict_everything:24520) drmtest-DEBUG: Test requirement passed: !(fd<0)
(gem_evict_everything:24520) igt-debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0'
(gem_evict_everything:24520) DEBUG: Test requirement passed: pin > sz
(gem_evict_everything:24520) DEBUG: Pinning [2061, 3597] MiB
child 0 died with signal 9, Killed
Subtest mlocked-normal: FAIL (1.594s)
(gem_evict_everything:24520) drmtest-DEBUG: Test requirement passed: !(fd<0)
(gem_evict_everything:24520) igt-gt-DEBUG: Test requirement passed: !(gen < 5)
(gem_evict_everything:24520) igt-core-DEBUG: Exiting with status code 137
(gem_evict_everything:24520) igt-debugfs-DEBUG: Opening debugfs directory '/sys/kernel/debug/dri/0'

Using this configuration:
hostname                    : IVB-2
architecture                : x86_64
os version                  : Ubuntu 16.10
os codename                 : yakkety
kernel driver               : i915
bios revision               : 15.72
bios release date           : 02/10/2014
ksc                         : 81.37
hardware acceleration       : disabled
swap partition              : enabled on (/dev/sda3)

======================================
        Graphic drivers
======================================
grep: /opt/X11R7/var/log/Xorg.0.log: No such file or directory
libdrm                    : 2.4.70
libva                       : 1.7.1-2
vaapi (intel-driver)        : 1.7.1
cairo                       : 1.14.6-1build1
intel-gpu-tools             : 1.16-1

======================================
             Hardware
======================================
platform                   : Ivy Bridge
motherboard model          : HPEliteBookRevolve810G1
motherboard id             : 18F8
form factor                : Notebook
manufacturer               : Hewlett-Packard
cpu family                 : Core i5
cpu family id              : 6
cpu information            : Intel(R) Core(TM) i5-3437U CPU @ 1.90GHz
gpu card                   : Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09) (prog-if 00 [VGA controller])
memory ram                 : 3.7 GB
max memory ram             : 16 GB
cpu thread                 : 4
cpu core                   : 2
cpu model                  : 58
cpu stepping               : 9
socket                     : Other
signature                  : Type 0, Family 6, Model 58, Stepping 9
hard drive                 : 119GiB (128GB)
current cd clock frequency : 400000 kHz
maximum cd clock frequency : 400000 kHz
displays connected         : LVDS-1 DP-3

======================================
Comment 7 Elizabeth 2018-01-09 15:34:11 UTC

*** This bug has been marked as a duplicate of bug 89928 ***


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.