aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/buffer_cache/buffer_cache.h
diff options
context:
space:
mode:
authoryvonne <github.inori@etake.nl>2026-10-29 21:14:59 +0100
committeryvonne <github.inori@etake.nl>2026-10-29 21:14:59 +0100
commit467ec722581e7ad573491c5662bcd9544eadd2ed (patch)
tree2641d351dd392f6dfc014ff9c1d96b8642d28187 /src/video_core/buffer_cache/buffer_cache.h
parenta8657997e1eb594ffde9e28d44672ef5b697ad59 (diff)
vfs: keep the open-file cache below RLIMIT_NOFILE on Unix
The VFS cache allowed up to 8192 open files on Unix, and main() set the soft RLIMIT_NOFILE to exactly 8192. With large loose romfs dumps (e.g. ~205k files) the cache could exhaust every descriptor, so unrelated opens failed with EMFILE and games crashed on the failed loads. Size the cache from the actual soft limit with 512 descriptors spare, as is already done on Windows, and only raise the limit in main() instead of also lowering higher limits down to 8192. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'src/video_core/buffer_cache/buffer_cache.h')
0 files changed, 0 insertions, 0 deletions