Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: jaakola@cc.helsinki.fi
Subject: Re: OSF/1 + Oracle7 performance with interactive & batch jobs
Date: 7 Sep 94 21:52:08 EET	[thread overview]
Message-ID: <1994Sep7.215208.1@cc.helsinki.fi> (raw)
In-Reply-To: Cvqq95.G7u@mv.mv.com

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


  reply	other threads:[~1994-09-07 19:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
1994-09-15 19:50     ` Frank Abney
1994-09-07 16:35 ` Frank Abney
read-only archive

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