/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 = 49222316k used, 776396k available

#: df -lh | grep swap
swap                   757M   1.1M   756M     1%    /etc/svc/volatile
swap                   758M   2.1M   756M     1%    /tmp
swap                   756M    44K   756M     1%    /var/run

/tmp is mainly used for tmpfs(temporary file system).

You can increase tmpfs by editing /etc/vfstab file.

Just edit the tmpfs entry in /etc/vfstab

swap -l is in blocks, half kbyte.
It adds to RAM to make virtual memory, shown by swap -s
And /tmp is free virtual memory.
Your figures all make sense.

1 Like