xmake leaves a lot of junk in /tmp #2756
Replies: 3 comments 6 replies
-
Those are only temporary files and are not used to keep the project in a build state. All project-related status files are stored in the build directory. In addition, xmake will start a cleanup task in the background the first time it is run each day to clean up all temporary files from yesterday, so /tmp/ will only hold temporary files from just one day. like this And xmake only stores a few small temporary files in the /tmp directory. |
Beta Was this translation helpful? Give feedback.
-
Can you document what they are? Running |
Beta Was this translation helpful? Give feedback.
-
我再一次构建当中发现xmake留下了900mb的垃圾,导致我的tmp目录被塞满,影响正常使用,希望能改进 $ sudo du -ah /tmp | sort -rh | head -n 10
952M /tmp/.xmake1000/240808
952M /tmp/.xmake1000
952M /tmp
404M /tmp/.xmake1000/240808/_29CAB960B81D4B308763495FCF86EE50
273M /tmp/.xmake1000/240808/_24165A692865461089A8BB4D9456ED30
264M /tmp/.xmake1000/240808/_B938D031DEF240008290ADB88D772510
5.0M /tmp/.xmake1000/240808/_6282182313F449108EA18C922C380540
4.1M /tmp/.xmake1000/240808/_D4EDADF87F4B48308C3716674B2A5670
2.8M /tmp/.xmake1000/240808/_4DFF422F216248308827CF137C6EF840
132K /tmp/.xmake1000/240808/stats/240808 |
Beta Was this translation helpful? Give feedback.
-
Xmake Version
v2.7.1+master.20e5768e3
Operating System Version and Architecture
FreeBSD 14
Describe Bug
After running xmake, there are a lot of files left in ~/.xmake{uid}. This is surprising to new users and inconsistent with most other build systems, where all state is contained within the build directory.
This is problematic for a few reasons:
/tmp
is often fairly small and so is more of a constrained resource than space in the build directory./tmp
is often a memory-backed filesystem and so leaving long-lived files there can degrade system performance over time between reboots./tmp
.xmake
runs because now it writes to files in locations other than the designated work directory.Expected Behavior
All state should be stored in the build directory.
Project Configuration
No response
Additional Information and Error Logs
No response
Beta Was this translation helpful? Give feedback.
All reactions