On 8/6/08, Ananth Shrinivas <ananth at google.com> wrote: > Who is using the CPU when you notice the latency in rendering ? > > prstat should tell or you could dtrace and aggregate on execname to find > total time between sched:::on-cpu,off-cpu >
the latency is on a just logged in machine with no apps (just a konsole) running. i ran prstat, and Xorg showed using 10%.. i shook the window around for 5 seconds.. it shot upto 30%. Below is the state then PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP 772 root 252M 69M cpu1 10 0 0:03:44 30% Xorg/1 965 anil 173M 90M sleep 39 0 0:00:47 2.8% firefox-bin/8 901 anil 66M 55M sleep 59 0 0:00:14 0.2% kdeinit/1 850 anil 29M 15M sleep 59 0 0:00:05 0.2% kdeinit/1 852 anil 48M 35M sleep 49 0 0:00:08 0.1% kdeinit/1 872 anil 30M 18M sleep 59 0 0:00:02 0.1% kdeinit/1 970 anil 4300K 3376K cpu0 59 0 0:00:00 0.1% prstat/1 871 anil 27M 14M sleep 59 0 0:00:02 0.0% kdeinit/1 408 root 6316K 5096K sleep 59 0 0:00:00 0.0% intrd/1 894 anil 6584K 4400K sleep 59 0 0:00:00 0.0% gconfd-2/1 594 root 4952K 3292K sleep 59 0 0:00:00 0.0% nscd/23 479 anil 4972K 2916K sleep 59 0 0:00:01 0.0% gam_server/30 864 anil 26M 12M sleep 59 0 0:00:00 0.0% kdeinit/1 211 root 1748K 1160K sleep 59 0 0:00:00 0.0% cron/1 117 daemon 1812K 1140K sleep 59 0 0:00:00 0.0% kcfd/2 285 daemon 2916K 1196K sleep 59 0 0:00:00 0.0% rpcbind/1 114 root 5080K 2548K sleep 59 0 0:00:00 0.0% syseventd/16 191 root 2912K 1456K sleep 59 0 0:00:00 0.0% dbus-daemon/1 302 root 4368K 3268K sleep 59 0 0:00:00 0.0% inetd/4 308 root 2352K 1328K sleep 59 0 0:00:00 0.0% ttymon/1 262 root 3668K 2068K sleep 59 0 0:00:00 0.0% hald-addon-cpuf/1 Total: 61 processes, 215 lwps, load averages: 0.52, 0.40, 0.30 Plus i see 2 instances of kdm and whole bunch of kdeinit. anil at belbox:~$ ps -e |grep kdm 351 ? 0:00 kdm 796 ? 0:00 kdm anil at belbox:~$ ps -e |grep kdm 351 ? 0:00 kdm 796 ? 0:00 kdm anil at belbox:~$ ps -e |grep kde 872 ? 0:03 kdeinit 852 ? 0:09 kdeinit 834 ? 0:00 kdeinit 809 ? 0:00 startkde 864 ? 0:00 kdeinit 839 ? 0:00 kdeinit 869 ? 0:00 kdeinit 841 ? 0:00 kdeinit 837 ? 0:00 kdeinit 850 ? 0:06 kdeinit 871 ? 0:02 kdeinit 848 ? 0:00 kdeinit 855 ? 0:00 kdeinit 901 ? 0:15 kdeinit 914 ? 0:01 kdeinit ~Anil
