]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic/551: prevent OOM when running on tmpfs with low memory
authorDaniel Gomez <da.gomez@samsung.com>
Wed, 18 Jun 2025 13:00:12 +0000 (15:00 +0200)
committerZorro Lang <zlang@kernel.org>
Fri, 20 Jun 2025 16:46:47 +0000 (00:46 +0800)
commite17714ed95441bf2a2ee80c6e0f8af3841ffb255
tree38b2d8c615d985e76fa94ca2f50a43b5e4d0640c
parent2bade810290c51ab5086e5291b824d56252ac9e2
generic/551: prevent OOM when running on tmpfs with low memory

Running generic/551 on a tmpfs filesystem with less than 10 GB (ish)
of RAM can lead to the system running out of memory, triggering the
kernel's OOM killer and terminating the aio-dio-write-v process.

Fix generic/551 by substracting the amount of available memory allocated
for the tmpfs scratch device to the total available free memory.

Reported-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Daniel Gomez <da.gomez@samsung.com>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/generic/551