[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: deleting content of /tmp



mount /tmp onto tmpfs and run tmpreaper. No problems, just watch your swap
space, limit its (/tmp) size and instead of separate partition for /tmp use
bigger swap area.

What is the performance impact of mounting /tmp in tmpfs? Some thoughts:
1) Maybe it will make the system faster, because files in tmp will be faster to access.
2) Then again, maybe the disk cache is enough for this, so there will be no impact on performance.
3) Or, the system will be slower, because too much memory will be used for tmpfs and when some application needs memory the kernel will have to move a part of tmpfs to swap before it can serve the application.
--
Software is like sex: it is better when it is free.
Reply to: