difference between SWAP area and /tmp dir
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 5 of 5

Thread: difference between SWAP area and /tmp dir

  1. #1
    Join Date
    Oct 2002
    Posts
    284

    difference between SWAP area and /tmp dir

    Hello all..

    Sun 5.8 and Oracle 9.2/oracle 8.1.7.0

    Basic Question....

    Is /tmp directory space same as SWAP area ?....because from the command df -k , i see /tmp as 1.18G . Is this same as SWAP area or do we see swap area some where else ?....


    *******************************************************************
    $ df -k
    Filesystem kbytes used avail capacity Mounted on
    /dev/vx/dsk/rootvol 4570068 2486408 2037960 55% /
    /proc 0 0 0 0% /proc
    fd 0 0 0 0% /dev/fd
    mnttab 0 0 0 0% /etc/mnttab
    /dev/vx/dsk/var 1018382 512685 444595 54% /var
    swap 1154672 24 1154648 1% /var/run
    swap 1155200 552 1154648 1% /tmp
    /dev/vx/dsk/opt 2055705 125116 1868918 7% /opt
    /dev/vx/dsk/ora2dg/oravol01
    524288 1231 490371 1% /opt/oracle
    /dev/vx/dsk/ora2dg/ora-mnt2
    1048576 1358 981773 1% /opt/oracle/oradata/mnt2
    /dev/vx/dsk/ora2dg/ora-mnt1
    19922944 15185540 4442498 78% /opt/oracle/oradata/mnt
    1
    /dev/vx/dsk/ora2dg/ora-mnt3
    2097152 1614 1964574 1% /opt/oracle/oradata/mnt3
    /dev/vx/dsk/ora2dg/ora-mnt4
    2097152 1614 1964574 1% /opt/oracle/oradata/mnt4
    *******************************************************************

    thankyou all

  2. #2
    Join Date
    Dec 2002
    Location
    Bangalore,Karnataka, India
    Posts
    9

    /tmp and swap area

    in sun system, you can have multiple swap areas defined in multiple locations(ideally diff disks). with your df -k o/p it is very clear that /tmp is swap only.

  3. #3
    Join Date
    Oct 2002
    Posts
    284
    When i issue the command ....
    ****************************************************
    $ swap -l
    swapfile dev swaplo blocks free
    /dev/vx/dsk/swapvol 199,7 16 2097120 1841136
    ******************************************************

    so iam a little confused.....in df -k , i see

    swap 1154672 24 1154648 1% /var/run
    swap 1155200 552 1154648 1% /tmp

    So can anyone explain wht swap -l is showing 1.8G free while df -k shows 1.15G Free ?...


    Thanks a lot

  4. #4
    Join Date
    May 2002
    Posts
    2,645
    No, what is clear is that the swap space is in tmp, not that tmp is swap space only.

  5. #5
    Join Date
    May 2002
    Posts
    2,645
    swap -l shows the current devices configured to maintain swap space

    swap -s shows the hard disk space allocated AND the memory available for swap space

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width