Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
I have a tmpfs set up for /tmp, and it works. However, it initially has a 96MB maximum capacity, causing swap usage from applications. My laptop only has 192MB of ram, so this is bad. I'd like it to initially use less ram(like around 16MB) instead of 96MB.
There doesn't seem to be an option for this. Is this possible through kernel recompiling?
Or to state that another way - with 192 Meg of RAM you probably should *not* be using tmpfs for /tmp
tmpfs by design will use page cache and hence be subject to swapping. You can limit the (maximum) size of it, but that is rarely likely to be a good idea.
Well I set it up to create less hard drive usage, but it seems it's just making the swap get used more often(thereby defeating the purpose) so I guess I'll just remove it.
If you are concerned about disk occupancy, simply clear /tmp on shutdown.
If you are concerned about disk I/O, not much you can do, although I wouldn't normally expect /tmp to contribute much.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.