https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291683

--- Comment #2 from Colin Ian King <[email protected]> ---
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.

Reply via email to