/tmp partition full, should I worry? - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8) +--- Thread: /tmp partition full, should I worry? (/showthread.php?tid=5442) |
/tmp partition full, should I worry? - rbourgeon - 29.05.2024 Hello, I have noticed that on some of my LM's, the partition mounted on /tmp is full, for instance, in the "Partitions" dialog: tmpfs 124.5M 124.0M (100%) 528.0K /tmp Is this normal? Or should I worry about it? How can this be solved? Furthermore, I executed the following Lua code to inspect which are the files inside /tmp and which are the ones that take up the most space in the partition: Code: local command = "find /tmp -type f -exec ls -l {} + | awk '{print $5, $9}' | sort -nr 2>&1" Here are the first lines of the result: Code: 8670716 /tmp/lua_MgIPLL As you can see with the numbers (that are file sizes in bytes), the 14 most heavy files (lua_xxxxx where xxxxxx seems to be a random sequence of 6 letters) each take up ~8'668'000 bytes which is 8.25 MB. 8.25 MB times 14 is about 115 MB, so these 14 files account for about 115 MB of the 124 MB used space in the /tmp partition, that is to say, the vast majority of it. So, what are these files? Why do they take up so much space in this partition, and is this a problem? If it is, what can be done to address the situation? RE: /tmp partition full, should I worry? - admin - 29.05.2024 Such files can come from failed file uploads or not cleaning up temporary files in .lp scripts. If /tmp is full then the system won't be able to function properly. RE: /tmp partition full, should I worry? - rbourgeon - 29.05.2024 Okay, so independently from the issue of understanding why they appeared in my specific case, can I safely delete these files? RE: /tmp partition full, should I worry? - admin - 29.05.2024 You can delete them. You can also reboot LM and everything in /tmp will be cleared because it's placed in RAM. |