Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 490
  • Last Modified:

Size of tmp directory

How do I determine the size of the tmp directory?
0
lcor
Asked:
lcor
  • 3
  • 3
  • 2
  • +1
3 Solutions
 
PsiCopCommented:
Well, this does vary. If you have SunOS 4.x, your /tmp is whatever was allocated for that on disk, if it has its own slice, or whatever is available in / if it doesn't.

If you have Solaris v2.x, then if a slice was allocated, the size of /tmp is that slice, otherwise it'll use swap space for /tmp

You need to state things like the version of Solaris - we're Experts, not mindreaders.
0
 
yuzhCommented:
This is a Solaris TA, I assume that you are using Solaris.
     Mounting swap as /tmp is pretty common there, it is the default installation.

The size of the swap space is depands what appliaction software is running on the box (the
requirements of the system's software applications).

But you should allocate at least as the SAME size of the RAM for your system, to enable to save a worst-case crash dump.

I would recommended 2.5 X RAM when you have a large HD, and 1.5 X RAM for small HD.

Have a look at the following page to learn more about Solaris swap space:
http://www.itworld.com/Comp/2378/swol-0496-perf/

http://www.alise.lv/ALISE/technolog.nsf/0/59136f9072dc58d8422569fa0057b095?OpenDocument
0
 
PsiCopCommented:
Technically, SunOS v4.x was renamed Solaris v1.x :-)
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
lcorAuthor Commented:
Oops, sorry, didn't think it mattered.

Solaris 5.9
0
 
PsiCopCommented:
More information is ALWAYS better here on EE. We're Experts, but we're not mindreaders, and we can't look over your shoulder.
0
 
stanford_16Commented:
Hey lcor,

You can switch to the directory and type "du -sh"

# cd /tmp
# du -sh

Take care!
A
0
 
stanford_16Commented:
To clarify:

To determine the available size of the /tmp directory, type "df -h".  To determine the size of all files currently in /tmp, type "du -sh".

Take care,
A
0
 
yuzhCommented:
If you want to know how much disk space should be configured for
tmp/swap, have a look at my comment (http:#11960140)

If you only want to know the current usage of tmp, type in:

df -k

The output is dynamic, because it is depends on the status of the
current runing processes!
0
 
stanford_16Commented:
lcor,

Have we answered your question?  If not, please give us more information in order to clarify, otherwise please accept an answer and close the question.

Thanks,
A
0
 
lcorAuthor Commented:
A,

Sorry for not getting back sooner.  Thanks  for your help.  It's just what I need.

lcor
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 3
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now