On 2025-08-06, Robert Palm <[email protected]> wrote: > > Cannot open some folders with KDE dolphin because of "Too many open files". > > Is this a dolphin bug or something OpenBSD port related ?
KDE programs (and some others) like to monitor directory trees for changes. This doesn't work very well on systems using kqueue to detect changes (like OpenBSD) because it needs one file handle to be kept open per file and directory in the monitored tree. When a directory changes, it needs to be rescanned. Up to a certain extent you can cope with this by bumping openfiles for your user class in login.conf(5). (If you're trying to use KDE Plasma then see the notes in the pkg-readme). For a bit above that, you can also bump kern.maxfiles sysctl (but there are reasons why this doesn't come set to a high value by default, and it can't be grown indefinitely). Beyond that then it would require an alternative system for monitoring (e.g. like https://marc.info/?l=freebsd-bugs&m=175164123030739&w=2) that is lighter on system resources. That is harder work but it's likely to be the direction we need to go in longer term. -- Please keep replies on the mailing list.

