Re: UI responsiveness
Re: UI responsiveness
- Subject: Re: UI responsiveness
- From: email@hidden (Simon Fraser)
- Date: Fri, 14 Mar 2003 16:41:06 -0800
Gilbert Mackall wrote:
You need to understand what your machine is doing when it lags.
It it swapping? Is CPU usage high or low? Is it blocked somewhere?
Run top, CPU Monitor and/or iPulse, and get to know your machine
better.
Simon,
I have been running top and it does not seem to me that swapping or
high loading is an issue. It seems like, that while in a loop user
events are being ignored. Bellow is a what top looks like while my
program is running, iSpectrum is the name of the application.
Processes: 50 total, 3 running, 47 sleeping... 133 threads
21:57:48
Load Avg: 1.28, 0.73, 0.49 CPU usage: 52.6% user, 27.6% sys,
19.7% idle
SharedLibs: num = 110, resident = 28.8M code, 2.65M data, 8.40M
LinkEdit
MemRegions: num = 4289, resident = 81.0M + 11.0M private, 87.5M shared
PhysMem: 50.1M wired, 240M active, 30.6M inactive, 321M used, 191M
free
VM: 2.66G + 72.1M 15211(0) pageins, 8970(0) pageouts
PID COMMAND %CPU TIME #TH #PRTS #MREGS RPRVT RSHRD RSIZE
VSIZE
1200 iTunes 8.8% 3:36.31 8 167 251 8.54M- 13.9M 16.7M-
125M-
1192 SecurityAg 0.0% 0:00.90 2 74 105 1.34M 6.76M 4.19M
100M
1186 Safari 0.0% 7:43.79 6 170 432 26.2M 18.1M 37.1M
159M
1140 iSpectrum 27.3% 34:08.32 4 151 182 8.90M 11.5M 11.2M
126M
That looks OK. Try running ThreadViewer on your app, so that you can
see what your threads are doing.
Is this a Cocoa app?
simon
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.