Performance Problem - compilation of file
Figure out the time taken for compilation using
$ /usr/bin/time -p gmake abc.o
...
real 18.02
user 9.88
sys 3.16
$
Check where most of the time is spent
Is that on read, write?
$ strace -c -f -o /tmp/strace_cumm.log gmake file.o
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
92.47 17.289082 508502 34 7 wait4
2.05 0.382373 2 196871 read
1.94 0.363374 2 166274 write
1.52 0.284355 12 24364 19274 open
0.64 0.120390 3 35024 18381 stat
0.48 0.089184 89184 1 rename
0.45 0.083519 16 5189 2 close
...
$
Check if is struck somewhere
strace -T -f -o /tmp/strace.log gmake file.o
In parallel, tail -f /tmp/strace.log
Check the speed of access from NFS
$ dd if=file.c of=/dev/null
1946+1 records in
1946+1 records out
996481 bytes (996 kB) copied, 0.0030956 s, 322 MB/s
$
Check NFS IO Stats for the filer
$ nfsiostat <mounted_dir>
<NFS-Server:Export directory> mounted on <mounted_directory>:
op/s rpc bklog
298.56 0.00
read: ops/s kB/s kB/op retrans avg RTT (ms) avg exe (ms)
0.828 20.987 25.350 0 (0.0%) 33.982 34.012
write: ops/s kB/s kB/op retrans avg RTT (ms) avg exe (ms)
0.000 0.000 0.000 0 (0.0%) 0.000 0.000
$
Check pstack of compiler backend
Is that struck somewhere?
No comments:
Post a Comment