タグ

2021年5月20日のブックマーク (1件)

  • File Descriptor Limits

    TL;DR: don't use select() + bump the RLIMIT_NOFILE soft limit to the hard limit in your modern programs. The primary way to reference, allocate and pin runtime OS resources on Linux today are file descriptors ("fds"). Originally they were used to reference open files and directories and maybe a bit more, but today they may be used to reference almost any kind of runtime resource in Linux userspace

    kuenishi
    kuenishi 2021/05/20
    RLIMIT_NOFILEはhard limitまで無条件に増やしていい、select() なんて使わんだろJK絶対に使うなよ