Closed chjose closed 8 years ago
Which operating system are you running TPIE on? Typically Linux restricts processes to 1024 open file handles (meaning 1021 open files when you subtract stdin, stdout, stderr).
You can change this limit in Linux using sysctl I believe. I don't know about other operating systems.
Operating system is Ubuntu/Linux. Tried the command below:
bash-4.3~/repos/tpie/example/stats_files$ sysctl fs.file-max fs.file-max = 401116
Not sure why TPIE is giving such an exception here.
This is the number of files the filesystem support. The number of open files allowed can be checked with "ulimit -n", and changed with "ulimit -n 4000". See here for more information
http://www.cyberciti.biz/faq/linux-increase-the-maximum-number-of-open-files/
It is working. Thank you.
I am writing an algorithm to perform matrix multiplication on higher dimensions. This program requires many streams open at a time. But when i have more than 500 streams open i am getting an exception:
terminate called after throwing an instance of 'tpie::io_exception' what(): Too many open files Path:
Any option to increase this limit?