« Return to Thread: AFP eating up CPU

Re: AFP eating up CPU

by David Haines-2 :: Rate this Message:

Reply to Author | View in Thread


>> On Oct 23, 2008, at 9:52 AM, Dan Shoop wrote:
>>
>> You presume that there's a single cause to this. Unfortunately it's  
>> not
>> that simple. Your problem is likely different from others.
>>
>>
>> Given dtrace and sc_usage you can look deeper.
>>
>>
>> Remember though that %CPU is not a metric, and if a process is  
>> consuming
>> most all the CPU that this implies there's no other processes that  
>> are
>> competing for CPU significantly.
>>
>>
>> What normally you find is that when processes are using "excessive"  
>> cpu
>> that they're spending a large amount of system time, which indicates
>> something fundamental wrong, like latency issues, bad DNS,
>> misconfiguration etc. It's spending time there b/c it's made system  
>> calls
>> that aren't getting serviced. Find out why and you solve your  
>> mystery.
>> Other issues occur when you've got waits that never return. That
>> indicates, again, something fundamental that's out of line or  
>> problematic.
>>
>>
>> Guess my overall suggestion is that the issue isn't really with AFP  
>> but
>> something in the system that's not right.


On Oct 23, 2008, at 1:54 PM, Jeremy Wellner wrote:
>
>
> Not to ask a silly question... but how do you peek into the process  
> with dtrace and sc_usage?

man sc_usage
man fs_usage

For DTrace, there are a number of examples to look through in /usr/
share/examples/DTTk

http://www.mactech.com/articles/mactech/Vol.23/23.11/ExploringLeopardwithDTrace/index.html
http://www.samag.com/documents/s=9915/sam0512a/0512a.htm

I've yet to do a significant amount with DTrace (not having moved much  
past iosnoop, opensnoop & rwsnoop), but have a look at
man filebyproc.d
iosnoop , rwsnoop, syscallbyproc.d


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list      (Macos-x-server@...)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macos-x-server/lists%40nabble.com

This email sent to lists@...

 « Return to Thread: AFP eating up CPU