[MDEV-22202] mysqld: O_TMPFILE is not supported on /tmp (disabling future attempts) Created: 2020-04-09 Updated: 2021-09-14 Resolved: 2020-04-09 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Configuration |
| Affects Version/s: | 10.4.12 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | V H Lemoine | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
UBUNTU 18.04 / Linux |
||
| Issue Links: |
|
||||||||
| Description |
|
I cannot find what the cause of this message is. log file 2020-04-09 7:41:33 0 [Note] InnoDB: Using Linux native AIO |
| Comments |
| Comment by Daniel Black [ 2020-04-09 ] |
|
tmpfs filesystems don't support creating a file with `O_TMPFILE`, at least in your kernel version. I see it frequently too. Ultimately the warning is informational only and has no impact apart from there may be residual files in /tmp if the server crashes. It would be good if the linux kernel eventually did support it on tmpfs. |
| Comment by V H Lemoine [ 2020-04-09 ] |
|
ok, thx, pls close this issue |
| Comment by Daniel Black [ 2020-04-09 ] |
|
The slightly longer version of what happens is when the failure to create a file with the `O_TMPFILE` flag happens, the fallback is to create a file and then immediately delete it (which happened for years, it was just quiet about it). https://github.com/MariaDB/server/blob/c7ab676/mysys/mf_tempfile.c#L133 |
| Comment by Daniel Black [ 2021-09-14 ] |
|
I was wrong - I was using it incorrectly |