| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: see higher CPU usage after increase SGA
Answers in-line below.
Cary Millsap
Hotsos Enterprises, Ltd.
http://www.hotsos.com
* Nullius in verba *
Upcoming events:
- Performance Diagnosis 101: 6/22 Pittsburgh, 7/20 Cleveland, 8/10 Boston - SQL Optimization 101: 5/24 San Diego, 6/14 Chicago, 6/28 Denver - Hotsos Symposium 2005: March 6-10 Dallas - Visit www.hotsos.com for schedule details...
-----Original Message-----
From: oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org]
On Behalf Of zhu chao
Sent: Thursday, June 10, 2004 1:40 AM
To: oracle-l_at_freelists.org
Subject: Re: see higher CPU usage after increase SGA
Thanks Cary.
I am not quite agree with your definition: Utilization and Usage.
Utilization = usage_during_time_initerval/capacity_during_time_interval.
During the same time interval, capacity is the same. So utilization
increases is just the same as usage increase. Right?
Before and after my tune effort(increase data buffer by 1GB), the statspack
report time interval was the same:
9am to 15pm.
And unix CPU usage report was also between 9am to 15pm.
So I think Utilization increased by 5% is the same as CPU usage increased by
5%. Do you think so?
[Cary Millsap] Yes, if you're measuring over the exact same time period, AND if the fact that your "tuned" job is finishing sooner doesn't lead to more [other] work being squeezed into the second 15-minute interval. My suspicion is that after you reduced the response time of the job you're interested in, the 15-minute interval now contains a bit more work (that is, "usage" defined my way) than it did before. In other words, I'm proposing that think your CPU usage increased, but not because of the job you're trying to measure. And if this is true, then it's not a fair analysis, and you've fallen prey to a ratio fallacy.
Let's forget the above and go on analyze why CPU usage increased.
Possible Reasons that CPU usage can decrease: Physical IO dropped by 30%.(that is, About 100-120DiskRead/Second) Possible Reasons that CPU usage can increase: Larger data buffer, same db_block_lru_latches (=4), cache buffers chains latch is same with 10gb/11gb data buffer. So each latch does manage more block buffers.
[Cary Millsap] Maybe more CPU usage consumed spinning for latches. Maybe. But you won't know until you measure it.
My answer to your question:
1. Sorry I did not measure the application response time. As there are too
many connections to the database.
[Cary Millsap] But response time is practically the only metric that really matters...
I *GUESS* there won't be noticable speedup in the program, as database layer is just maybe 30-50% of total application response time, and the application WAS pretty fast, most of them finished in 0.001-0.05Second. 2. What is most important to me is: Scalability, that is, to support more user, more transactions. As this is difficult to measure how much more business we can support, we use System Resource Usage percent to estimate it. So sorry, the answer to your second question is: Ratio. Do you have some suggestion about measure capacity other than the resource utilization ratio? Thanks.
[Cary Millsap] Jared's right. Ratios will never work for you in this pursuit.
Regards
Zhu Chao.
The cache buffer chains latch activity report during 9am-15:00.
Get Spin &
Latch Name Requests Misses Sleeps Sleeps
1->4
/186/12/0
cache buffers lru chain 3,838,481 2,460 476
1985/474/1/0
(10gb)
cache buffers chains 1,874,057,944 588,231 16,539
572097/15757
/367/10/0
cache buffers lru chain 4,499,478 3,228 122
3107/120/1/0
> Zhu,
>
>
>
>> interval.
> Utilization - usage divided by capacity for a specified time
>> gotten worse.
> Conjecture: If CPU utilization went up, then performance must have
>
>
>
>
>
> >
>
> >
>
>
>
>
>
> >
> Hi,
> I once saw Jonathan said at metalink that huge SGA does not help in
many
>> management in unix and oracle, seems caused higher CPU usage. Has someone
> Fewer disk read of course cut CPU usage, but larger buffer cache
>> higher and higher , and not much SQL to tune we deciede to increase data
> We have a 16GB memory sun 880 with 10G data cache. As disk read get
>> after 1 day's run, we saw higher CPU usage then before we increase the
> We expect to see some CPU usage drop, as disk read drop by 30%. But
>> after SGA increase:
> http://www.cnoug.org/attachments/LDBn_cpu.bmp (the Excel picture that
> shows the CPU usage before and after increase sga).
> The following Statistics from Oracle shows the load profile before and
>
> LIO PIO Transaction/Second
> CPU usage in oracle
> 10gb 47,990.70 448.68 76.54
> 177.9
> 11gb 47,707.28 325.95 76.54
> 187.9
> Change: Nearly same Disk read dropped Transaction
rate
> CPU used increased.
> 30% keep
consistent
> >> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> Time I measure: 9 am - 15pm.
> Oracle: 5% increase.
> Unix: 6% increase.
> >
> ----------------------------------------------------------------
> >> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> ----------------------------------------------------------------
>> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> ----------------------------------------------------------------
-- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html ----------------------------------------------------------------- ---------------------------------------------------------------- Please see the official ORACLE-L FAQ: http://www.orafaq.com ---------------------------------------------------------------- To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line. -- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------Received on Thu Jun 10 2004 - 21:39:24 CDT
![]() |
![]() |