From mboxrd@z Thu Jan 1 00:00:00 1970 From: tim.gore@intel.com Subject: [PATCH 0/2] Disable Android low memory killer Date: Fri, 26 Sep 2014 10:27:22 +0100 Message-ID: <1411723644-26558-1-git-send-email-tim.gore@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTP id 64D356E1C3 for ; Fri, 26 Sep 2014 02:27:26 -0700 (PDT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org From: Tim Gore For some tests that put pressure on memory, the Android lowmemorykiller needs to be disabled for the test to run to completion. The first patch is a simple bit of preparation to ensure that all (well written) "simple" tests exit via a call to igt_exit, in the same way as tests with subtests do. This is to make sure we can clean up by re-enabling the lowmemorykiller. The second patch is to disable the Android lowmemorykiller during the common initialisation code (in oom_adjust_for_doom to be exact) and to re-enstate it in igt_exit. Tim Gore (2): lib/igt_core: make single/simple tests use igt_exit lib/igt_core.c: disable lowmemorykiller during tests lib/igt_core.c | 77 +++++++++++++++++++++++++++++++++++++++++++++++--- lib/igt_core.h | 2 +- tests/igt_simulation.c | 2 +- 3 files changed, 75 insertions(+), 6 deletions(-) -- 2.0.3