This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

/tmp partition full, should I worry?
#1
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"
local result = io.popen(command):read("*a"):trim()
log(result)

Here are the first lines of the result:
Code:
8670716 /tmp/lua_MgIPLL
8670257 /tmp/lua_NNPkKE
8670122 /tmp/lua_LjNhiA
8669658 /tmp/lua_OoIiJP
8669051 /tmp/lua_npLNGJ
8668460 /tmp/lua_EKcfhn
8668256 /tmp/lua_oApkAo
8665087 /tmp/lua_iNFJGL
8661846 /tmp/lua_naliMb
8661725 /tmp/lua_cAGiJK
8661703 /tmp/lua_IOjJIN
8661114 /tmp/lua_hokPHE
8660365 /tmp/lua_mAkAlP
4874240 /tmp/scada.db
1691648 /tmp/log/debug.log.2
1179397 /tmp/log/debug.log
34417 /tmp/scripting/210.lua
32810 /tmp/scripting/358.lua
24529 /tmp/scripting/340.lua
23334 /tmp/scripting/320.lua
18756 /tmp/lp/2b36717769101395fb60f21c4e1acd71/1686556848.lua

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?
Reply


Messages In This Thread
/tmp partition full, should I worry? - by rbourgeon - 29.05.2024, 14:07

Forum Jump: