Re: Performance problems under 10.2
Re: Performance problems under 10.2
- Subject: Re: Performance problems under 10.2
- From: Jonas Maebe <email@hidden>
- Date: Tue, 12 Nov 2002 19:18:56 +0100
On zaterdag, nov 9, 2002, at 20:13 Europe/Brussels, Tyler Ward wrote:
Has anyone noticed strange performance problems under 10.2? I have
noticed that
things which were once fast now use inordinate amounts of system time.
For instance,
setiathome (the unix command line version) uses almost 25% system
time, whereas before
it used only a few percent system time. Monitoring it with "top -es 3"
shows that it is performing
almost 1,000 context switches per second. For instance, here's the
setiathome line from my top
output....
The distributed.net client has the same problem. Here's some sc_usage
info:
***
dnetc 575 preemptions 577 context switches 2 threads
16:59:32
0 faults 15 system calls
0:00:15
TYPE NUMBER CPU_TIME WAIT_TIME
------------------------------------------------------------------------
------
System Idle 0:00.220(
0:00.013)
System Busy 0:02.031(
0:00.095)
dnetc Usermode 0:12.254
clock_sleep_trap 14(1) 0:00.000 0:10.648(
0:00.863) W
access 1 0:00.000
gettimeofday 115(6) 0:00.000
__sysctl 115(6) 0:00.001 0:00.000
mach_msg_trap 14(1) 0:00.000
clock_get_time 14(1) 0:00.000
***
Sample info (I've snipped a lot, this one was the only one that seemed
relevant).
***
Call graph:
300 Thread_0e03
300 0x24f0
300 0x26c0
300 0x2bd18
300 0x2bc0c
300 0x2eacc
300 0x1b768
300 sleep
300 nanosleep
300 clock_sleep_trap
300 clock_sleep_trap [STACK TOP]
***
Previously, dnetc only used negligable numbers of system time, but
since 10.2 it's usually between 20% and 50%, though sometimes it jumps
to 100% (and what's also strange, is that the system usage numbers are
almost always rounded to a multiple of 5). Here are some "top -ud"
snaps:
***
Processes: 53 total, 3 running, 50 sleeping... 122 threads
19:12:48
Load Avg: 1.24, 1.20, 1.04 CPU usage: 80.0% user, 20.0% sys, 0.0%
idle
Networks: 2 ipkts/1K 0 opkts /0K
Disks: 0 reads/0K 0 writes/0K
VM: 0 pageins 0 pageouts
PID COMMAND %CPU TIME FAULTS PGINS/COWS MSENT/MRCVD
BSD/MACH CSW
404 dnetc 87.7% 59:39.93 0 0/0 1/1 20/2
357
525 UniversalA 5.6% 0:36.59 0 0/0 100/50 1/225
79
787 top 2.8% 0:00.28 121 0/1 583/581 80/689
12
293 Window Man 0.9% 1:57.23 2 0/0 158/7 0/262
137
529 Mail 0.0% 6:07.00 0 0/0 0/0 0/0
0
532 Navigator 0.0% 3:46.00 0 0/0 0/0 0/408
211
0 kernel_tas 0.0% 1:51.49 0 0/0 930/695 0/0
503
***
Here's one with 100% sys time!
***
Processes: 53 total, 3 running, 50 sleeping... 122 threads
19:12:55
Load Avg: 1.45, 1.26, 1.08 CPU usage: 0.0% user, 100.0% sys, 0.0%
idle
Networks: 14 ipkts/2K 0 opkts /0K
Disks: 0 reads/0K 0 writes/0K
VM: 0 pageins 0 pageouts
PID COMMAND %CPU TIME FAULTS PGINS/COWS MSENT/MRCVD
BSD/MACH CSW
404 dnetc 98.2% 59:44.10 0 0/0 1/1 28/2
370
787 top 1.9% 0:00.39 115 0/1 583/581 77/689
9
529 Mail 0.0% 6:08.01 0 0/0 0/0 0/0
0
532 Navigator 0.0% 3:46.00 0 0/0 0/0 0/406
206
293 Window Man 0.0% 1:57.68 0 0/0 0/0 0/93
3
0 kernel_tas 0.0% 1:51.55 0 0/0 794/588 0/0
385
***
And one with 50%:
***
Processes: 53 total, 3 running, 50 sleeping... 122 threads
19:12:56
Load Avg: 1.36, 1.25, 1.07 CPU usage: 50.0% user, 50.0% sys, 0.0%
idle
Networks: 3 ipkts/1K 0 opkts /0K
Disks: 0 reads/0K 0 writes/0K
VM: 0 pageins 0 pageouts
PID COMMAND %CPU TIME FAULTS PGINS/COWS MSENT/MRCVD
BSD/MACH CSW
404 dnetc 98.2% 59:45.10 0 0/0 1/1 20/2
359
787 top 1.9% 0:00.41 115 0/1 583/581 76/689
7
529 Mail 0.0% 6:08.01 0 0/0 0/0 0/0
0
532 Navigator 0.0% 3:46.00 0 0/0 0/0 0/408
208
293 Window Man 0.0% 1:57.68 0 0/0 0/0 0/122
2
0 kernel_tas 0.0% 1:51.55 0 0/0 796/588 0/0
366
***
And again 100%:
***
Processes: 53 total, 3 running, 50 sleeping... 122 threads
19:12:57
Load Avg: 1.29, 1.23, 1.07 CPU usage: 0.0% user, 100.0% sys, 0.0%
idle
Networks: 12 ipkts/1K 0 opkts /0K
Disks: 0 reads/0K 0 writes/0K
VM: 0 pageins 0 pageouts
PID COMMAND %CPU TIME FAULTS PGINS/COWS MSENT/MRCVD
BSD/MACH CSW
404 dnetc 98.2% 59:46.10 0 0/0 1/1 27/2
353
787 top 0.9% 0:00.42 115 0/1 583/581 76/689
7
529 Mail 0.0% 6:08.01 0 0/0 0/0 0/0
0
532 Navigator 0.0% 3:46.00 0 0/0 0/0 0/408
208
293 Window Man 0.0% 1:57.68 0 0/0 0/0 0/116
3
0 kernel_tas 0.0% 1:51.55 0 0/0 793/588 0/0
365
***
Jonas
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.