Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Process priorities



On 19/9/02 12:17 AM, "Jonas Maebe" <email@hidden> wrote:
> If you use "top -d" (or "top -ud"), Darwin's top won't consume that many
> cycles either (it's still slightly more than under the other OS'es
> though).

Wow, I can't believe how much more responsive top seems with -ud! Although
it's a bit of a shame to have to lose all those memory statistics, at least
now I don't feel like I'm slowing everything down.

> It's the gathering of memory statistics that consumes so much
> time. On darwin-development, Apple engineers also always say this is
> because traversing the mach memory maps is a lot of work.

Just taking a brief look at top.c, it looks like there're a lot of hoops to
jump through (I'm looking at get_proc_info and pmem_doit). A brief run with
gprof says ~42% of time is spend in _mach_msg. I couldn't find that in the
code, is it something that is called from libc or via a system call? (I'm
not a mach guy :)

Cheers,
;) jimmy.

http://mobile.yahoo.com.au - Yahoo! Messenger for SMS
- Always be connected to your Messenger Friends
_______________________________________________
darwin-userlevel mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-userlevel
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Process priorities (From: Jonas Maebe <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.