Solved

Size of tmp directory

Posted on 2004-09-01
10
481 Views
Last Modified: 2013-12-27
How do I determine the size of the tmp directory?
0
Comment
Question by:lcor
  • 3
  • 3
  • 2
  • +1
10 Comments
 
LVL 34

Expert Comment

by:PsiCop
ID: 11959984
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
 
LVL 38

Assisted Solution

by:yuzh
yuzh earned 300 total points
ID: 11960140
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
 
LVL 34

Expert Comment

by:PsiCop
ID: 11960722
Technically, SunOS v4.x was renamed Solaris v1.x :-)
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

Author Comment

by:lcor
ID: 11972731
Oops, sorry, didn't think it mattered.

Solaris 5.9
0
 
LVL 34

Expert Comment

by:PsiCop
ID: 11973522
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
 
LVL 2

Accepted Solution

by:
stanford_16 earned 200 total points
ID: 11978442
Hey lcor,

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

# cd /tmp
# du -sh

Take care!
A
0
 
LVL 2

Expert Comment

by:stanford_16
ID: 11978448
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
 
LVL 38

Assisted Solution

by:yuzh
yuzh earned 300 total points
ID: 11978648
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
 
LVL 2

Expert Comment

by:stanford_16
ID: 11983039
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
 

Author Comment

by:lcor
ID: 12000108
A,

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

lcor
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
IBM AIX Cannot Install AIX ToolKit Applications for Linux 11 151
IBM flash storage 840 15 64
Bad Block Relocation for Synchronous GLVM AIX 7.1 2 72
unix in java example 9 63
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question