Although opening millions of files is just BAD BAD BAD, Linux doesn't really prevent you.
If you want to shoot that foot and permit 10 million open file descriptors, the following commands run as root may "help" you.
nfiles=10000000 sysctl fs.nr_open=$nfiles ulimit -n $nfiles
Although opening millions of files is just BAD BAD BAD, Linux doesn't really prevent you.
If you want to shoot that foot and permit 10 million open file descriptors, the following commands run as root may "help" you.
nfiles=10000000
sysctl fs.nr_open=$nfiles
ulimit -n $nfiles