From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,e7be033efe10b44 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-09-08 00:22:01 PST Path: nntp.gmd.de!newsserver.jvnc.net!howland.reston.ans.net!cs.utexas.edu!uunet!EU.net!sunic!news.funet.fi!news.csc.fi!news.helsinki.fi!cc.helsinki.fi!jaakola From: jaakola@cc.helsinki.fi Newsgroups: comp.unix.osf.osf1 Subject: Re: OSF/1 + Oracle7 performance with interactive & batch jobs Date: 7 Sep 94 21:52:08 EET Organization: University of Helsinki Message-ID: <1994Sep7.215208.1@cc.helsinki.fi> References: <1994Sep5.191932.1@cc.helsinki.fi> NNTP-Posting-Host: hylka.helsinki.fi Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit In article , 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