Arch process using more swap space

Hi,
DB : 11.2
OS : Aix 6
While taking archive backup by oem,only 9 archive process consuming more swap space.
The parameter value is LOG_ARCHIVE_MAX_PROCESSES=15 at db level.
Why only 9 archive process use swap space at os level?
how to determine all the archive process needed?
Thanks & Regards,
VN

user3266490 wrote:
Hi,
Thanks for your reply.
Physical memory 120 GB,Swap space 45GB.
We getting TOP consuming SWAP space PID's from OS team.Then we checked v$session with that PID's.We found that PID's belongs to archive processes.
Nealry 25 log switch per hour happened.the log file size 8gb,8 groups. Then REDO log files is is way too small by around a factor of SIX
Increase REDO log file size to 50GB to reduce the number of switches per hour to around 3 0r 4.

Similar Messages

  • Consuming more swap space after upgrade from 10.2.0.1 to 10,2.0.4 on Solari

    Hi,
    After upgrading 10.2.0.1 to 10.2.0.4. Out of four database in one database is consuming more swap space. and in another database while executing catupgrd.sql, it is coming out with error ORa-04030 out of process memory error.
    thanks in adavance
    Anil Pinto

    For your ORA-04030 error, pl see if MOS Doc 414237.1 (ORA-00600 [kksCallPopCallback] ORA-04030 (kxs-heap-c,kdbmal allocation) While Upgrading The Database From 9.2.0 To 10.2.0, With ORA-03113 Errors Halting The Execution Of catupgrd.sql on UNIX platforms) can help
    HTH
    Srini

  • If I bring in photos from Iphoto, am I using more disk space on my hard drive. I dont want to duplicate my entire file. I have 26000 photos in I photo.

    If I bring in photos from Iphoto, am I using more disk space on my hard drive. I dont want to duplicate my entire file. I have 26000 photos in I photo.

    You have to duplicate the photos unless you want to use PSE as the external editor for iphoto. In iphoto, your photos are stored in a proprietary library, which should never be messed with by programs other than iphoto. Writing to the iphoto library from outside iphoto is the fastest way to corrupt it and lose all the pics it contains.
    So you can either set PSE as your external editor and send the photos from within iphoto, or you must export the photos from iphoto to be able to use them outside that program.

  • Does filevault use more disk space?

    Does filevault use more disk space than when not using it?  I'm running an SSD drive and need to keep usage to a minimum.  Thx

    The difference is about 200 MB, regardless of the size of the volume.

  • Which Process using high Swap

    Dear All,
    Any specific command or steps to find which process consuming lot of swap space and there is any specific step to reduce the usage without kill the actual process.
    Regards,
    Siva

    prstat -s size
    ..gives you a list of processes sorted on their memory consumption. The swap and memory are tightly connected in a virtual-memory structure, which means that i don't think you can tell exactly how much of a process which is swapped out and how much which is in RAM.
    The RSS column of the prstat output shows how much which is residential, that part is for sure in the RAM, the rest may or may not be swapped out.
    You can not reduce the amount of swap used by a process (i'ld guess that you probably could force it into the RAM, but thats probably not what you want), but if swap size is an issue, you can add space to the swap easily by using swap -a on a file or device.
    .7/M.

  • Does increasing Exchange Storgage Quota use more disk space immediately?

    Exchange does not use the space immediately, it just allows each mailbox to grow up to that size.
    I would consider carefully before increasing the quota limit. One of the reasons for having a quota is to keep mailboxes to a manageable size. Every GB of size costs a heck of a lot more than just the GB on the spindle.

    Hi
    The current policy is a 20Gb limit. Thanks to a post I made in this forum, I know that 21 of the users are nearing this limit.
    Now I can increase the limit for those 21. Or I can change the policy to 25Gb for everyone. If I increase it to 25Gb for everyone, does Exchange use the disk space immediately? Lets say I had 1000 Gb free, and 150 users. Does increasing by 5Gb mean that 5x150 = 750Gb is now allocated? Or does exchange use the disk space as required?
    Thanks
    This topic first appeared in the Spiceworks Community

  • Use more disk space from 8K block_size to 16K block_size

    Can some one answer my question, I have instance A (8K block_size), create a new Instance B (16K block_size), export (FULL) from Instance A, Import (FULL) onto Instance B.
    I was wondering if changing from 8K instance to 16K instance will take more space.
    I compared the tablespaces from both Instances (A & B), they seem to be the same.
    Can any one help me in thise area, because I need to plan for future 16K instances and need to plan for more space if required.
    Thanks

    Hi Patrick,
    I was wondering if changing from 8K instance to 16K instance will take more space.No, not if you "half" your PCTFREE to have the same reserved space as 8k.
    For example, pctfree=10 is 800 bytes on 8k blocks, but pctfree=10 is 1,600 bytes on a 16k block . . .
    Also, MAKE SURE you don't hit this UGLY BUG in 16k blocksizes:
    http://www.oraclealchemist.com/oracle/hey-guys-does-size-matter/
    "The final result: When the update was run against the 16k blocksize DB, it took 45 minutes. Against the 4k blocksize DB on the same box with the same parameters and the same FS mounts, it took 2 minutes 20 seconds."
    Also, see these important notes on using non-standard blocksizes:
    http://www.dba-oracle.com/t_multiple_blocksizes_summary.htm
    Hope this helps . . .
    Donald K. Burleson
    Oracle Press author
    Author of "Oracle Tuning: The Definitive Reference"
    http://www.rampant-books.com/book_2005_1_awr_proactive_tuning.htm

  • Home folder using more HD space then what's in it.

    I am having a space issue my home folder shows it's using 550 GB when the folders inside of it add up to only about 100 GB.  Anyone know why it thinks there is more in it?
    things I have done:
    Disk verify - says it's ok
    repaired permmissions
    searched for hidden files - nothing of significance showed up
    My total HD space is 750
    the programs I use most often are:
    Mail
    Firefox
    final cut pro x
    and a data base for my work called acctvantage

    There are plenty of files in your home folder you won't see in finder.
    Google for the command to "show all files" in Finder, or open up Terminal and enter:
    du -chd 1
    This will generate a size report for ALL files and top-level folders, you can increase the number "1" to go deeper into your subfolders if needed. Here is part of what I get on my machine:
    [15:35:43] rcooke@Richards-MacBook-Pro-4 ~
    $ du -chd 1
    4.0K          ./.adobe
    4.0K          ./.config
    4.0K          ./.cups
    2.9M          ./.dropbox
    16K          ./.freemind
    24K          ./.ix
      0B          ./.jfreereport
    4.0K          ./.MacOSX
    48K          ./.macports
    8.0K          ./.parallels
    28K          ./.pylint.d
    128K          ./.python-eggs
    12K          ./.ssh
    8.0K          ./.ssh_new
    132K          ./.subversion
    588K          ./.swt
    3.2M          ./.Trash
    8.0K          ./.wxglade
      0B          ./.Xcode
    420K          ./Applications
    18M          ./Applications (Parallels)
    234M          ./Desktop
    28G          ./Documents
    707M          ./Downloads
    30M          ./Dropbox
    1.0M          ./GLUCOFACTS Deluxe
    3.2M          ./InstallShield
    45G          ./Library
    73G          ./Movies
    12G          ./Music
    61G          ./Pictures
    54G          ./Public
    9.3G          ./Shared
      0B          ./Sites
    208K          ./SugarTests
    392K          ./T1
    14M          ./T2
    520K          ./T3
    115M          ./T4
    204M          ./T5
    2.0M          ./test
    2.5M          ./Test2
    283G          .
    283G          total
    Anything starting with a dot (.), called dot-files or dot-folders is ignored by Finder.  That is because these are behind-the-scenes files.  Chances are one of your apps is maintaining a HUGE temporary file or cache.
    Oh yeah, your "Library" folder is also hidden by default, but pressing ALT while the GO menu is open in Finder will reveal a link to it.  Likewise, any of your apps could be keeping a HUGE library file inside of the library folder.
    To list hidden files in terminal use:
    ls -laGh
    To get more information on either command use:
    man man
    man du
    man ls
    Arrow up/down to navigate, press "q" to exit.
    Fixed a typo in the "du" command example that would cause an error.

  • My program on Solaris 9 uses huge amounts of swap space

    hi,
    i have written a program that uses very little memory but seems to use huge amounts of swap space in increments of 1.4GB. The initial install of the Solaris 9 only allocated 500MB of swap for 4GB of Memory. The swap space has now been increased to 16GB but the program seems to use more swap space.
    The program uses an api to attach to up to 100 agents and (the peice i wrote) registers a callback to handle events from the agents, a small amount of memory is allacated to hold details of each agent but no more.
    Can anyone shed any light on this as this program does run on other platforms with any issues.
    sdarcy7

    are you sure you are release memory, what language are you using?
    you can reboot the system and follow the memory process using vmstat and swap -l, after that run your program only one time, and run the command again so the memory after should be the same that the initial before you run your process, if not , you program is collecting memory and is not releasing it.
    Good luck,
    JoshD

  • Swap Space Query for Oracle 11.1.0.6 installation - why so much?

    In process of installing 11.1.0.6 DB on RHE Ver 4 with 8GB of RAM. The installation notes state that for platforms of between 2-8GB of RAM - the swap file should be set to the same as the RAM. Is it not the case that the more RAM you have, the less swap space that should be needed since Oracle has more memory to work with. With the 11.1.0.6 installation for platforms of between 2 and 8GB, it appears that the bigger the RAM there is available the more swap space is required - Why is this the case?
    What are the implications of using say a 2GB swap file with the 8GB or RAM I have available?
    Thanks

    I was confident that the docs were correct - I guess I was looking to understand why the more RAM you had available up to 8GB, the more swap space that was required - basically to understand the underlying logic of this setup?

  • V890 ran out of swap space cause for Oracle Database curruption.

    We have Oracle running on V890 which was crashed due to low swap space and didn't find any hardware issue with the server.
    Even after database crash 7gb is showing in use.
    and there is absolute no use of swap space on this server
    bash-3.00# uname -a
    SunOS oracle-a01-00 5.10 Generic_127127-11 sun4u sparc SUNW,Sun-Fire-V890.
    last pid: 18804; load avg: 0.05, 0.05, 0.04; up 16+18:16:30 08:19:11
    95 processes: 94 sleeping, 1 on cpu
    CPU states: 99.9% idle, 0.0% user, 0.1% kernel, 0.0% iowait, 0.0% swap
    Memory: 32G phys mem, 25G free mem, 56G total swap, 56G free swap.
    Can someone help us to find root cause for this issue???
    Thanks
    Ravi

    Sorry this took so long. Here is part of the alert log. I am sorry it is so long. This sequence is repeated over and over again. I am only guessing, but does the fourth to last line suggest that one of the redo files is corrupted, again, because the machine ran out of space?
    ORA-600 signalled during: alter database open...
    Mon Sep 19 10:48:48 2005
    Restarting dead background process QMN0
    QMN0 started with pid=12
    Mon Sep 19 10:54:51 2005
    Restarting dead background process QMN0
    QMN0 started with pid=12
    Dump file d:\oracle\admin\orcld\bdump\alert_orcld.log
    Mon Sep 19 10:42:49 2005
    starting up 1 shared server(s) ...
    starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
    Mon Sep 19 10:42:51 2005
    alter database mount exclusive
    Mon Sep 19 10:42:56 2005
    Successful mount of redo thread 1, with mount id 2931047851
    Mon Sep 19 10:42:56 2005
    Database mounted in Exclusive Mode.
    Completed: alter database mount exclusive
    Mon Sep 19 10:42:56 2005
    alter database open
    Mon Sep 19 10:42:57 2005
    Beginning crash recovery of 1 threads
    Mon Sep 19 10:42:57 2005
    Started redo scan
    Mon Sep 19 10:43:00 2005
    Errors in file d:\oracle\admin\orcld\udump\orcld_ora_2652.trc:
    ORA-00600: internal error code, arguments: [kcratr1_lostwrt], [], [], [], [], [], [], []

  • Swap space - upgrading to solaris 8

    Hi
    I have Solaris 2.6, 3Gb RAM and
    # swap -l
    swapfile dev swaplo blocks free
    /dev/dsk/c0t0d0s4 32,4 16 527024 378752.
    # vmstat
    procs memory page disk faults cpu
    r b w swap free re mf pi po fr de sr f0 m1 m1 m1 in sy cs us sy id
    0 0 0 22392 13240 10 379 282 191 219 0 5 0 0 0 8 1381 5898 4631 6 5 89
    # sar -r 1
    SunOS nwlabs 5.6 Generic_105181-26 sun4u 02/26/02
    16:26:54 freemem freeswap
    16:26:55 5964 4947043
    The Solaris 8 Advanced Installation Guide recommends allocating at least 512Mbytes of swap space before upgrading. Is this referring to swap disk or total swap space?
    Do I need to allocate more swap space before upgrading to Solaris 8?
    Thanks
    D

    If you are using the "Installation" cd with Solaris 8 then it requires a minimum of 512 to store the "installer" in swap so it can do the installation. If you forego the use of the Installer CD and start the Installation with Disk 1 of 2 then you don't have to worry about swap issues. The Advanced Installation Guide seems to indicate that you should use the WebStart Installer but it is not needed.
    If you are doing an upgrade then it will use what you already have set up as a swap slice. If you are doing an initial install then you can make swap whatever you want.

  • How to kill Forms Runaway Process using 95% CPU and running for 2 hours.

    We had a situation at E-Business Suite customer (using Oracle VM server) where some of Form processes were not being cleared by form timeout settings automatically.
    Also when user exits the form session from front end, the linux form process (PID) and DB session did not exit properly, so they got hung.
    They were spiking CPU and memory usage and causing e-business suite to perform slowely and ultimately causing VM host to reboot the production VM guest (running on Linux).
    We could see the form processes (PIDs) using almost 100% cpu with "top" command and running for a long time.
    Also we verified those Form Sessions did not exist in the application itself.
    ie. Using from Grid Control -> OAM-> Site Map -> Monitoring (tab) -> "Form Sessions".
    It means that we could safely kill that form process from Linux using "kill -9 <PID>" command.
    But that required a continuous monitoring and manual DBA intervention as customer is 24x7 customer.
    So, I wrote a shell script to do the following;
    •     Cron job runs every half an hour 7 days a week which calls this shell script.
    •     Shell script runs and tries to find "top two" f60webmx processes (form sessions) using over 95% cpu with 2 minutes interval.
    •     If no process is found or CPU% is less than 95%, it exits and does nothing.
    •     If top process is found, it searches for its DB session using apps login (with hidden apps password file - /home/applmgr/.pwd).
    a.     If DB session is NOT found (which means form process is hung), it kills the process from unix and emails results to <[email protected]>
    b.     If DB session is found, it waits for 2 hours so that form process times automatically via form session timeout setting.
    It also emails the SQL to check the DB session for that form process.
    c.     If DB session is found and it does not timeout after 2 hours,
    it kills the process from unix (which in turn kills the DB session). Output is emailed.
    This are the files required for this;
    1. Cron job which calls the shell script looks like this;
    # Kill form runaway process, using over 95% cpu having no DB session or DB session for > 2hrs
    00,30 * * * * /home/applmgr/forms_runaway.sh 2>&1
    2. SQL that this script calls is /home/applmgr/frm_runaway.sql and looks like;
    set head off
    set verify off
    set feedback off
    set pagesize 0
    define form_client_PID = &1
    select count(*) from v$session s , v$process p, FND_FORM_SESSIONS_V f where S.AUDSID=f.audsid and p.addr=s.paddr and s.process='&form_client_PID';
    3. Actual shell script is /home/applmgr/forms_runaway.sh and looks like;
    # Author : Amandeep Singh
    # Description : Kills runaway form processes using more than 95% cpu
    # and Form Session with no DB session or DB session > 2hrs
    # Dated : 11-April-2012
    #!/bin/bash
    . /home/applmgr/.bash_profile
    PWD=`cat ~/.pwd`
    export PWD
    echo "`date`">/tmp/runaway_forms.log
    echo "----------------------------------">>/tmp/runaway_forms.log
    VAR1=`top -b -u applmgr -n 1|grep f60webmx|grep -v sh|grep -v awk|grep -v top|sort -nrk9|head -2|sed 's/^[ \t]*//;s/[ \t]*$//'| awk '{ if ($9 > 95 && $12 = "f60webmx") print $1 " "$9 " "$11 " "$12; }'`
    PID1=`echo $VAR1|awk '{print $1}'`
    CPU1=`echo $VAR1|awk '{print $2}'`
    TIME1=`echo $VAR1|awk '{print $3}'`
    PROG1=`echo $VAR1|awk '{print $4}'`
    PID_1=`echo $VAR1|awk '{print $5}'`
    CPU_1=`echo $VAR1|awk '{print $6}'`
    TIME_1=`echo $VAR1|awk '{print $7}'`
    PROG_1=`echo $VAR1|awk '{print $8}'`
    echo "PID1="$PID1", CPU%="$CPU1", Running Time="$TIME1", Program="$PROG1>>/tmp/runaway_forms.log
    echo "PID_1="$PID_1", CPU%="$CPU_1", Running Time="$TIME_1", Program="$PROG_1>>/tmp/runaway_forms.log
    echo " ">>/tmp/runaway_forms.log
    sleep 120
    echo "`date`">>/tmp/runaway_forms.log
    echo "----------------------------------">>/tmp/runaway_forms.log
    VAR2=`top -b -u applmgr -n 1|grep f60webmx|grep -v sh|grep -v awk|grep -v top|sort -nrk9|head -2|sed 's/^[ \t]*//;s/[ \t]*$//'| awk '{ if ($9 > 95 && $12 = "f60webmx") print $1 " "$9 " "$11 " "$12; }'`
    PID2=`echo $VAR2|awk '{print $1}'`
    CPU2=`echo $VAR2|awk '{print $2}'`
    TIME2=`echo $VAR2|awk '{print $3}'`
    PROG2=`echo $VAR2|awk '{print $4}'`
    PID_2=`echo $VAR2|awk '{print $5}'`
    CPU_2=`echo $VAR2|awk '{print $6}'`
    TIME_2=`echo $VAR2|awk '{print $7}'`
    PROG_2=`echo $VAR2|awk '{print $8}'`
    HRS=`echo $TIME1|cut -d: -f1`
    exprHRS=`expr "$HRS"`
    echo "PID2="$PID2", CPU%="$CPU2", Running Time="$TIME2", Program="$PROG2>>/tmp/runaway_forms.log
    echo "PID_2="$PID_2", CPU%="$CPU_2", Running Time="$TIME_2", Program="$PROG_2>>/tmp/runaway_forms.log
    echo " ">>/tmp/runaway_forms.log
    # If PID1 or PID2 is NULL
    if [ -z ${PID1} ] || [ -z ${PID2} ]
    then
    echo "no top processes found. Either PID is NULL OR CPU% is less than 95%. Exiting...">>/tmp/runaway_forms.log
    elif
    # If PID1 is equal to PID2 or PID1=PID_2 or PID_1=PID2 or PID_1=PID_2
    [ ${PID1} -eq ${PID2} ] || [ ${PID1} -eq ${PID_2} ] || [ ${PID_1} -eq ${PID2} ] || [ ${PID_1} -eq ${PID_2} ];
    then
    DB_SESSION=`$ORACLE_HOME/bin/sqlplus -S apps/$PWD @/home/applmgr/frm_runaway.sql $PID1 << EOF
    EOF`
    echo " ">>/tmp/runaway_forms.log
    echo "DB_SESSION ="$DB_SESSION >>/tmp/runaway_forms.log
    # if no DB session found for PID
    if [ $DB_SESSION -eq 0 ] then
    echo " ">>/tmp/runaway_forms.log
    echo "Killed Following Runaway Forms Process:">>/tmp/runaway_forms.log
    echo "-------------------------------------------------------------------">>/tmp/runaway_forms.log
    echo "PID="$PID1", CPU%="$CPU1", Running Time="$TIME1", Program="$PROG1>>/tmp/runaway_forms.log
    kill -9 $PID1
    #Email the output
    mailx -s "Killed: `hostname -a` Runaway Form Processes" [email protected] </tmp/runaway_forms.log
    cat /tmp/runaway_forms.log
    else
    # If DB session exists for PID
    if [ ${exprHRS} -gt 120 ]; then
    echo $DB_SESSION "of Database sessions exist for this forms process-PID="$PID1". But its running for more than 2 hours. ">>/tmp/runaway_forms.log
    echo "Process running time is "$exprHRS" minutes.">>/tmp/runaway_forms.log
    echo "Killed Following Runaway Forms Process:">>/tmp/runaway_forms.log
    echo "-------------------------------------------------------------------">>/tmp/runaway_forms.log
    echo "PID="$PID1", CPU%="$CPU1", Running Time="$TIME1", Program="$PROG1>>/tmp/runaway_forms.log
    kill -9 $PID1
    #Email the output
    mailx -s "`hostname -a`: Runaway Form Processes" [email protected] </tmp/runaway_forms.log
    cat /tmp/runaway_forms.log
    else
    echo "Process running time is "$exprHRS" minutes.">>/tmp/runaway_forms.log
    echo $DB_SESSION "of Database sessions exist for PID="$PID1" and is less than 2 hours old. Not killing...">>/tmp/runaway_forms.log
    echo "For more details on this PID, run following SQL query;">>/tmp/runaway_forms.log
    echo "-----------------------------------------------------------------------">>/tmp/runaway_forms.log
    echo "set pages 9999 lines 150">>/tmp/runaway_forms.log
    echo "select f.user_form_name, f.user_name, p.spid DB_OS_ID , s.process client_os_id,, s.audsid, f.PROCESS_SPID Forms_SPID,">>/tmp/runaway_forms.log
    echo "to_char(s.logon_time,'DD-Mon-YY hh:mi:ss'), s.seconds_in_wait">>/tmp/runaway_forms.log
    echo "from v\$session s , v\$process p, FND_FORM_SESSIONS_V f">>/tmp/runaway_forms.log
    echo "where S.AUDSID=f.audsid and p.addr=s.paddr and s.process='"$PID1"' order by p.spid;">>/tmp/runaway_forms.log
    mailx -s "`hostname -a`: Runaway Form Processes" [email protected] </tmp/runaway_forms.log
    cat /tmp/runaway_forms.log
    fi
    fi
    else
    #if PID1 and PID2 are not equal or CPU% is less than 95%.
    echo "No unique CPU hogging form processes found. Exiting...">>/tmp/runaway_forms.log
    cat /tmp/runaway_forms.log
    fi
    If you have the same problem with some other unix and DB processes, the script can be easily modified and used.
    But use this with thorough testing first (by commenting out <kill -9 $PID1> lines.
    Good luck.
    Edited by: R12_AppsDBA on 19/04/2012 13:10

    Thanks for sharing the script!
    Hussein

  • Swap space usage in solaris 2.6

    Hi
    I'm confused abt how the OS uses the swap space in the solaris 2.6. My system has the following configuration.
    RAM - 2560 M.
    Disk based memory for swap - 513 M (From 'top' / 'swap -l' command)
    The 'df -k' over the "/tmp" directory is showing Total around 1.8 GB space for the "swap" volume mounted over "/tmp".
    Does it mean that, only 513M of 1.8 GB is allocated for a swap slice?? BTW this is the only swap slice that our system has. So what's happening to the remaining part of 1.8 GB?? Is it getting wasted??
    When does the OS exactly starts using the disk memory?? Is it like if the OS finds that the available RAM is not sufficient for its memory operations then it starts using the disk memory??
    Any help in clearing my doubts would be highly apreciated.
    Rgds
    ravi

    Hi
    Thanks for the response. I understand the concept of anonymous memory. But what is confusing me is the "/tmp" directory. The "df -k" command over the "/tmp" directory is always showing used % as 1%. Also the "swap -s" is never matching with the output of "df -k".. ( I suppose both represent the Virtual attributes of swap space i.e. disk backed memory + portion of the RAM).
    for example following is the output of the above commands at a particular instance.
    df -k
    swap 1908728 1768 1906960 1% /tmp
    tcsb.tcs.gs1::/users/tcsuser/tmp-> swap -l
    swapfile dev swaplo blocks free
    /dev/dsk/c1t0d0s1 32,1 16 1049744 84048
    tcsb.tcs.gs1::/users/tcsuser/tmp-> swap -s
    total: 589008k bytes allocated + 98672k reserved = 687680k used, 1908920k available
    Is there anything i'm missing here??
    -ravi

  • Excess Swap Space....

    Hi all,
    Please I would like to find out if large swap space has any effect on the performance of a Server.
    Thanks

    No. Generally not a good idea.
    Oh, details? Sure.
    To begin with you do <u>not</u> want any active paging going on; it kills performance quickly. It is normal to see some memory pages being evicted to paging store; the kernel does some proactive evictions of stale memory pages just in case the room is needed sometime in the future.
    $ top -n1
    top - 07:37:55 up 3 days, 19:58,  1 user,  load average: 0.01, 0.82, 1.26
    Tasks: 302 total,  15 running, 287 sleeping,   0 stopped,   0 zombie
    Cpu(s):  4.5%us,  6.2%sy,  0.1%ni, 88.2%id,  0.8%wa,  0.0%hi,  0.1%si,  0.0%st
    Mem:   6902244k total,  6486860k used,   415384k free,   600968k buffers
    Swap:  8392696k total,    14496k used,  8378200k free,  1290552k cachedThe swap utilization reported by top(1) is misleading because it shows a static picture of how much swap space is being used. The problem is that you can't distinguish between the stale-memory evictions and the unwanted paging activity. Better to use the vmstat(1) tool for this:
    $ vmstat 1 3
    procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu-----
    r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
    1  0  14496 411440 601624 1293196    0    0    48   103   28   24  5  6 88  1  0
    61  0  14496 411316 601632 1293196    0    0     0   212 5224 6751  2  4 93  2  0
    5  0  14496 411152 601640 1293188    0    0     0    16 7205 8826  5 11 83  1  0The interesting metric here is the swap-in (si) column, which counts the number of pages read into memory from the paging store. It is OK for this to show some minor values, but should the count increase rapidly for some time you should regard this as a sign of swap activity and fix it.
    Lots of installation documentation suggests that the size of paging store be at least equal to the physical memory size or even larger. On anything much larger than an old desktop this is simply too much space: the system will become unusably slow long before this amount of space is utilized.
    Ancient history: at one time some UNIX ports used the swap space to temporarily store a memory image of a system oops. Every boot, the kernel checked the swap space for a special signature pattern to see if the swap space held such an image.
    Back to the present: having an excessively-large paging store simply wastes disk space. Sometimes the extra paging store can be useful to have because it can postpone a Linux out-of-memory (OOM) kill by the kernel if you have a run-away program leaking memory, but most likely this simply trades an OOM kill for really poor performance. Your mileage may vary, as they say.

Maybe you are looking for

  • Issue in installing JDK 1.6

    Hi experts ! i am trying to install JDK 1.6 on x86 64 bit machine with RHEL 5.4 however, when i run the bin file using "./" command from root user, i get following error :- [root@oim2 setups]# ./jdk-6u24-linux-x64.bin Unpacking... Checksumming... Ext

  • View video within iPhoto '08

    I just upgraded to iLife '08, and when I double click on a short movie clip in my library QuickTime starts but does not play the click (no quicktime window appears). It has been a while, but I believe I was able to play the movie clips from within iP

  • Steps Required for Deleting Un - Used Company codes

    Hi My client Requirement is Un - Used Company codes need to remove from Production Environment. What is the Steps Require for Remove Company codes. Regards, TML

  • FCP HD upgrade problem...

    I just upgraded from FCP 4.5 to HD. When I open FCP, the bug window pops up and FCP quits. This happens after FCP is loading sound extensions (iThink). Any idea would be helpfull. oG5..2.8...dosXX..   Mac OS X (10.4)  

  • Remove OS X, Install OS 9?

    I've been toying around with an old iMac of mine, and I'm wondering if it's possible to remove OS X off the machine, and install OS 9. First, here's the specs: It's an iMac DV/SE, made in 1999. 10GB, 512MB RAM. When I purchased it on eBay, it was run