[MDEV-18420] Increase OS_FILE_LIMIT to ULLONG_MAX Created: 2019-01-29 Updated: 2020-11-11 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Variables |
| Fix Version/s: | None |
| Type: | Task | Priority: | Minor |
| Reporter: | Geoff Montee (Inactive) | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
MariaDB uses open_files_limit to set its limit on open file descriptors with setrlimit: https://github.com/MariaDB/server/blob/5abc79dd7ab2fccb4b05ca38a512ec816d2f8e52/mysys/my_file.c#L42 And it only allows a maximum limit of OS_FILE_LIMIT: https://github.com/MariaDB/server/blob/5abc79dd7ab2fccb4b05ca38a512ec816d2f8e52/mysys/my_file.c#L102 And OS_FILE_LIMIT is currently defined as UINT_MAX (4294967295): RLIMIT_INFINITY seems to be defined as ULLONG_MAX on my system:
So if we increased OS_FILE_LIMIT to ULLONG_MAX, it looks like we could allow users to set an infinite limit. |