SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Removing everything in /tmp should be fine. I have done that occasionally when it was getting a little crazy in there, and never had a problem. If it was important, it wouldn't get dumped into a temporary directory.
Um, you can just mount /tmp using tmpfs. Then tmp will be wiped out when you reboot...
mmmmh I liked that one, is a neat idea.
How much space should I give to /tmp ?
I know that mounting with tmpfs gives by default half of the RAM to the filesystem but I have 2 gigs of RAM, I don't want to spend 1 gigabyte in /tmp
The 1G is max usage, not what it is currently using. You only pay for what you actually use, and the cap is there so that tmpfs doesn't bring the system to its knees. If you want, you can pass size=512M or somesuch in. There's an article in the LQ wiki (that I helped write) if you are interested.
I actually use it as an compost bin of sorts. I made a function so that "rm" would copy the data to /tmp and remove the original.
The 1G is max usage, not what it is currently using. You only pay for what you actually use, and the cap is there so that tmpfs doesn't bring the system to its knees. If you want, you can pass size=512M or somesuch in. There's an article in the LQ wiki (that I helped write) if you are interested....
That's good to know, thanks tuxdev, I'm going to review this intel once I get back at home and start tweaking this stuff ^_^
Quote:
Originally Posted by slzckboy
...If one gig is the max limit how come I had 7 gig in my tmp folder?
Sorry but confused.
??????
That was because you had your /tmp folder resident in your / partition, physically in your hard disk, without a space limit. tuxdev was talking about using tmpfs for the /tmp folder, which is a neat kernel trick that gives you a temporal/virtual filesystem resident in the computer's RAM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.