lkml.org 
[lkml]   [2005]   [Oct]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectVFS: file-max limit 50044 reached
    Date
    This program:

    #include <unistd.h>
    #include <fcntl.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include <errno.h>
    #include <string.h>

    int main (void)
    {
    int f, j;

    j = 0;
    while (1) {
    f = open ("/dev/null", O_RDONLY);
    if (f == -1) {
    fprintf (stderr,"open (%i): %s\n", j, strerror (errno));
    abort ();
    }
    close (f);
    j ++;
    }
    return 0;
    }


    fails on 2.6.14-rc4 kernel with this message:

    $ ./a.out
    VFS: file-max limit 50044 reached
    open (55499): Too many open files in system
    Aborted
    $

    This problem was reproduced on i386 and amd64 with
    kernels 2.6.14-rc1 .. 2.6.14-rc4-git4
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-10-15 15:23    [W:0.019 / U:0.240 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site