Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Dec 2025 11:28:04 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 291683] FreeVSD 15.0-RELEASE: system hangs when performing stress-ng utime stress tests
Message-ID:  <bug-291683-227-Eb3J43pw8t@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-291683-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

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.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-291683-227-Eb3J43pw8t>