Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* OSF/1 + Oracle7 performance with interactive & batch jobs
@ 1994-09-05 17:19 jaakola
  1994-09-07  3:41 ` cherkus
  1994-09-07 16:35 ` Frank Abney
  0 siblings, 2 replies; 5+ messages in thread
From: jaakola @ 1994-09-05 17:19 UTC (permalink / raw)


We have a DEC 4000/610 with OSF/1 V1.3 running Oracle7 7.0.15.4.
We have about 55 interactive SQL*Forms 3.0 users and we run at the same
time about 5..10 batch reports. We use MTS with 10 server processes. We
have 196 MB RAM and the exp dump file size is about 500MB.

We have a performance problem: when we have many large batch reports
running the interactive response time is slow. And when I look at
"vmstat" output, the run queue is about 15. I think that the problem is
that the big reports are very CPU intensive (after having loaded all
their data into Oracle databases buffers in RAM) and that they use all
of their CPU timeslice. So the interactive processes have to wait long
before they get their slice of the CPU - i.e. the run queue is long.

How do I reduce the maximum timeslice a CPU-intensive process can get in
OSF/1? I read man an hour yesterday without getting any info. They
referred to a printed manual which I don't have at hand.

Another question: would upgrading to OSF/1 V2.X & Oracle 7.0.16.4 affect
performance in any way?
--
Juhani Jaakola, jaakola@cc.helsinki.fi


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: OSF/1 + Oracle7 performance with interactive & batch jobs
  1994-09-05 17:19 OSF/1 + Oracle7 performance with interactive & batch jobs jaakola
@ 1994-09-07  3:41 ` cherkus
  1994-09-07 19:52   ` jaakola
  1994-09-07 16:35 ` Frank Abney
  1 sibling, 1 reply; 5+ messages in thread
From: cherkus @ 1994-09-07  3:41 UTC (permalink / raw)


jaakola@cc.helsinki.fi wrote in article <1994Sep5.191932.1@cc.helsinki.fi> :
>
>We have a DEC 4000/610 with OSF/1 V1.3 running Oracle7 7.0.15.4.
>We have about 55 interactive SQL*Forms 3.0 users and we run at the same
>time about 5..10 batch reports. We use MTS with 10 server processes. We
>have 196 MB RAM and the exp dump file size is about 500MB.
>
>We have a performance problem: when we have many large batch reports
>running the interactive response time is slow. And when I look at
>"vmstat" output, the run queue is about 15. I think that the problem is
>that the big reports are very CPU intensive (after having loaded all
>their data into Oracle databases buffers in RAM) and that they use all
>of their CPU timeslice. So the interactive processes have to wait long
>before they get their slice of the CPU - i.e. the run queue is long.

Sounds reasonable. I assume you've tried using 'renice' to push
down the scheduling priority of the big jobs.  

FYI, I have an alias that expands to:

ps axo pid,pri,cp,pcpu,pmem,usertime,systime,sl,nvcsw,nivcsw,ucomm

which prints many things, among them IVCSW, the number of involuntary
context switches.  This should show you which procs run out of time and
get preempted.

>How do I reduce the maximum timeslice a CPU-intensive process can get in
>OSF/1? I read man an hour yesterday without getting any info. They
>referred to a printed manual which I don't have at hand.

You can't with the standard kernel - it's hardcoded.  If you build a
real-time kernel, I believe each process can call posix style library
functions to ask for custom schedule policies.  I think you can then
write small wrapper programs that set the policies you want then exec
your apps.  But please don't go on this - get out the real-time manual
and make sure I'm remembering all of this correctly.  And the real-time
kernel has plusses and minuses: the extra functionality adds
path length to many things.

--
Dave Cherkus          UniMaster, Inc.         cherkus@unimaster.com 


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: OSF/1 + Oracle7 performance with interactive & batch jobs
  1994-09-05 17:19 OSF/1 + Oracle7 performance with interactive & batch jobs jaakola
  1994-09-07  3:41 ` cherkus
@ 1994-09-07 16:35 ` Frank Abney
  1 sibling, 0 replies; 5+ messages in thread
From: Frank Abney @ 1994-09-07 16:35 UTC (permalink / raw)


In article <1994Sep5.191932.1@cc.helsinki.fi>, jaakola@cc.helsinki.fi
wrote:

> We have a DEC 4000/610 with OSF/1 V1.3 running Oracle7 7.0.15.4.
> We have about 55 interactive SQL*Forms 3.0 users and we run at the same
> time about 5..10 batch reports. We use MTS with 10 server processes. We
> have 196 MB RAM and the exp dump file size is about 500MB.
> 
> We have a performance problem: when we have many large batch reports
> running the interactive response time is slow. And when I look at
> "vmstat" output, the run queue is about 15. I think that the problem is
> that the big reports are very CPU intensive (after having loaded all
> their data into Oracle databases buffers in RAM) and that they use all
> of their CPU timeslice. So the interactive processes have to wait long
> before they get their slice of the CPU - i.e. the run queue is long.
> 
> How do I reduce the maximum timeslice a CPU-intensive process can get in
> OSF/1? I read man an hour yesterday without getting any info. They
> referred to a printed manual which I don't have at hand.
> 
> Another question: would upgrading to OSF/1 V2.X & Oracle 7.0.16.4 affect
> performance in any way?
> --
> Juhani Jaakola, jaakola@cc.helsinki.fi

A problem you may not be thinking about is the processes are continually
moving the data out of the SGA.  The on-line users grab their data and load
it into
the db_buffers.  The bacth process may then come along and read large
amounts
of data which may cause the on-line user to have to re-read his data from
disk because their data was pushed out by the batch process.

Another problem I have had with intense batch jobs, is they have a habit
of hogging the rollback segments.  I have seen users seem hung, when in
reality, they were just attached to the same rollback as one of the batch
jobs that was doing heavy updates.

You can also have locking problems if the batch and on-line processes are
accessing the same tables/records.

Have you used the Oracle Monitor yet to look at statistics from that view.

Frank Abney, sxfla@orca.alaska.edu


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: OSF/1 + Oracle7 performance with interactive & batch jobs
  1994-09-07  3:41 ` cherkus
@ 1994-09-07 19:52   ` jaakola
  1994-09-15 19:50     ` Frank Abney
  0 siblings, 1 reply; 5+ messages in thread
From: jaakola @ 1994-09-07 19:52 UTC (permalink / raw)


In article <Cvqq95.G7u@mv.mv.com>, cherkus@fastball.unimaster.com writes:
> jaakola@cc.helsinki.fi wrote in article <1994Sep5.191932.1@cc.helsinki.fi> :
>>
>>We have a DEC 4000/610 with OSF/1 V1.3 running Oracle7 7.0.15.4.
>>We have about 55 interactive SQL*Forms 3.0 users and we run at the same
>>time about 5..10 batch reports. We use MTS with 10 server processes. We
>>have 196 MB RAM and the exp dump file size is about 500MB.
>>
>>We have a performance problem: when we have many large batch reports
>>running the interactive response time is slow. And when I look at
>>"vmstat" output, the run queue is about 15. I think that the problem is
>>that the big reports are very CPU intensive (after having loaded all
>>their data into Oracle databases buffers in RAM) and that they use all
>>of their CPU timeslice. So the interactive processes have to wait long
>>before they get their slice of the CPU - i.e. the run queue is long.
> 
> Sounds reasonable. I assume you've tried using 'renice' to push
> down the scheduling priority of the big jobs.  

I have heard that you should not change Oracle server process
priorities, because a low-priority job could then lock a resource in
Oracle kernel so that even the higher-priority processes have to wait
for that.

And we use MTS, which means there are fixed number of Oracle server
processes. A server could serve an on-line user or a batch process, so
we should renice the correct server both before and after the batch. You
know, an Oracle program has its SQL statements stored as normal strings,
which it sends to a server via UNIX IPC to be parsed, optimized and
executed. In my case most of the job is done in the servers, the user
processes don't use much CPU.

So I think lowering the maximum timeslice is a better alternative to
renice.

> 
> FYI, I have an alias that expands to:
> 
> ps axo pid,pri,cp,pcpu,pmem,usertime,systime,sl,nvcsw,nivcsw,ucomm
> 
> which prints many things, among them IVCSW, the number of involuntary
> context switches.  This should show you which procs run out of time and
> get preempted.

Thanks, I'll try it out!

> 
>>How do I reduce the maximum timeslice a CPU-intensive process can get in
>>OSF/1? I read man an hour yesterday without getting any info. They
>>referred to a printed manual which I don't have at hand.
> 
> You can't with the standard kernel - it's hardcoded.  If you build a

WHAT? NO WAY OF CHANGING IT? ARE YOU SURE?

> real-time kernel, I believe each process can call posix style library
> functions to ask for custom schedule policies.  I think you can then
> write small wrapper programs that set the policies you want then exec
> your apps.  But please don't go on this - get out the real-time manual
> and make sure I'm remembering all of this correctly.  And the real-time
> kernel has plusses and minuses: the extra functionality adds
> path length to many things.

Seems a bit complicated... Does the policy stay in effect accross an
exec()?
--
Juhani Jaakola, jaakola@cc.helsinki.fi


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: OSF/1 + Oracle7 performance with interactive & batch jobs
  1994-09-07 19:52   ` jaakola
@ 1994-09-15 19:50     ` Frank Abney
  0 siblings, 0 replies; 5+ messages in thread
From: Frank Abney @ 1994-09-15 19:50 UTC (permalink / raw)


> >>We have a DEC 4000/610 with OSF/1 V1.3 running Oracle7 7.0.15.4.
> >>We have about 55 interactive SQL*Forms 3.0 users and we run at the same
> >>time about 5..10 batch reports. We use MTS with 10 server processes. We
> >>have 196 MB RAM and the exp dump file size is about 500MB.
> >>
> >>We have a performance problem: when we have many large batch reports
> >>running the interactive response time is slow. And when I look at
> >>"vmstat" output, the run queue is about 15. I think that the problem is
> >>that the big reports are very CPU intensive (after having loaded all
> >>their data into Oracle databases buffers in RAM) and that they use all
> >>of their CPU timeslice. So the interactive processes have to wait long
> >>before they get their slice of the CPU - i.e. the run queue is long.

The problem that has been created may not be at the system level.  There
are some very significant Oracle processes going on at this point.

Large batch jobs have a way of hogging the rollback segments time in
Oracle.  If a large batch job does not to relatively frequent commits, it
can make a user seem like they are hung.  I have had users waiting on a
commit for 20 minutes because a batch job was doing some heavy process on a
set of about 2500 records without a commit and was hitting away at the same
rollback segment.  

Have the DBA look at the data cache miss ratio.  If your shared_pool_area
is not large enough, a great to of i/o happens in processing the SQL
statments.  If an sql statement is not maintained in this area, it has to
be reparced when it is needed again.  If you are continually flooding this
are with statements, you may be moving data through this memory area to
quickly.

The database buffers have a similar affect.  If a user reads a record into
the database buffer in the SGA, then a batch process dumps large amounts of
data into the buffer, the users data may be swapped out.  When the users
try to access there data again, they have to do another physical read.  If
your batch jobs to large amounts of database access, this would be a very
likely place for your problem.  

Your DBA should try to run the bstat and estat process during these heavy
times to seen how Oracle is performing and where contention at the database
level may to occuring.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1994-09-15 19:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-09-05 17:19 OSF/1 + Oracle7 performance with interactive & batch jobs jaakola
1994-09-07  3:41 ` cherkus
1994-09-07 19:52   ` jaakola
1994-09-15 19:50     ` Frank Abney
1994-09-07 16:35 ` Frank Abney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox