0% idle time of cpu states from top command in oracle 8i /solaris 5.9

Hi,
for long time idle time is 0% in top command :
database version:oracle 8.1.7.4.0
operating system : sun solaris 5.9
load averages: 9.32, 5.78, 6.13 15:22:13
404 processes: 387 sleeping, 13 running, 4 on cpu
CPU states: 0.0% idle, 78.2% user, 21.8% kernel, 0.0% iowait, 0.0% swap
Memory: 16G real, 7535M free, 5842M swap in use, 9965M swap free
PID USERNAME THR PRI NICE SIZE RES STATE TIME CPU COMMAND
6928 oracle 11 20 0 0K 0K run 2:20 12.62% oracle
23518 oracle 21 31 0 0K 0K run 24:37 11.69% oracle
9664 oracle 20 30 0 0K 0K run 12:41 10.83% oracle
15764 oracle 12 21 0 0K 0K run 2:18 10.28% oracle
9214 oracle 19 21 0 0K 0K run 5:52 8.58% oracle
13734 oracle 173 21 0 0K 0K cpu/3 311:23 6.11% oracle
19271 oracle 1 59 0 0K 0K cpu/0 726:20 4.45% oracle
10436 oracle 1 59 0 0K 0K sleep 81:41 4.39% oracle
22400 oracle 11 59 0 0K 0K sleep 3:22 4.35% oracle
9297 oracle 20 59 0 0K 0K cpu/2 7:39 3.66% oracle
22175 oracle 19 59 0 0K 0K sleep 6:55 3.41% oracle
9494 oracle 1 30 0 0K 0K run 0:02 2.99% oracle
10719 oracle 1 59 0 0K 0K sleep 132:48 1.55% oracle
210 oracle 1 59 0 0K 0K sleep 86:56 1.04% oracle
22084 oracle 24 59 0 0K 0K sleep 2:50 0.92% oracle
and sometime load average goes to 25-30 and cpu states is 0% idle in that load so how i can tune my database:
Regards
Prakash

Hi,
here 0% idle, 0% iowait
one of the query explain plan i am posting over here:
Operation     Object Name     Rows     Bytes     Cost     TQ     In/Out     PStart     PStop
SELECT STATEMENT Hint=CHOOSE          77 K          11800                     
COUNT STOPKEY                                        
VIEW          77 K     32 M     11800                     
SORT UNIQUE STOPKEY          77 K     10 M     8384                     
HASH JOIN OUTER          77 K     10 M     4968                     
HASH JOIN          77 K     9 M     4477                     
HASH JOIN          54 K     2 M     3071                     
TABLE ACCESS FULL     GA_INSTANCE     10      140      1                     
HASH JOIN          75 K     2 M     3069                     
HASH JOIN          75 K     1 M     2351                     
INDEX FAST FULL SCAN     CUST_ACCT_ADDR_PK     75 K     960 K     282                     
TABLE ACCESS FULL     ADDRESS     199 K     1 M     1960                     
TABLE ACCESS FULL     CUST_ACCT     112 K     1 M     593                     
TABLE ACCESS FULL     IQARA_CNR_ACT_LOG     89 K     6 M     1150                     
TABLE ACCESS FULL     NI_STATIC_IP_ADDR     21 K     317 K     60                     
Reagrds
Prakash

Similar Messages

  • What is %IOWAIT of CPU states in TOP command output

    What is "% iowait" in CPU States in Solaris? See below output it shows 11.2 % of CPU was used for IO.
    Is CPU used in IO as well? If yes how?
    last pid: 15598; load averages: 3.66, 3.39, 3.07 18:33:27
    292 processes: 283 sleeping, 1 running, 5 zombie, 3 on cpu
    CPU states: 17.9% idle, 54.8% user, 16.1% kernel, 11.2% iowait, 0.0% swap
    Memory: 16G real, 8029M free, 5425M swap in use, 19G swap free
    PID USERNAME THR PRI NICE SIZE RES STATE TIME CPU COMMAND

    The value of %iowait is relatively semi-meaningless these days and as a result we removed it from Solaris 10 onwards. The parameter is still displayed in certain commands but it will always be zero.
    System Administration Commands                         iostat(1M)
         wt        the I/O wait time is no  longer  calculated  as  a
                   percentage  of  CPU  time, and this statistic will
                   always return zero.Which means top will also show zero, eg:
    load averages:  0.08,  0.17,  0.16;               up 0+02:04:38                
    88 processes: 87 sleeping, 1 on cpu
    CPU states: 96.1% idle,  2.4% user,  1.5% kernel,  *0.0% iowait*,  0.0% swap
    Kernel: 1181 ctxsw, 21 trap, 1056 intr, 2553 syscall, 13 flt
    Memory: 3327M phys mem, 932M free mem, 1663M total swap, 1663M free swap

  • How to find the contents of proc from top command

    I had a doubt related to how to find the contents of a procedure or the statements from the PID displayed in top command if it can be done from TOAD or
    sqlplus. If we can find out the details from top like:-
    21211 oracle 16 0 3228 1012 764 R 0 0.0 0:07.68 top
    1 root 16 0 1732 552 472 S 0 0.0 0:01.29 init
    say, what is the process with PID 21211 and 1 are doing?
    I hope, my question is clear.
    Please, help in solving the doubt.
    regards

    Join v$process, v$session, and v$sql
    SQL> ed
    Zapisano file afiedt.buf
      1  SELECT p.pid, s.sid, s.serial#, sq.sql_text
      2    FROM v$session s,
      3      v$process p,
      4      v$sql sq
      5    WHERE s.paddr = p.addr
      6*   AND sq.address = s.sql_address
    SQL> /
           PID        SID    SERIAL# SQL_TEXT
            37        128          2 BEGIN EMD_NOTIFICATION.QUEUE_READY(:1, :
                                     2, :3); END;
            19        149       4566 SELECT p.pid, s.sid, s.serial#, sq.sql_t
                                     ext   FROM v$session s,     v$process p,
                                          v$sql sq   WHERE s.paddr = p.addr
                                      AND sq.address = s.sql_address
    SQL>Edited by: Łukasz Mastalerz on Feb 12, 2009 1:27 PM

  • What does %cpu mean in top command

    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    3166 apache 15 0 29444 6112 1524 S 6.6 2.4 0:00.79 httpdPID – process ID of the process
    in this above command my database showing %cpu% 90% for an oracle process.Please anyone can explain me what does it mean and is it critical

    Hi;
    As Aman mention, make some googling my friend. Your answer there ;)
    From googling:
    top command explained << video
    www.metacafe.com/watch/6896501/linux_top_command_explained/
    Tutorial:
    http://www.linux-masters.com/2009/09/top-command-explained.html
    http://linux.about.com/od/commands/l/blcmdl1_top.htm
    http://www.tech-faq.com/how-to-use-the-unix-top-command.html
    Regard
    Helios

  • Top command in oracle

    hi! i want to know about the top command used in oracle , Please if some body can send relevant information then i will be highly obliged

    Past few days I am getting crazy by reading question on this form. Someone recently asked that, apart from dedicated and shared mode, there is another type of mode database available in oracle. It really drives me crazy and now, someone ask TOP.
    Whoever asking question, should be more clear about his doubt. They simple ask short question and expect optimal answer. And the topic prolongs by asking what is your OS, what is your oracle version, when you are getting this error and etct. stuff.
    The one who is asking question, he should first be clear in his doubts, and search or google for an answer and still he has doubt, he can express all his doubts. In this way, one can learn manything.
    Jaffar

  • How to change Bulk Insert statement from MS SQL to Oracle

    Hi All,
    Good day, I would like to bulk insert the content of a file into Oracle db. May I know how to change the below MS SQL syntax to Oracle syntax?
    Statement statement = objConnection.createStatement();
    statement.execute("BULK INSERT [TBL_MERCHANT] FROM '" MERCHANT_FILE_DIR "' WITH ( FIELDTERMINATOR = '~~', ROWTERMINATOR = '##' )");
    Thanks in advance.
    cs.

    Oracle SQL Loader utility allows you to insert data from flat file to database tables.
    Go to SQL Loader links on following url to learn more on this utility
    http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/server.920/a96652/toc.htm
    Chandar

  • Horrenduos output from top.

    Hello,
    We are running Oracle 10.2.0.3 on prod. The db server (host) is being used by oracle processes like hell most of the times.
    Assume that ORACLE_SID is "SID"
    SGA is set to 5G, and PGA to 4G.
    Server is running in DEDICATED_SERVER_MODE.
    PROCESSES=2000;SESSIONS=2200;SHARED_CURSORS=1500
    Here I post the two outputs of the top command, taken in a time period of 15 minutes.
    *1. *
    top - 11:16:57 up 8 days, 22:36,  2 users,  load average: 33.26, 28.43, 24.22
    Tasks: 510 total,   3 running, 507 sleeping,   0 stopped,   0 zombie
    Cpu0  : 14.3% us,  1.0% sy,  0.0% ni,  0.2% id, 84.3% wa,  0.0% hi,  0.2% si
    Cpu1  : 20.6% us,  1.6% sy,  0.0% ni,  5.1% id, 72.4% wa,  0.2% hi,  0.2% si
    Cpu2  : 12.0% us,  1.2% sy,  0.0% ni,  2.6% id, 84.1% wa,  0.0% hi,  0.2% si
    Cpu3  : 30.1% us,  2.0% sy,  0.0% ni,  4.3% id, 63.4% wa,  0.0% hi,  0.2% si
    Cpu4  : 15.3% us,  2.9% sy,  0.0% ni,  1.8% id, 79.6% wa,  0.2% hi,  0.2% si
    Cpu5  :  8.0% us,  1.6% sy,  0.0% ni,  3.3% id, 86.7% wa,  0.0% hi,  0.4% si
    Cpu6  : 17.1% us,  2.0% sy,  0.0% ni,  5.9% id, 74.9% wa,  0.0% hi,  0.2% si
    Cpu7  : 17.5% us,  1.4% sy,  0.0% ni,  4.7% id, 76.2% wa,  0.0% hi,  0.2% si
    Cpu8  : 18.7% us,  1.4% sy,  0.0% ni,  3.7% id, 76.0% wa,  0.2% hi,  0.0% si
    Cpu9  : 23.5% us,  2.9% sy,  0.0% ni,  8.4% id, 64.5% wa,  0.0% hi,  0.6% si
    Cpu10 : 14.7% us,  1.6% sy,  0.0% ni,  5.1% id, 78.4% wa,  0.0% hi,  0.2% si
    Cpu11 : 12.0% us,  2.0% sy,  0.0% ni,  1.8% id, 84.1% wa,  0.0% hi,  0.2% si
    Mem:  24386076k total, 21804516k used,  2581560k free,    55448k buffers
    Swap: 18874360k total,   291704k used, 18582656k free, 15216096k cached
      PID USER      PR  NI %CPU    TIME+  %MEM  VIRT  RES  SHR S COMMAND
    17924 oracle    16   0   33   0:01.64  1.0 6143m 227m 221m S oracleSID (LOCAL=NO)
    17762 oracle    16   0   27   0:01.85  1.7 6143m 394m 388m S oracleSID (LOCAL=NO)
    17920 oracle    16   0   23   0:01.76  1.2 6142m 284m 278m S oracleSID (LOCAL=NO)
    17942 oracle    15   0   22   0:02.25  1.5 6145m 365m 357m D oracleSID (LOCAL=NO)
    17764 oracle    16   0   12   0:03.10  1.6 6142m 382m 376m S oracleSID (LOCAL=NO)
    17946 oracle    16   0   12   0:03.60  1.9 6142m 443m 437m S oracleSID (LOCAL=NO)
    14264 oracle    15   0   10   0:53.34  6.3 6163m 1.5g 1.4g R oracleSID (LOCAL=NO)
    18008 oracle    16   0    9   0:00.86  0.4 6151m  91m  78m S oracleSID (LOCAL=NO)
    17926 oracle    16   0    9   0:02.50  1.6 6142m 390m 384m D oracleSID (LOCAL=NO)
    17850 oracle    16   0    8   0:01.21  1.1 6143m 251m 244m S oracleSID (LOCAL=NO)
    14254 oracle    15   0    7   0:32.82  6.7 6163m 1.6g 1.5g D oracleSID (LOCAL=NO)
    17922 oracle    15   0    7   0:01.53  1.1 6145m 251m 243m D oracleSID (LOCAL=NO)
    18002 oracle    17   0    6   0:00.21  0.4 6142m  85m  80m S oracleSID (LOCAL=NO)
    13106 oracle    16   0    4   1:07.98  8.1 6163m 1.9g 1.9g D oracleSID (LOCAL=NO)
    13994 oracle    15   0    4   1:02.04  7.1 6151m 1.7g 1.6g D oracleSID (LOCAL=NO)
    17938 oracle    16   0    4   0:00.23  0.3 6143m  79m  73m R oracleSID (LOCAL=NO)
    17852 oracle    16   0    4   0:05.65  1.6 6151m 375m 364m S oracleSID (LOCAL=NO)
    12797 oracle    15   0    2   0:27.51  5.4 6251m 1.3g 1.2g D oracleSID (LOCAL=NO)
    14268 oracle    15   0    2   0:54.30  7.3 6151m 1.7g 1.7g S oracleSID (LOCAL=NO)
    10813 oracle    15   0    2   0:59.97  8.0 6235m 1.9g 1.8g D oracleSID (LOCAL=NO)
    15488 oracle    15   0    2   0:20.58  4.2 6142m 994m 988m D oracleSID (LOCAL=NO)
    17846 oracle    16   0    2   0:01.47  1.3 6151m 320m 308m S oracleSID (LOCAL=NO)
    17590 oracle    15   0    2   0:01.68  1.4 6142m 340m 334m D oracleSID (LOCAL=NO)
    18006 oracle    18   0    2   0:00.30  0.6 6143m 139m 132m D oracleSID (LOCAL=NO)
    15243 oracle    15   0    1   0:11.22  5.0 6142m 1.2g 1.1g D oracleSID (LOCAL=NO)
    17469 oracle    16   0    1   0:09.07  3.5 6147m 827m 818m S oracleSID (LOCAL=NO)
    10556 oracle    15   0    1   0:54.02  8.2 6187m 1.9g 1.9g D oracleSID (LOCAL=NO)*2. *
    top - 11:46:49 up 8 days, 23:06,  3 users,  load average: 219.93, 165.37, 105.53
    Tasks: 1772 total,  99 running, 1673 sleeping,   0 stopped,   0 zombie
    Cpu(s): 53.6% us, 35.3% sy,  0.0% ni,  0.7% id, 10.2% wa,  0.1% hi,  0.2% si
    Mem:  24386076k total, 24343428k used,    42648k free,     2476k buffers
    Swap: 18874360k total,  2439932k used, 16434428k free,  4579352k cached
      PID USER      PR  NI %CPU    TIME+  %MEM  VIRT  RES  SHR S COMMAND
       88 root      20   0   54  13:39.86  0.0     0    0    0 R kswapd2
    21503 oracle    25   0   45   0:11.43  3.4 6141m 802m 796m R oracle
    20507 oracle    16   0   28   0:05.56  3.2 6142m 758m 756m S oracle
    22653 oracle    16   0   21   0:01.37  0.9 6145m 209m 201m D oracle
    20641 oracle    16   0   13   0:07.70  3.5 6142m 834m 828m S oracle
    20575 oracle    16   0   10   0:07.92  3.3 6144m 790m 787m S oracle
    20661 oracle    15   0    8   0:07.55  3.7 6147m 886m 875m D oracle
    20597 oracle    15   0    8   0:07.70  3.1 6145m 726m 722m D oracle
    21108 oracle    15   0    7   0:07.42  3.6 6145m 855m 847m D oracle
    12002 oracle    15   0    6   0:58.91  7.8 6163m 1.8g 1.8g D oracle
    20184 oracle    15   0    6   0:08.33  2.5 6145m 588m 580m D oracle
    23620 oracle    15   0    4  10:16.86  0.7 6142m 175m 170m S oracle
    23965 oracle    15   0    4   0:03.42  1.4 6145m 321m 314m D oracle
    20747 oracle    16   0    3   0:12.58  3.5 6142m 835m 830m S oracle
    22748 oracle    15   0    3   0:09.85  1.6 6142m 385m 379m D oracle
    23608 oracle    15   0    3   2:36.86  0.3 6141m  72m  68m S oracle
    21144 oracle    16   0    3   0:05.70  3.3 6142m 775m 769m R oracle
    20290 oracle    15   0    3   0:05.63  2.7 6143m 633m 627m D oracle
    24838 oracle    17   0    3   0:06.06  0.0  3372 2100  828 R top
    21152 oracle    16   0    2   0:05.76  3.2 6142m 758m 753m S oracle
    23195 oracle    18   0    2   0:02.42  1.0 6145m 242m 233m D oracle
    13128 oracle    15   0    2   0:44.61  6.7 6155m 1.6g 1.6g D oracle
    21328 oracle    16   0    2   0:03.76  2.6 6142m 622m 616m D oracle
    21452 oracle    15   0    2   0:05.09  3.2 6142m 759m 753m S oracle
    22762 oracle    15   0    2   0:09.04  2.5 6147m 590m 580m D oracle
    23426 oracle    18   0    2   0:10.34  0.3 6147m  77m  67m D oracle
    17852 oracle    15   0    2   0:21.62  6.0 6147m 1.4g 1.4g S oracle
    21236 oracle    15   0    2   0:04.04  2.5 6142m 606m 601m D oracle
    21320 oracle    15   0    2   0:07.79  3.0 6141m 710m 705m S oracle
    21556 oracle    15   0    2   0:07.08  3.3 6144m 791m 785m S oracle
    21565 oracle    15   0    2   0:05.64  3.2 6145m 770m 761m D oracle
    21785 oracle    15   0    2   0:06.85  3.5 6142m 827m 821m S oracle
    22734 oracle    16   0    2   0:04.03  1.9 6142m 462m 456m S oracle
    22917 oracle    16   0    2   0:05.54  2.1 6141m 491m 490m S oracle
    23033 oracle    15   0    2   0:03.26  2.0 6141m 476m 471m S oracle
    23065 oracle    16   0    2   0:05.70  2.2 6142m 535m 530m S oracle
    23107 oracle    15   0    2   0:06.66  2.2 6142m 527m 523m S oracle
    23145 oracle    15   0    2   0:04.69  2.2 6141m 533m 529m S oracle
    Please find in the output above, this information about memory
    Mem:  24386076k total, 21804516k used,  2581560k free,    55448k buffers
    Mem:  24386076k total, 24343428k used,    42648k free,     2476k buffers
    From this we can understand that whole of RAM (24G) is occupied.
    Also, the swap memory is currently set to 18G, which is inadiquate, and recommended value being 2*RAM.
    Nevertheless, we can note from the above output that not even 50% of swap is being used.
    Swap: 18874360k total,   291704k used, 18582656k free, 15216096k cached
    Swap: 18874360k total,  2439932k used, 16434428k free,  4579352k cached
    _when I issue a sar -B to look at the page swap-in - swap-out statistics,_ below is the output...
    oracle@ LIVE $ sar -B
    Linux 2.6.9-67.EL (dbserver)    08/07/2009
    12:00:01 AM  pgpgin/s pgpgout/s   fault/s  majflt/s
    12:10:01 AM  34214.02    219.92      0.00      0.25
    12:20:01 AM   1541.90    149.04      0.00      0.14
    12:30:01 AM    239.14     84.37      0.00      0.06
    12:40:01 AM    394.51    101.49      0.00      0.18
    12:50:01 AM    240.18     85.75      0.00      0.06
    01:00:01 AM   4488.40     78.24      0.00      0.05
    01:10:01 AM  14981.73     75.12      0.00      0.01
    01:20:01 AM  11968.05     72.61      0.00      0.01
    01:30:01 AM  12024.09     77.68      0.00      0.09
    01:40:01 AM  11604.29     90.95      0.00      0.04
    01:50:01 AM   7893.51     70.89      0.00      0.07
    02:00:01 AM  13023.44    511.56      0.00      0.26
    02:10:01 AM  13653.04    622.65      0.00      2.21
    02:20:01 AM   5193.70   1445.15      0.00      3.56
    02:30:01 AM    290.89     70.36      0.00      0.51
    02:40:01 AM   1809.92     69.11      0.00      2.27
    02:50:01 AM   3528.53     65.65      0.00      4.27
    03:00:01 AM    269.15     62.39      0.00      0.32
    03:10:01 AM    333.97     69.48      0.00      0.50
    03:20:01 AM    200.89     60.15      0.00      0.17
    03:30:01 AM    242.82     62.09      0.00      0.25
    03:40:01 AM    402.22     74.02      0.00      0.90
    03:40:01 AM  pgpgin/s pgpgout/s   fault/s  majflt/s
    03:50:01 AM    260.14     68.57      0.00      0.44
    04:00:01 AM    213.76     63.69      0.00      0.49
    04:10:01 AM    362.30     83.63      0.00      0.63
    04:20:01 AM    210.44     61.14      0.00      0.14
    04:30:01 AM    190.25     60.83      0.00      0.20
    04:40:01 AM    365.54     66.88      0.00      0.03
    04:50:01 AM    226.78     59.52      0.00      0.11
    05:00:01 AM    226.93     60.40      0.00      0.05
    05:10:01 AM    212.83     69.12      0.00      0.19
    05:20:01 AM    215.33     60.71      0.00      0.49
    05:30:01 AM    912.79     59.17      0.00      0.28
    05:40:01 AM    370.07     66.11      0.00      0.48
    05:50:01 AM   1833.67     63.88      0.00      0.53
    06:00:01 AM    219.66     65.23      0.00      0.15
    06:10:01 AM   4620.59     69.09      0.00      0.48
    06:20:01 AM   2414.83     65.40      0.00      0.79
    06:30:01 AM    757.35     71.67      0.00      0.91
    06:40:01 AM   1887.52     78.31      0.00      1.18
    06:50:01 AM   1252.43     71.35      0.00      1.22
    07:00:01 AM   4480.48    156.01      0.00      3.01
    07:10:01 AM   2142.40     92.94      0.00      1.97
    07:20:01 AM    613.23     79.77      0.00      1.16
    07:20:01 AM  pgpgin/s pgpgout/s   fault/s  majflt/s
    07:30:01 AM    636.39     83.06      0.00      0.87
    07:40:01 AM   1397.53     83.89      0.00      0.83
    07:50:01 AM   1610.68     71.90      0.00      0.85
    08:00:01 AM   1098.05     75.91      0.00      0.93
    08:10:01 AM   1467.69     85.98      0.00      0.62
    08:20:01 AM    243.62     77.07      0.00      0.66
    08:30:01 AM   3715.55     78.32      0.00      0.77
    08:40:01 AM   4349.47     92.54      0.00      0.53
    08:50:01 AM   7316.11     93.53      0.00      0.67
    09:00:01 AM   5744.32     90.40      0.00      0.61
    09:10:01 AM   6985.40    120.99      0.00      0.84
    09:20:01 AM   5637.85    112.27      0.00      0.64
    09:30:01 AM   3055.56    160.45      0.00      0.78
    09:40:01 AM   3999.53    145.28      0.00      0.71
    09:50:01 AM   1362.71    496.15      0.00      0.72
    10:00:01 AM   4084.31    156.43      0.00      0.92
    10:10:01 AM   3285.42    201.31      0.00      0.65
    10:20:01 AM  14973.06    137.45      0.00      0.65
    10:30:01 AM  16025.03    147.66      0.00      0.49
    10:40:01 AM  14166.79    162.84      0.00      0.49
    10:50:02 AM  13530.12    978.20      0.00      0.66
    11:00:02 AM  13750.83    622.40      0.00      0.43
    11:00:02 AM  pgpgin/s pgpgout/s   fault/s  majflt/s
    11:10:01 AM  14438.37    764.58      0.00      0.42
    11:20:01 AM  14811.98    435.83      0.00      0.52
    11:30:01 AM  14656.98    734.49      0.00      1.28
    11:40:06 AM  11659.16   1771.47      0.00      8.09
    11:50:22 AM   9384.74   4075.21      0.00     73.56
    12:00:01 PM   4935.84    306.69      0.00    127.56
    Average:      5014.06    253.98      0.00      3.55You can notice that the pgpgin/s is at *14 thousand per second*.
    Is this not a dangerous situation??
    Can someone help me decode all this stuff and understand what's wrong???
    Thanks,
    Aswin.

    ice_cold_aswin wrote:
    So how do I reduce this thrashing? I do not see trashing.. as despite the number of virtual pages being high, the system does not seem to show the swap daemons taking strain. This is a sizable server running lots of processes - thus there will be a corresponding increase in swapping activity.
    There is no "+ideal swap count+" for a system (except perhaps zero, but that is unrealistic). So swapping 17,000 pages per second is neither good or bad - one has to look beyond that number alone.
    But, using SHARED_SERVER mode is not possible in our system as of now, coz we run both OLTP and REALLY BIG OLAP queries on the same database. We are thinking of having a separate reporting server, and it might take more time to get implemented.It should not be that difficult IMO. You configure the TNS connection strings of the clients accordingly. An OLTP client requests a shared server. An OLAP client requests a dedicated server.
    And this is the proper way to address scalability - consciously designing and deploying a system to scale. To attempt to address scalability as an after through by throwing more memory at it, more CPUs, bigger network pipes and so on.. that is essentially moving the performance wall some metres further away and then running even faster into it.
    >
    A lot of physical process images do translate into a largish memory footprint.but how can processes consume more memory than what they are supposed to? When the PGA_AGGREGATE_TARGET is set to 4G, all the (oracle Server Process) processes together should consume no more than 4G, correct?From the [Oracle® Database Reference|http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/initparams157.htm] guide:
    >
    PGA_AGGREGATE_TARGET specifies the target aggregate PGA memory available to all server processes attached to the instance.
    Setting PGA_AGGREGATE_TARGET to a nonzero value has the effect of automatically setting the WORKAREA_SIZE_POLICY parameter to AUTO. This means that SQL working areas used by memory-intensive SQL operators (such as sort, group-by, hash-join, bitmap merge, and bitmap create) will be automatically sized. A nonzero value for this parameter is the default since, unless you specify otherwise, Oracle sets it to 20% of the SGA or 10 MB, whichever is greater.
    Setting PGA_AGGREGATE_TARGET to 0 automatically sets the WORKAREA_SIZE_POLICY parameter to MANUAL. This means that SQL workareas are sized using the AREASIZE parameters.
    Oracle attempts to keep the amount of private memory below the target specified by this parameter by adapting the size of the work areas to private memory. When increasing the value of this parameter, you indirectly increase the memory allotted to work areas. Consequently, more memory-intensive operations are able to run fully in memory and less will work their way over to disk.
    When setting this parameter, you should examine the total memory on your system that is available to the Oracle instance and subtract the SGA. You can assign the remaining memory to PGA_AGGREGATE_TARGET.
    >
    Always refer to the manuals when in doubt. :-)
    You can find from the top command above, each of oracleSID (Server Process) is occupying 6000m (6G) of VIRTual memory. Virtual memory is not an indication of the actual physical memory footprint of a process as that usually includes shared memory to. You want to see what the actual size of that process image is in the kernel... unfortunately the standard ps command on Unix/Linux is a bit ambiguous in this regard.

  • TOP COMMAND FOR MEMORY AVALABILITY

    Hi
    My database is 10g.
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE     10.2.0.4.0     Production
    TNS for Solaris: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    I want to check the resource availability i got the info from top command
    Memory: 128G real, 6595M free, 67G swap in use, 275G swap free
    PID USERNAME LWP PRI NICE SIZE RES STATE TIME CPU COMMAND
    20745 oracle 2 44 0 0K 0K sleep 70:21 0.65% oracle
    25404 oracle 1 55 0 0K 0K sleep 2:30 0.60% oracle
    12551 oracle 2 59 0 0K 0K sleep 10:31 0.33% oracle
    16841 odiuser 1 59 0 11M 3408K cpu/51 0:02 0.06% top
    22475 oracle 1 53 2 0K 0K sleep 18:12 0.03% oracle
    13007 oracle 2 59 0 0K 0K sleep 12:30 0.03% oracle
    14879 oracle 2 59 0 0K 0K sleep 2:38 0.02% oracle
    13035 oracle 1 59 0 0K 0K sleep 6:46 0.02% oracle
    22471 oracle 2 53 2 0K 0K sleep 16:28 0.02% oracle
    13029 oracle 2 59 0 0K 0K sleep 5:30 0.02% oracle
    13000 oracle 1 59 0 0K 0K sleep 3:47 0.02% oracle
    2770 oracle 27 29 10 259M 162M sleep 2:09 0.01% java
    28056 odiuser 26 47 4 333M 189M sleep 286:00 0.01% java
    11218 oracle 2 54 0 0K 0K sleep 4:22 0.01% oracle
    17757 oracle 1 59 0 0K 0K sleep 0:00 0.01% oracle
    how to analyze the with above inforamtion whether it has enough memory or not.
    load averages: 0.79, 1.12, 1.33 06:25:09
    181 processes: 180 sleeping, 1 on cpu
    CPU states: 97.7% idle, 1.6% user, 0.7% kernel, 0.0% iowait, 0.0% swap
    can anyone analyze help me to analyze the following
    load averages
    processes
    cpu states
    Please advice.

    Your system was sitting idle for 97.7%
    NO swaaping is gioin on, for more info you can corsscheck the same with VMSTAT,IOSTAT
    for more info about top command utility
    http://linux.about.com/od/commands/l/blcmdl1top.htm_

  • Output of "top" command

    i can't understand the CPU usage in top command. even the man page does not describe the necessary options. here is what i have from the "top":
    Cpu(s):  3.7%us,  1.0%sy,  0.0%ni, 95.3%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
    how will i know which option represents the CPU  in use and which represents free CPU ?  (i mean the meanings of us, wa, id and sy )
    also, what is the difference between VIRT, RES  and SHR memories. which one represents RAM ?

    us is processor time used by userspace processes, sy by kernel, ni by niced processes, id means idle, wa denotes waiting for I/O, hi and si are hard/soft interrupts.
    Read "man top" for VIRT etc. descriptions.

  • Query on Linux 'top' command in Linux for oracle user

    This is the output of 'top' command in one of my linux server hosting One Oracle instance with 600MB SGA and 400MB PGA. One one instance is up in this server.
    top - 14:36:37 up 4:26, 3 users, load average: 0.05, 0.11, 0.28
    Tasks: 124 total, 1 running, 123 sleeping, 0 stopped, 0 zombie
    Cpu(s): 0.2% us, 0.1% sy, 0.0% ni, 66.6% id, 33.1% wa, 0.0% hi, 0.0% si
    Mem: 12299332k total, *2569836k* used, 9729496k free, 61288k buffers
    Swap: 20972816k total, 0k used, 20972816k free, 2274852k cached
    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    6345 oracle 16 0 37132 1752 1172 S 0.0 0.0 0:00.08 sshd
    6346 oracle 16 0 54004 1536 1208 S 0.0 0.0 0:00.02 bash
    6423 oracle 16 0 45376 10m 6228 S 0.0 0.1 0:00.25 tnslsnr
    6471 oracle 16 0 740m 17m 13m S 0.0 0.1 0:00.02 oracle
    6473 oracle 16 0 739m 15m 12m S 0.0 0.1 0:00.01 oracle
    6475 oracle 16 0 739m 32m 29m S 0.0 0.3 0:00.07 oracle
    6477 oracle 16 0 742m 50m 44m S 0.0 0.4 0:00.27 oracle
    6479 oracle 16 0 754m 23m 19m S 0.0 0.2 0:00.43 oracle
    6481 oracle 16 0 739m 24m 20m S 0.0 0.2 0:00.61 oracle
    6483 oracle 16 0 740m 88m 83m S 0.0 0.7 0:00.71 oracle
    6485 oracle 16 0 739m 22m 19m S 0.0 0.2 0:00.01 oracle
    6487 oracle 16 0 740m 30m 25m S 0.0 0.3 0:00.15 oracle
    6489 oracle 16 0 741m 55m 48m S 0.0 0.5 0:00.29 oracle
    6491 oracle 16 0 739m 24m 20m S 0.0 0.2 0:00.01 oracle
    6493 oracle 16 0 739m 15m 11m S 0.0 0.1 0:00.01 oracle
    6495 oracle 16 0 739m 14m 11m S 0.0 0.1 0:00.00 oracle
    6622 oracle 16 0 739m 16m 13m S 0.0 0.1 0:00.00 oracle
    6626 oracle 16 0 740m 79m 74m S 0.0 0.7 0:01.95 oracle
    6636 oracle 16 0 740m 28m 23m S 0.0 0.2 0:00.06 oracle
    6638 oracle 16 0 739m 16m 12m S 0.0 0.1 0:00.01 oracle
    6846 oracle 16 0 739m 19m 16m S 0.0 0.2 0:00.02 oracle
    6848 oracle 16 0 739m 24m 21m S 0.0 0.2 0:00.04 oracle
    6850 oracle 16 0 739m 19m 16m S 0.0 0.2 0:00.02 oracle
    6852 oracle 16 0 739m 19m 16m S 0.0 0.2 0:00.01 oracle
    6854 oracle 16 0 739m 30m 26m S 0.0 0.3 0:00.12 oracle
    6856 oracle 15 0 739m 28m 24m S 0.0 0.2 0:00.18 oracle
    6858 oracle 15 0 740m 40m 35m S 0.0 0.3 0:06.39 oracle
    6862 oracle 16 0 739m 32m 28m S 0.0 0.3 0:02.25 oracle
    6864 oracle 16 0 739m 19m 16m S 0.0 0.2 0:00.02 oracle
    6866 oracle 16 0 739m 19m 16m S 0.0 0.2 0:00.03 oracle
    6868 oracle 16 0 739m 19m 16m S 0.0 0.2 0:00.02 oracle
    7480 oracle 15 0 37264 1668 1092 S 0.0 0.0 0:00.15 sshd
    7481 oracle 15 0 54004 1528 1196 S 0.0 0.0 0:00.05 bash
    10333 oracle 16 0 739m 20m 16m S 0.0 0.2 0:00.00 oracle
    10337 oracle 15 0 6168 1080 768 R 0.0 0.0 0:00.00 top
    Total RAM as seen from top command is 12G.
    *2569836* - Total RAM which is being used currently .
    How can I see the total RAM used by all Oracle Processes running in this server. The server is Linux X86 64 Bit. Can I sum up the values under 'VIRT' column of 'top' command to see the total RAM used ?
    Is there a way to see the total RAM and CPU used by Oracle from top ?
    'VIRT' is the virtual memory - In what way is this related to the figure above, which is the physical memory (RAM) ?
    Thanks in Advance
    SSN
    Edited by: SSNair on Oct 21, 2010 2:39 AM

    Oracle used shared memory to implement the SGA, which constituted the largest memory consumption of the Oracle instance. The problem is that in many modern OS, including linux, it is hard to define the actual memory usage fo a software. This is because the memory used by a process is actually composed of shared (e.g., shared memory, shared library, executable code) and private (e.g., the heap, the stack) components. Utilities like top, ps, etc reports all memory visible by a process, disregarding whether it is shared or not. As a result, the total of VIRT etc will be inflated by the shared components. For a more accurate figure of memory usage, shared memory / library / code should be counted once.
    Before 11g, Oracle used System V ipc, and the amount of memory allocated can be checked using ipcs. In 11g, Oracle switched to /dev/shm, use df to check the memory allocation. (Thanks user11150436)
    The "Mem used" figure in top is the actual usage of the memory: shared memory and library are not multi-counted. However, Linux will always cache (read before actually requested) and buffer (write after signalling completion) disk I/O. Therefore, "Mem used" is almost always very close to the amount of physical memory. "Mem used" - "buffers" - "cached" reflects the memory actually used by the OS and all programs more accuately.
    And you can use the pmap utility to check the memory map. Then you classify the sharable and unsharable memory usage to calculate a more accurate result suiting your need. You need OS knowledge to understand the output.

  • Cpu idle time is 2%

    when i saw the st06  at the time of peak hours in the business the cpu idle time is below 30%

    Hi ,
    you need to check the process which are running on SAP system.
    1-You get this info by ST06-> TOP CPU
    2-or from OS level via windows->task manager and see the process which are using high CPU execution time
    In case of the process which are not from SAP, then you have to contact your OS network team, eg If you see any antivirus process consuming a lot of time.
    Pls Fete points if useful .
    Regards,
    M.A

  • Native SQL from ABAP - ORA 02396 max idle time exceeded

    Hello,
      I am trying to read a table outside of the R/3 environment using native SQL statements. I'm getting the data just fine. But every other time (depending on elapsed time), I get the ORA-02396 exceeded maximum idle time, connect again. Here's the SQL code I'm using and I'm obviously not getting disconnected but I'm not sure why. Any help?
    Open a native SQL connection.
      EXEC SQL.
        connect to 'ONECD'
      ENDEXEC.
    Retrieve information from the BVER tables.
      EXEC SQL PERFORMING read_dental.
        select emp_ssn_num, emp_fname, emp_lname,
               to_char(start_date, 'YYYYMMDD') as start_date,
               rec_type,
               to_char(eff_date, 'YYYYMMDD') as eff_date,
               vendor_plan_id
            into :dental
            from opr$8oc.BVER_CURR_DENTAL_MASTER
      ENDEXEC.
      EXEC SQL PERFORMING read_medical.
        select emp_ssn_num, emp_fname, emp_lname, rec_type,
               to_char(start_date, 'YYYYMMDD') as start_date,
               to_char(eff_date, 'YYYYMMDD') as eff_date,
               network_code, pcp_number, patient_flag,
               vendor_plan_id,
               to_char(network_eff_date, 'YYYYMMDD') as
                       network_eff_date,
               to_char(pha_eff_date, 'YYYYMMDD') as
                       pha_eff_date
             into :medical
             from opr$8oc.BVER_CURR_MEDICAL_MASTER
      ENDEXEC.
    Disconnect from the native SQL connection.
      EXEC SQL.
        DISCONNECT 'ONECD'
      ENDEXEC.
    The system log has messages like 'Work process is in reconnect status' and 'Work process has left reconnect status' after the ORA-02396 message. And I specifically do a disconnect at the end and a connect at the beginning, but it looks like it is trying to do a reconnect?
    Thanks,
    Diane

    Hi Daine,
    Oracle Parameter IDLE_TIME set by the administrator.
    1. Since you are using Secondary database
       connection, the connection must
       have been made with the help of BASIS Team.
    2. This secondary database ORACLE
       has some settings/parameters
       which have been set to say 10 minutes, 60 minutes etc.
       , so what happens,
       if there is NO ACTIVITY / NO SQL / NO INTERACTION
       with the database ,
       the connection is IDLE
       and hence ORACLE then disconnects by itself.
    3. Contact your basis team / oracle administarotr
      team to INCREASE this setting.
      (they do it for some security purpose, firewall etc)
    I hope it helps.  
    Regards,
    Amit M.
    Message was edited by: Amit Mittal

  • Code to navigate to certain state during long idle time.

    My question is aimed at trying to keep my program from burning in an image on a monitor or just to navigate my program back to the begining when there is a long idle time.
    Does anyone know of the code that can be used inside of FC? My program is running from the AIR installer so any code would need to be inserted while the FC project is open.
    Any ideas??
    Thanks.
    v4long

    Ok..
    I am working with the sample code and I just have one question going back to your email:
    "change the state names in the copied code snippet to match the state names that you are using."
    You are refering to this code section:  ?
    private function userIdleHandler(evt:Event):void
                trace("userIdleHandler");
                /*currentState = "Idle";*/
            private function userActiveHandler(evt:Event):void
                trace("userActiveHandler");
                /*currentState = "Main";*/
    >>>>>>>
    You know the number and type of states that I have but I am going to just make up some sample states in order to understand the placement of code.
    I have a MAIN state then I have five other states ( A, B, C, D, E). Where would I place those state names in the code?
    I am almost there. I can feel it!!!
    Here is the whole code for reference:
    <s:WindowedApplication xmlns:ATE="http://ns.adobe.com/ate/2009" xmlns:ai="http://ns.adobe.com/ai/2009" xmlns:lib="assets.graphics.AGCO_Map_Master.*" xmlns:fc="http://ns.adobe.com/flashcatalyst/2009" xmlns:d="http://ns.adobe.com/fxg/2008/dt" xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:flm="http://ns.adobe.com/flame/2008" xmlns:graphics="assets.graphics.*" xmlns:fclib="com.adobe.flashcatalyst.components.*" xmlns:mx="library://ns.adobe.com/flex/mx" backgroundColor="#FFFFFF" height="768" preloaderChromeColor="#FFFFFF" width="1024"
                   creationComplete="init()">
        <fx:Style source="Main.css"/>
        <fx:Script><![CDATA[
            private function init():void
                var nativeApp:NativeApplication = NativeApplication.nativeApplication;
                   //idle time set to 7 min.
                nativeApp.idleThreshold = 420;
                nativeApp.addEventListener(Event.USER_IDLE, userIdleHandler);
                nativeApp.addEventListener(Event.USER_PRESENT, userActiveHandler);
            private function userIdleHandler(evt:Event):void
                trace("userIdleHandler");
                /*currentState = "Idle";*/
            private function userActiveHandler(evt:Event):void
                trace("userActiveHandler");
                /*currentState = "Main";*/

  • My PC has blue screened twice in the past week so I force quit it it came back on a few times after that it is now grey screening with inch wide blue lines from top to bottom the apple logo is there and it is trying to boot up but nothing happening

    My Mac has blue screened a couple of times this week it started to work a couple of times after that but now it is grey screening with inch wide blue lines from top to bottom the apple logo is also there it is trying to boot up again but won't. Not sure don't know anything about how to fix things but I suspect the fan has stopped working as I can't hear one. The problem I have I now live in Turkey and I am 1000 km from the nearest apple shop which is in Istanbul I believe and I now live in Didim, Altinkum I don't trust the everyday Turkish shop to take it to as they will tell you they know how to fix it but will probably make it worse, typical in Turkey. Please can someone help as we use it for our business and obviously I need it up and running ASAP I am using IPad and iPhone at moment but can't access my files which are on PC.

    Thanks for that information!
    I'm sure I will be calling AppleCare, but the problem is, they charge for the phone calls don't they? Because I don't have money to be spending to be on the phone with a support service.
    In other things, it seemed like the only time my MacBook was working was when I had Snow Leopard without the 10.6.8 update download that was supposed to be done to prepare for OS X Lion.
    When I look at the information of my HD it says that I have 10.6.8 but that was the install that it claimed to have failed and caused me to restart resulting in all of the repeated problems.
    Also, because my computer is currently down, and I've lost all files how would that effect the use of my iPhone? Because if it doesn't get fixed by the time OS 5 is released, how would I be able to upgrade?!

  • Find CPU idle time

    Can anybody help me out in finding the cpu time or cpu usage percentage for a particular process in windows xp environment.
    Any suggestion should be of a great help.
    Thanks
    Muthu

    Can this found using java??Nope.
    This is an OS specific question (Windows XP in your case).
    Java cannot be useful in this area.
    As already mentioned maybe the best way is to search at msdn.microsoft.com and google groups with appropriate keywords.
    My experience with your specific issue is to use the WMI (Windows Management Instrumentation) Performance Counter Win32 Classes components which are a set of COM objects (available on NT/2K/XP/2K3/Vista) that allows to do all sort of administrative tasks with the OS.
    One of these classes ([url http://msdn.microsoft.com/library/en-us/wmisdk/wmi/win32_perfrawdata_perfproc_process.asp?frame=true]Win32_PerfRawData_PerfProc_Process class) is a performance counters that monitor running application program and system processes.
    You should have a look at this post to know how to use this class:
    http://groups.google.com/group/microsoft.public.win32.programmer.wmi/msg/ac8691a2f885f29e
    By the way the microsoft.public.win32.programmer.wmi group is a good start to read/ask questions about WMI related issues.
    To integrate your WMI solution with Java you have at least two solutions:
    1- ( This is the simple solution. ) Create your vbs script (see the post above) then use Runtime.exec() to execute it and retrieve the appropriate information.
    2- Use [url http://sourceforge.net/projects/jacob-project/]JACOB or any other Java COM bridge to instanciate and use
    the COM object to retrieve the appropriate information.
    Regards

Maybe you are looking for

  • TS1741 I have two apple TV's and they both show in the remote App but I have to inplug to get them to respond. Both of them.

    I have installed a second Apple TV.  Both show in my remote App.  But both will not wake up or connect unless I reboot them.  Then they work fine until the next day.  They both are doing this.  I had no problems until I installed the second.  Could t

  • IPod to home theater- have video but absolutely NO AUDIO!!!

    I just bought a 30GB iPod for Christmas as well as the DLO HomeDock Deluxe. I connected everything perfectly fine: S-Video to the TV, Red (R), White (L) RCA cables to the stereo receiver. The video is working but I cannot get audio at all. No music,

  • SQL Server DTS packages migration

    How to move DTS packages from SQL Server 2000 to SQL server 2008 version  can you plz provide me step by step procedure if i migrated DTS packages by using of save as option what will happen, is it working properly  and i had migrated DTS packages fr

  • Itunes 9 blank screen

    I have a Compaq laptop with windows vista. Since upgrading to 9.0 I only get a blank screen in the itunes store. When I click on the store, the progress bar jumps to about halfway and hangs for a while, then ends, and all I have is the blank screen.

  • Electronic Bank Reconciliation statement problem

    Hi I am executing ff_5 t.code  some transaction has been posted  and some of the tranactions are showing  followoing error. Error: (F5 263) The difference is too large for clearing  Regards Venki