[Bug 291683] FreeVSD 15.0-RELEASE: system hangs when performing stress-ng utime stress tests
Date: Mon, 15 Dec 2025 11:28:04 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291683
--- Comment #2 from Colin Ian King <colin.i.king@gmail.com> ---
Simple reproducer, run this with vmstat 1 and it shows the free memory reducing
and eventually we run out of memory with various services getting killed.
#include <fcntl.h>
#include <sys/time.h>
#include <stdlib.h>
#include <stdio.h>
int main(void)
{
struct timeval timevals[2];
char filename[] = "testfile";
int fd;
(void)unlink(filename);
fd = creat(filename, 0777);
if (fd < 0) {
fprintf(stderr, "faile to creat %s\n", filename);
exit(1);
}
for (;;) {
gettimeofday(&timevals[0], NULL);
timevals[1] = timevals[0];
utimes(filename, timevals);
}
}
--
You are receiving this mail because:
You are the assignee for the bug.