Author: jpeach Date: 2006-07-05 03:11:12 +0000 (Wed, 05 Jul 2006) New Revision: 16812
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16812 Log: Refactor shared memory profiling to make the call counts and cumulative times two arrays. This makes it a lot easier to write succinct code to deal with these. Add compatibility macros so that existing references continue to work. Add a new idle counter to track how much time is spent waiting for the client to send a packet. Bump the shared memory version number. Add a --profile-rates option to smbstatus to show the rate-converted times and counts from the shared memory metrics. Sample output: smbd_idle 10430/sec (15.93%) syscall_opendir 2030/sec (0.72%) syscall_readdir 25440/sec (1.29%) syscall_telldir 19350/sec (0.22%) syscall_closedir 2030/sec (0.18%) syscall_open 1323/sec (23.85%) syscall_close 1316/sec (0.55%) syscall_pread 2873/sec (11.97%) syscall_pwrite 915/sec (10.75%) syscall_rename 81/sec (0.19%) syscall_stat 15250/sec (3.68%) syscall_fstat 1154/sec (0.07%) syscall_lstat 333/sec (0.07%) syscall_unlink 333/sec (32.80%) syscall_fcntl_lock 12/sec (0.00%) syscall_fcntl_getlock 658/sec (0.03%) SMBclose 1316/sec (50.74%) SMBflush 128/sec (0.00%) SMBunlink 333/sec (47.89%) SMBmv 81/sec (12.53%) SMBlockingX 39/sec (0.07%) SMBreadX 2873/sec (43.11%) SMBwriteX 915/sec (11.06%) SMBtrans2 2944/sec (82.48%) SMBntcreateX 1774/sec (33.91%) Trans2_findfirst 595/sec (12.15%) Trans2_qfsinfo 289/sec (27.62%) Trans2_qpathinfo 1897/sec (26.71%) Trans2_setpathinfo 163/sec (0.77%) fchmod_acl 354/sec (0.02%) Added: trunk/source/utils/status_profile.c Modified: trunk/source/Makefile.in trunk/source/include/smbprofile.h trunk/source/profile/profile.c trunk/source/smbd/process.c trunk/source/utils/status.c Changeset: Sorry, the patch is too large (1940 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16812
