From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,632cb0efa9bd2e4b,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-02-16 14:21:23 PST Path: gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!att-in!news.bu.edu!olivea!charnel!yeshua.marcam.com!zip.eecs.umich.edu!newsxfer.itd.umich.edu!nntp.cs.ubc.ca!alberta!quartz.ucs.ualberta.ca!unixg.ubc.ca!sevior!wkeil From: wkeil@sevior.triumf.ca (Werner Keil) Newsgroups: comp.unix.osf.osf1 Subject: Excessive cpu usage of low priority processes in OSF/1 Date: 16 Feb 94 22:21:23 GMT Organization: The University of British Columbia Message-ID: NNTP-Posting-Host: sevior.triumf.ca Hi everyone, we are having problems with the cpu usage of low priority processes on our Alphas and I was wondering if anybody else has observed this kind of behavior, or, even better, knows a fix. Here is the problem in a nutshell: Platforms: AXP 3000/400, OSF/1 V1.3 rev. 111; Decstation 5000/240, Ultrix 4.3. Run two cpu-intensive, low I/O, processes, one at high (0) and one at lowest (20) priority. On Ultrix, the low prio process will consume less than 1% (0.5% on average), but on OSF/1 it will consistently get 20% and more! Here is a sample ps listing: USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND marcello 13072 77.0 1.3 3.71M 808K ?? R 00:01:45 673:31.26 lh2batch gingras 29052 22.0 0.3 2.29M 192K ?? R N Feb 02 5189:36.46 R8.out where lh2batch is running at priority 0, and R8.out at 20. Now, I know that cpu usage fluctuates and even a lowest-priority process will not necessarily sleep or get swapped and get some cpu time (provided the system is not too busy), but 20% (vs. 0.5% on a Decstation)?! /usr/ucb/nice and /usr/sbin/renice (which are supposed to work in V1.3) don't make a difference. I also did some continuous monitoring with top (Ultrix) and syd (OSF), and the results confirm ps, so it's not just a temporary fluctuation (provided ps and syd can be trusted). Our jobs, by the way, are straightforward, cpu-hungry Monte Carlos with hardly any I/O; on the off-chance that there might be something funny in the code I also tested a simple looping csh script (while(1) ...). Result: 0 - 0.5% cpu use on Ultrix, 20 - 25% on OSF/1! So, what gives? Is nice/renice still broken in V1.3? Is scheduling in OSF so different from BSD that this is actually correct behavior (hard to believe)? Is it just some kernel parameters that need adjusting? Any hints would be greatly appreciated (including RTFM, as long as you tell me which FM). Thanks, Werner -------------------------------------------------------------------------- Werner Keil Systems Manager TRIUMF/University of BC Vancouver, BC wkeil@reg.triumf.ca wkeil@ubcd05.physics.ubc.ca