Sponsored Content
Full Discussion: increase size of /tmp
Top Forums UNIX for Dummies Questions & Answers increase size of /tmp Post 37935 by RTM on Wednesday 2nd of July 2003 11:44:55 AM
Old 07-02-2003
Please post your OS and version, any error messages from /var/adm/messages (or if you have it configured other than default - from the file you are sending error messages to), the output from df -k, version and type of any volume manager you are using.

The following probably won't help right off since you state you don't have any free space.

From Sunsolve:
Quote:
Problem: receiving error message:
WARNING: /tmp: File system full, swap space limit exceeded

/tmp becomes full when the following quasi equation looks like this for your
system:
((ram + swap - processes) * .9) - files_in_/tmp = 0
| | | | |
| ---------- | /tmp (avail)
| | |
| virtual memory |
| |
-------------------------------
|
/tmp (total)

Resolution Top

There are many things that can be done to remedy the problem, among them;
1. add more ram
2. add more swap
3. kill processes
4. delete files in /tmp

A fast and simple solution to add more swap is to create a swap file
and add it to the existing swap:

#mkfile <megs>m <path_to_filesystem_with_plenty_of_space>/swap
#swap -a <path_to_filesystem_with_plenty_of_space>/swap

Example:

#mkfile 20m /newdir/swapfile
#swap -a /newdir/swapfile

To make this swap space available (add the swap file to virtual memory) each
time the system is rebooted, add a line in the /etc/vfstab.

#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
...
/swapfile - - swap - no -

This is inefficient though. Filesystems waste space for administrative reasons
(about 10%). They are slower than accessing raw disk too.
It is better to use a raw disk parition as a swap file.

There may be plenty of virtual memory. The problem could be that some processes
are simply using too much swap and need to be killed/restarted. Some badly
written/configured programs will take up all available memory no matter how
much of it is available.

The see which processes are using the most memory run the following command:

# /usr/bin/ps -el | sort -rn -k 10
8 S 52475 2594 345 0 40 20 60b1adc0 17325 6098872e ? 57:24 Xsun
8 S 52475 8111 8092 0 51 20 60d6efa0 3882 61915dfe pts/4 1:06 sotool
8 S 52475 9054 19313 0 51 20 60d07658 1568 pts/6 0:26 dtmail
8 S 0 3211 1 1 43 20 609f2038 1207 60989a16 ? 66:41 esd
8 S 0 3213 1 0 40 20 6095c6e0 1146 60989a66 ? 27:01 esd
8 S 52475 2739 2728 0 51 20 60cea208 1128 60b2a0c6 ? 0:01 nametool
^
The above ps output is sorted by process size. |
The biggest offenders are at the top. |
The 10th column is the process size in pages. _______|

To see how big a page is in kbytes, run the pagesize command:
# pagesize
8192
 

10 More Discussions You Might Find Interesting

1. HP-UX

increase size

Hi All, one of the mount point in Hp ux server has reached 95% its a data base file and can not be deleted. so i want to know how to increase the size of mount point i am new to unix ,please help me (1 Reply)
Discussion started by: jyoti
1 Replies

2. Solaris

Increase size of /tmp swap File

Hi Guys I need to increase the size of my /tmp swap file. What is the easiest way to do this. Thanks Carson (2 Replies)
Discussion started by: cmackin
2 Replies

3. UNIX for Dummies Questions & Answers

How to extend /tmp size?

Dear all, I wanna to extend my /tmp size. I deleted the all files of /tmp but it still shows there's no more space on it. The OS is Red Hat Enterprise Linux AS release 4 (Nahant Update 5). # df /tmp/ -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup00-LogVol00... (3 Replies)
Discussion started by: mr_bold
3 Replies

4. UNIX for Dummies Questions & Answers

How to increase process size ???

Hi All, Could anybody tell me how to increase/decrease a process size in UNIX HP machine ? Whether the process size limitation will cause core dump ? Thanks, Rohit.. (1 Reply)
Discussion started by: ronix007
1 Replies

5. Solaris

Increase /tmp size temporarily

Hi all system Solaris 10 10/09 s10x_u8wos_08a X86 ufs file system I would like to install SunStudio. After the gui comes up it shows that i need to add swap space of at least 900m. the command swap-s shows 880m free. My question is can you temporarily increase swap by 1 or 2... (3 Replies)
Discussion started by: kc2dws
3 Replies

6. UNIX for Dummies Questions & Answers

Increase size to sd[b-c]

hi guys I am working on my vmware workstation. I have a /dev/sdb which is 5GB. I am using LVM. Now I increase /dev/sdb 2 more GB. fdisk -l shows 7 GB but pvscan still shows 5GB. how do I make my system recognize the new 7GB added and be able to add those to my physical volumen and... (1 Reply)
Discussion started by: kopper
1 Replies

7. Solaris

Swap size increase

Dear All, How to increase the swap size when physicall memory reaches 60 %. OR it can be only done after the physicall memory is full. Rgds Rj (8 Replies)
Discussion started by: jegaraman
8 Replies

8. Solaris

/tmp size is less whereas size allocated to swap is more

Hi, the /tmp size is less whereas the size allocated to swap is quite big. how to increase the size of /tmp - #: swap -l swapfile dev swaplo blocks free /dev/md/dsk/d20 85,20 8 273096 273096 #: swap -s total: 46875128k bytes allocated + 2347188k reserved =... (2 Replies)
Discussion started by: psb74
2 Replies

9. Solaris

How to use space in /tmp to increase root?

Hello All, I have solaris server running, uname -a SunOS host 5.9 Generic_112233-12 sun4u sparc SUNW,Sun-Fire-280R Filesystem Size Used Available Capacity Mounted on /dev/md/dsk/d0 9.8G 8.7G 1.0G 90% / /dev/dsk/c1t1d0s3 4.3G 7.7M 4.2G ... (17 Replies)
Discussion started by: gull05
17 Replies

10. Solaris

Increase /tmp file system size dynamically in Solaris zone

Hi Please let me know how to increase the size of /tmp file system from 512m to 1024m dynamically without reboot in solaris zone # df -h Filesystem size used avail capacity Mounted on zones/zone1 11G 1.0G 10.0G 10% / /dev 11G 1.0G ... (6 Replies)
Discussion started by: sb200
6 Replies
RAM(4)							     Kernel Interfaces Manual							    RAM(4)

NAME
ram - ram disk driver SYNOPSIS
/sys/conf/SYSTEM: NRAM ram_size # RAM disk size (512-byte blocks) major device number(s): block: 3 minor device encoding: must be zero (0) DESCRIPTION
The ram pseudo-device provides a very fast extended memory store. It's use is intended for file systems like /tmp and applications which need to access a reasonably large amount of data quickly. The amount of memory dedicated to the ram device is controlled by the NRAM definition in units of 512-byte blocks. This is also patchable in the system binary through the variable ram_size (though a patched system would have to be rebooted before any change took effect; see adb(1)). This makes it easy to test the effects of different ram disk sizes on system performance. It's important to note that any space given to the ram device is permanently allocated at system boot time. Dedicating too much memory can adversely affect system performance by forcing the system to swap heavily as in a memory poor environment. The block file accesses the ram disk via the system's buffering mechanism through a buffer sharing arrangement with the buffer cache. It may be read and written without regard to physical disk records. There is no `raw' interface since no speed advantage is gained by such an interface with the ram disk. DISK SUPPORT
The ram driver does not support pseudo-disks (partitions). The special files refer to the entire `drive' as a single sequentially addressed file. A typical use for the ram disk would be to mount /tmp on it. Note that if this arrangement is recorded in /etc/fstab then /etc/rc will have to be modified slightly to do a mkfs(8) on the ram disk before the standard file system checks are done. FILES
/dev/ram block file /dev/MAKEDEV script to create special files /dev/MAKEDEV.local script to localize special files SEE ALSO
hk(4), ra(4), rl(4), rk(4), rp(4), rx(4), si(4), xp(4) dtab(5), autoconfig(8) DIAGNOSTICS
ram: no space. There is not enough memory to allocate the space needed by the ram disk. The ram disk is disabled. Any attempts to access it will return an error. ram: not allocated. No memory was allocated to the ram disk and an attempt was made to open it. Either not enough memory was available at boot time or the kernel variable ram_size was set to zero. BUGS
The ram driver is only available under 2.11BSD. 3rd Berkeley Distribution Januray 27, 1996 RAM(4)
All times are GMT -4. The time now is 10:13 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy