Open karel-brinda opened 8 years ago
How to get to know the limit:
import resource
# the soft limit imposed by the current configuration
# the hard limit imposed by the operating system.
soft, hard = resource.getrlimit(resource.RLIMIT_NOFILE)
print 'Soft limit is ', soft
# For the following line to run, you need to execute the Python script as root.
resource.setrlimit(resource.RLIMIT_NOFILE, (3000, hard))
On my Linux machine it still does not work:
...
Error in job 42 while creating output files test_metagenomic_pe.1.fq, test_metagenomic_pe.2.fq.
RuleException:
OSError in line 36 of /home/karel/anaconda3/lib/python3.4/site-packages/rnftools/mishmash/mishmash.snake:
[Errno 24] Too many open files: 'test_metagenomic_pe.2.fq'
Removing output files of failed job 42 since they might be corrupted:
test_metagenomic_pe.1.fq
Will exit after finishing currently running jobs.
Exiting because a job execution failed. Look above for error message
Limit number of concurrently open files in the merging step of read simulation.