Better Settings for /tmp Filesystem on HP-UX by Dusan Baljevic

423 views

Published on

Better settings for /tmp filesystem on HP-UX by Dusan Baljevic

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
423
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Better Settings for /tmp Filesystem on HP-UX by Dusan Baljevic

  1. 1. Dusan Baljevic dusan.baljevic@ieee.org Better settings for /tmp on HP-UX Historically, settings for /tmp on HP-UX servers has always been wrong: All applications use it; Cleanup is not automated; /tmp, as part of root disk, unnecessarily loaded with data that does not belong in it. What are the more appropriate settings for /tmp? Here is my recommendation that I have been using in all my designs: A) Set TMPDIR variable to point to some other non-boot-volume. I always encourage application admins to use their own areas for temporary files. Some applications look at TMPDIR environment variable. Others look at two other variables: Try setting TEMP and TMP as well as TMPDIR. B) Is the /tmp file system mounted with "tmplog" option in /etc/fstab? /tmp is DESIGNED for temporary files, so it should not be abused for other choices. In "tmplog" mode, the intent log is almost always delayed. This improves performance, but recent changes may disappear if the system crashes. C) Is /tmp cleaned up at boot time (not really a performance issue but useful for maintenance, especially if number of temporary files keep growing)? Enable it in /etc/rc.config.d/clean_tmps CLEAR_TMP=1

×