From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,6c2a6482b888b849,start X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2003-09-03 20:40:36 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!elnk-pas-nf1!newsfeed.earthlink.net!cyclone.socal.rr.com!news-west.rr.com!news.rr.com!cyclone.tampabay.rr.com!news-post.tampabay.rr.com!twister.southeast.rr.com.POSTED!53ab2750!not-for-mail From: "David Gore" Newsgroups: comp.unix.tru64 Subject: CPU usage explanation X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: Date: Thu, 04 Sep 2003 03:40:35 GMT NNTP-Posting-Host: 66.26.39.75 X-Complaints-To: abuse@rr.com X-Trace: twister.southeast.rr.com 1062646835 66.26.39.75 (Wed, 03 Sep 2003 23:40:35 EDT) NNTP-Posting-Date: Wed, 03 Sep 2003 23:40:35 EDT Organization: Road Runner - NC Xref: archiver1.google.com comp.unix.tru64:10776 Could anyone point me to a good description of how the CPU is utilized on a single processor system running dgux 4.0f? I have a development manager hounding me because our Big Brother (BB) scripts are using what he considers an unacceptable amount of CPU, 12-24% several times in an hour. I know in general how jobs/processes are scheduled, but am a little unclear on what it actually means when a process uses a certain percentage of CPU. If only one process can run on the CPU at a time it would almost seem like each process would use a 100% and then the next process would use a 100% since only 1 process can use the CPU at a time? Obviously there are some other calculations involved in regards to priority and such. The percentage could be, I am using the CPU 25% of the time in comparison to other processes? I aplogize if I missed a FAQ somewhere. If I did please let me know where I can find it. >From the man page for ps: This is a decaying average of up to a minute of previous (real) time. I think I understand that but more detail would be helpful. I am thinking BB takes 12-24% cpu every now and then, so what. It was available and BB grabbed the CPU time? Is it reasonable to expect processes to take less CPU, or as much as they need, if available? David