* [i-g-t v2] tests/intel/xe_madvise: Skip purge tests under low RAM
@ 2026-06-12 4:50 Arvind Yadav
2026-06-12 6:52 ` ✓ Xe.CI.BAT: success for tests/intel/xe_madvise: Skip purge tests under low RAM (rev2) Patchwork
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Arvind Yadav @ 2026-06-12 4:50 UTC (permalink / raw)
To: igt-dev; +Cc: nishit.sharma, pravalika.gurram, kamil.konieczny
The purge tests create memory pressure to trigger BO eviction. If the
system is already low on RAM, this extra pressure can push the machine
into OOM and kill the test before it can clean up.
Check available RAM before starting the pressure allocation and skip when
there is not enough memory.
v2:
- Drop unrelated chunk/max_t() changes. (Kamil)
- Keep the original overpressure calculation. (Kamil)
Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com>
Cc: Pravalika Gurram <pravalika.gurram@intel.com>
Cc: Nishit Sharma <nishit.sharma@intel.com>
Signed-off-by: Arvind Yadav <arvind.yadav@intel.com>
---
tests/intel/xe_madvise.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/tests/intel/xe_madvise.c b/tests/intel/xe_madvise.c
index cdb115d7e..3fc8b5f65 100644
--- a/tests/intel/xe_madvise.c
+++ b/tests/intel/xe_madvise.c
@@ -101,11 +101,17 @@ static void trigger_memory_pressure(int fd)
overpressure = mem_size / 2;
if (overpressure < (64 << 20))
overpressure = 64 << 20;
+ max_objs = DIV_ROUND_UP(mem_size + overpressure, chunk);
+
+ /*
+ * Pressure BOs are faulted in and kept alive until cleanup. If the
+ * system is already low on RAM, this can cause OOM.
+ */
+ igt_require_memory(max_objs, chunk, CHECK_RAM);
/* Separate VM so pressure BOs don't interfere with the test */
vm = xe_vm_create(fd, 0, 0);
- max_objs = (mem_size + overpressure) / chunk + 1;
handles = malloc(max_objs * sizeof(*handles));
igt_assert(handles);
--
2.43.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* ✓ Xe.CI.BAT: success for tests/intel/xe_madvise: Skip purge tests under low RAM (rev2)
2026-06-12 4:50 [i-g-t v2] tests/intel/xe_madvise: Skip purge tests under low RAM Arvind Yadav
@ 2026-06-12 6:52 ` Patchwork
2026-06-12 6:55 ` ✓ i915.CI.BAT: " Patchwork
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Patchwork @ 2026-06-12 6:52 UTC (permalink / raw)
To: Arvind Yadav; +Cc: igt-dev
[-- Attachment #1: Type: text/plain, Size: 1180 bytes --]
== Series Details ==
Series: tests/intel/xe_madvise: Skip purge tests under low RAM (rev2)
URL : https://patchwork.freedesktop.org/series/168229/
State : success
== Summary ==
CI Bug Log - changes from XEIGT_8960_BAT -> XEIGTPW_15354_BAT
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Participating hosts (13 -> 11)
------------------------------
Missing (2): bat-lnl-2 bat-wcl-2
Changes
-------
No changes found
Build changes
-------------
* IGT: IGT_8960 -> IGTPW_15354
* Linux: xe-5244-311cbada9202146752938f54503d33980ee4f3f6 -> xe-5246-9ce63e3d9903982c053b125686abcb7a84357ed4
IGTPW_15354: 9be3ae5e6c5fdbdda8310bacb1796c771e05575a @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
IGT_8960: 88bd725754990332efcd158b0429f6ac7fb63862 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
xe-5244-311cbada9202146752938f54503d33980ee4f3f6: 311cbada9202146752938f54503d33980ee4f3f6
xe-5246-9ce63e3d9903982c053b125686abcb7a84357ed4: 9ce63e3d9903982c053b125686abcb7a84357ed4
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_15354/index.html
[-- Attachment #2: Type: text/html, Size: 1739 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* ✓ i915.CI.BAT: success for tests/intel/xe_madvise: Skip purge tests under low RAM (rev2)
2026-06-12 4:50 [i-g-t v2] tests/intel/xe_madvise: Skip purge tests under low RAM Arvind Yadav
2026-06-12 6:52 ` ✓ Xe.CI.BAT: success for tests/intel/xe_madvise: Skip purge tests under low RAM (rev2) Patchwork
@ 2026-06-12 6:55 ` Patchwork
2026-06-12 9:04 ` [i-g-t v2] tests/intel/xe_madvise: Skip purge tests under low RAM Sokolowski, Jan
2026-06-12 9:13 ` Sebastian Brzezinka
3 siblings, 0 replies; 5+ messages in thread
From: Patchwork @ 2026-06-12 6:55 UTC (permalink / raw)
To: Arvind Yadav; +Cc: igt-dev
[-- Attachment #1: Type: text/plain, Size: 1764 bytes --]
== Series Details ==
Series: tests/intel/xe_madvise: Skip purge tests under low RAM (rev2)
URL : https://patchwork.freedesktop.org/series/168229/
State : success
== Summary ==
CI Bug Log - changes from IGT_8960 -> IGTPW_15354
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_15354/index.html
Participating hosts (42 -> 40)
------------------------------
Missing (2): bat-dg2-13 fi-snb-2520m
Known issues
------------
Here are the changes found in IGTPW_15354 that come from known issues:
### IGT changes ###
#### Possible fixes ####
* igt@kms_hdmi_inject@inject-audio:
- fi-tgl-1115g4: [FAIL][1] ([i915#16115]) -> [PASS][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_8960/fi-tgl-1115g4/igt@kms_hdmi_inject@inject-audio.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_15354/fi-tgl-1115g4/igt@kms_hdmi_inject@inject-audio.html
[i915#16115]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/16115
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_8960 -> IGTPW_15354
* Linux: CI_DRM_18667 -> CI_DRM_18668
CI-20190529: 20190529
CI_DRM_18667: d931e7b381f9d86766f3a971a9376e4312745af8 @ git://anongit.freedesktop.org/gfx-ci/linux
CI_DRM_18668: 9ce63e3d9903982c053b125686abcb7a84357ed4 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_15354: 9be3ae5e6c5fdbdda8310bacb1796c771e05575a @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
IGT_8960: 88bd725754990332efcd158b0429f6ac7fb63862 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_15354/index.html
[-- Attachment #2: Type: text/html, Size: 2364 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [i-g-t v2] tests/intel/xe_madvise: Skip purge tests under low RAM
2026-06-12 4:50 [i-g-t v2] tests/intel/xe_madvise: Skip purge tests under low RAM Arvind Yadav
2026-06-12 6:52 ` ✓ Xe.CI.BAT: success for tests/intel/xe_madvise: Skip purge tests under low RAM (rev2) Patchwork
2026-06-12 6:55 ` ✓ i915.CI.BAT: " Patchwork
@ 2026-06-12 9:04 ` Sokolowski, Jan
2026-06-12 9:13 ` Sebastian Brzezinka
3 siblings, 0 replies; 5+ messages in thread
From: Sokolowski, Jan @ 2026-06-12 9:04 UTC (permalink / raw)
To: Yadav, Arvind, igt-dev@lists.freedesktop.org
Cc: Sharma, Nishit, Gurram, Pravalika,
kamil.konieczny@linux.intel.com
Looks good.
Reviewed-by: Jan Sokolowski <jan.sokolowski@intel.com>
> -----Original Message-----
> From: igt-dev <igt-dev-bounces@lists.freedesktop.org> On Behalf Of Arvind
> Yadav
> Sent: Friday, June 12, 2026 6:51 AM
> To: igt-dev@lists.freedesktop.org
> Cc: Sharma, Nishit <nishit.sharma@intel.com>; Gurram, Pravalika
> <pravalika.gurram@intel.com>; kamil.konieczny@linux.intel.com
> Subject: [i-g-t v2] tests/intel/xe_madvise: Skip purge tests under low RAM
>
> The purge tests create memory pressure to trigger BO eviction. If the
> system is already low on RAM, this extra pressure can push the machine
> into OOM and kill the test before it can clean up.
>
> Check available RAM before starting the pressure allocation and skip when
> there is not enough memory.
>
> v2:
> - Drop unrelated chunk/max_t() changes. (Kamil)
> - Keep the original overpressure calculation. (Kamil)
>
> Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com>
> Cc: Pravalika Gurram <pravalika.gurram@intel.com>
> Cc: Nishit Sharma <nishit.sharma@intel.com>
> Signed-off-by: Arvind Yadav <arvind.yadav@intel.com>
> ---
> tests/intel/xe_madvise.c | 8 +++++++-
> 1 file changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/tests/intel/xe_madvise.c b/tests/intel/xe_madvise.c
> index cdb115d7e..3fc8b5f65 100644
> --- a/tests/intel/xe_madvise.c
> +++ b/tests/intel/xe_madvise.c
> @@ -101,11 +101,17 @@ static void trigger_memory_pressure(int fd)
> overpressure = mem_size / 2;
> if (overpressure < (64 << 20))
> overpressure = 64 << 20;
> + max_objs = DIV_ROUND_UP(mem_size + overpressure, chunk);
> +
> + /*
> + * Pressure BOs are faulted in and kept alive until cleanup. If the
> + * system is already low on RAM, this can cause OOM.
> + */
> + igt_require_memory(max_objs, chunk, CHECK_RAM);
>
> /* Separate VM so pressure BOs don't interfere with the test */
> vm = xe_vm_create(fd, 0, 0);
>
> - max_objs = (mem_size + overpressure) / chunk + 1;
> handles = malloc(max_objs * sizeof(*handles));
> igt_assert(handles);
>
> --
> 2.43.0
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [i-g-t v2] tests/intel/xe_madvise: Skip purge tests under low RAM
2026-06-12 4:50 [i-g-t v2] tests/intel/xe_madvise: Skip purge tests under low RAM Arvind Yadav
` (2 preceding siblings ...)
2026-06-12 9:04 ` [i-g-t v2] tests/intel/xe_madvise: Skip purge tests under low RAM Sokolowski, Jan
@ 2026-06-12 9:13 ` Sebastian Brzezinka
3 siblings, 0 replies; 5+ messages in thread
From: Sebastian Brzezinka @ 2026-06-12 9:13 UTC (permalink / raw)
To: Arvind Yadav, igt-dev; +Cc: nishit.sharma, pravalika.gurram, kamil.konieczny
Hi Arvind,
On Fri Jun 12, 2026 at 6:50 AM CEST, Arvind Yadav wrote:
> The purge tests create memory pressure to trigger BO eviction. If the
> system is already low on RAM, this extra pressure can push the machine
> into OOM and kill the test before it can clean up.
>
> Check available RAM before starting the pressure allocation and skip when
> there is not enough memory.
>
> v2:
> - Drop unrelated chunk/max_t() changes. (Kamil)
> - Keep the original overpressure calculation. (Kamil)
>
> Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com>
> Cc: Pravalika Gurram <pravalika.gurram@intel.com>
> Cc: Nishit Sharma <nishit.sharma@intel.com>
> Signed-off-by: Arvind Yadav <arvind.yadav@intel.com>
> ---
Reviewed-by: Sebastian Brzezinka <sebastian.brzezinka@intel.com>
--
Best regards,
Sebastian
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-06-12 9:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-12 4:50 [i-g-t v2] tests/intel/xe_madvise: Skip purge tests under low RAM Arvind Yadav
2026-06-12 6:52 ` ✓ Xe.CI.BAT: success for tests/intel/xe_madvise: Skip purge tests under low RAM (rev2) Patchwork
2026-06-12 6:55 ` ✓ i915.CI.BAT: " Patchwork
2026-06-12 9:04 ` [i-g-t v2] tests/intel/xe_madvise: Skip purge tests under low RAM Sokolowski, Jan
2026-06-12 9:13 ` Sebastian Brzezinka
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.