From owner-freebsd-performance@FreeBSD.ORG Fri Aug 15 07:26:46 2008 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 06CCC106568D for ; Fri, 15 Aug 2008 07:26:46 +0000 (UTC) (envelope-from won.derick@yahoo.com) Received: from n2a.bullet.mail.ac4.yahoo.com (n2a.bullet.mail.ac4.yahoo.com [76.13.13.65]) by mx1.freebsd.org (Postfix) with SMTP id 703A18FC1E for ; Fri, 15 Aug 2008 07:26:45 +0000 (UTC) (envelope-from won.derick@yahoo.com) Received: from [76.13.13.25] by n2.bullet.mail.ac4.yahoo.com with NNFMP; 15 Aug 2008 07:14:25 -0000 Received: from [76.13.10.183] by t4.bullet.mail.ac4.yahoo.com with NNFMP; 15 Aug 2008 07:14:25 -0000 Received: from [127.0.0.1] by omp124.mail.ac4.yahoo.com with NNFMP; 15 Aug 2008 07:14:25 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 749232.9476.bm@omp124.mail.ac4.yahoo.com Received: (qmail 42706 invoked by uid 60001); 15 Aug 2008 07:14:24 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Mailer:Date:From:Subject:To:Cc:MIME-Version:Content-Type:Message-ID; b=rnHMgfIaUAhjGQm6otB9mDoqXjgka/VWmxWFJ3fajPf8scJdww3enrwQl3GJREsYNxvcdISgb7LSeZh3wb1CLYARw+ECFyd2Sr+/nkXuNiDLsxlBYVvioXaXt5PbR0V7jVD7w3cXsjyt2Ozck1PpYje6Cd8OkqTncsNKjrH8UE8=; Received: from [58.71.34.137] by web45803.mail.sp1.yahoo.com via HTTP; Fri, 15 Aug 2008 00:14:24 PDT X-Mailer: YahooMailRC/1042.48 YahooMailWebService/0.7.218 Date: Fri, 15 Aug 2008 00:14:24 -0700 (PDT) From: Won De Erick To: freebsd-testing@freebsd.org, freebsd-performance@freebsd.org MIME-Version: 1.0 Message-ID: <847976.42317.qm@web45803.mail.sp1.yahoo.com> Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hardware@freebsd.org Subject: Fw: CPU Utilization on IBM x3755 X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Aug 2008 07:26:46 -0000 forwarding the thread to freebsd-testing@freebsd.org, freebsd-performance@freebsd.org Hello, I was wondering what are the processes running on my machine after checking the CPU utilization using ps and top commands. My Platform is IBM x3755 (w/ 8 CPUs) running FreeBSD 6.2. 1. Using top -S last pid: 90083; load averages: 0.22, 0.19, 0.17 up 5+00:26:5515:27:07 186 processes: 19 running, 152 sleeping, 15 waiting CPU states: 0.9 % user, 0.0 % nice, 7.2 % system, 0.0 % interrupt, 91.9% idle Mem: 54M Active, 22M Inact, 76M Wired, 26M Buf, 29G Free Swap: 6144M Total, 6144M Free PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 17 root 1 171 52 0K 16K RUN 0 101.2H 98.97% idle: cpu0 13 root 1 171 52 0K 16K RUN 4 105.7H 96.83% idle: cpu4 15 root 1 171 52 0K 16K RUN 2 114.1H 96.04% idle: cpu2 12 root 1 171 52 0K 16K CPU5 5 109.8H 93.75% idle: cpu5 16 root 1 171 52 0K 16K RUN 1 109.5H 86.18% idle: cpu1 14 root 1 171 52 0K 16K RUN 3 113.7H 86.04% idle: cpu3 10 root 1 171 52 0K 16K RUN 7 111.4H 83.98% idle: cpu7 11 root 1 171 52 0K 16K RUN 6 110.8H 81.98% idle: cpu6 57213 root 10 20 0 14512K 4548K RUN 7 388:19 0.00% smd 18 root 1 -32 -151 0K 16K CPU0 0 83:07 0.00% swi4: clock sio 45 root 1 171 52 0K 16K pgzero 3 3:05 0.00% pagezero . . . 57094 root 1 8 0 31356K 9180K wait 6 0:01 0.00% php-cgi 18533 admin 1 96 0 30732K 4308K select 6 0:01 0.00% sshd90137 0.29, 0.20, 0.17 up 5+00:26:5715:27:09 [a] Average CPU Utilization = 0.9 % user + 7.2 % system = 8.1% = 100 - 91.9 = 8.1% 98.97 + 96.83 + 96.04 + 93.75 + 86.18 + 86.04 + 83.98 + 81.98 [b] Average CPU Utilization = 100 - ----------------------------------------------------------------------- = 9.53 % 8 2. Using ps -aux USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND root 17 99.0 0.0 0 16 ?? RL Fri03PM 6074:32.36 [idle: cpu0] root 13 97.0 0.0 0 16 ?? RL Fri03PM 6339:48.43 [idle: cpu4] root 15 96.2 0.0 0 16 ?? RL Fri03PM 6847:42.20 [idle: cpu2] root 12 94.4 0.0 0 16 ?? RL Fri03PM 6586:50.10 [idle: cpu5] root 16 85.9 0.0 0 16 ?? RL Fri03PM 6567:57.05 [idle: cpu1] root 14 85.4 0.0 0 16 ?? RL Fri03PM 6823:20.19 [idle: cpu3] root 10 85.2 0.0 0 16 ?? RL Fri03PM 6683:28.54 [idle: cpu7] root 11 81.9 0.0 0 16 ?? RL Fri03PM 6646:11.63 [idle: cpu6] root 0 0.0 0.0 0 0 ?? WLs Fri03PM 0:00.00 [swapper] root 1 0.0 0.0 912 460 ?? ILs Fri03PM 0:00.58 /sbin/init -- . . . admin 19027 0.0 0.0 12480 3384 p2 Ss+ 12:06PM 0:00.13 -clish (clish) root 19207 0.0 0.0 2604 940 p2 S+ 12:07PM 0:07.65 /usr/sbin/clog -f /var/log/dhcpd.log 99 + 97 + 96.2 + 94.4 + 85.9+ 85.4 + 85.2 + 81.9 Average CPU Utilization = 100 - --------------------------------------------------------- = 9.375 % 8 Question 1: What is the difference between 1 [a] and 1 [b]? Question 2: What are the processes (system?) that are running that resulted to 1 [b]? top -S is just giving a name idle: cpu0, idle: cpu1, etc. under the command column. Question 3: Is it logical to compare the average CPU utilization results obtained in number 1 and 2? How are they differ? Question 4. Are there other tools that I can use to accurately get the running processes that are eating the actual CPU resources on the machine? Please shed me some lights.. Thanks, Won