Closed ggoupy closed 5 months ago
Hi, thanks for reporting this!
This is most likely related to a bug in my process management logic, not the storage you're using. I will investigate it further (hopefully) next week and let you know once the patch is out.
Thanks :+1:
Alternatively, increasing the limit seemed to circumvent the issue:
import resource
soft, hard = resource.getrlimit(resource.RLIMIT_NOFILE)
resource.setrlimit(resource.RLIMIT_NOFILE, (8192, hard))
Hi @ggoupy, this issue has been fixed in the latest release. You can install it by running pip install -U optuna-distributed
.
Thanks for the quick fix 🙏
I am using
optuna_distributed
withoptuna.storages.JournalStorage
and after ~480 trials i get:OSError: [Errno 24] Too many open files
.Output of ulimit:
I am wondering if each trial properly closes the logging file after being completed.
Here is a snippet of my code:
Here is the full error message: