So my db freezes up and even after restart it does not smooth out (it smooths out maybe for a few seconds and then bogs down again )
iotop reports high writes (spikes of 300~ 500 mb/s) and I have tracked down to syscalls of writes to /tmp/ now there are temporary tables that are written there in the format of #sql_386a_0.MAI but what I am interested are the other files that never finish writes in the format of /tmp/MY* for example:
this is a syscall from one of child threads "write(248</tmp/MYXFhjiU (deleted)>, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\00022"..., 32768)" (written in 32 or 64 kb chunks)
these files themselves do not exist in folders from what i can gather but after nightly imports of data the system hangs for an hour or two with extreamly high writes and not even restarting server helps
so my question is what are those files