From owner-freebsd-arch Mon Apr 1 8:23:22 2002 Delivered-To: freebsd-arch@freebsd.org Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by hub.freebsd.org (Postfix) with ESMTP id 19D8037B429; Mon, 1 Apr 2002 08:23:11 -0800 (PST) Received: from localhost (arr@localhost) by fledge.watson.org (8.11.6/8.11.6) with SMTP id g31GN2d11126; Mon, 1 Apr 2002 11:23:02 -0500 (EST) (envelope-from arr@FreeBSD.org) X-Authentication-Warning: fledge.watson.org: arr owned process doing -bs Date: Mon, 1 Apr 2002 11:23:01 -0500 (EST) From: "Andrew R. Reiter" X-Sender: arr@fledge.watson.org To: Dag-Erling Smorgrav Cc: "Greg 'groggy' Lehey" , arch@FreeBSD.org Subject: Re: mutex profiling In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 1 Apr 2002, Dag-Erling Smorgrav wrote: :Greg 'groggy' Lehey writes: :> It would be nice to get a list by lock of each of the four parameters, :> something like: :> :> max total count average :> i386/i386/machdep.c:1715 10653798 5472784414 1127992 4852 :> (repeat for each lock) : :How's this? Can we perhaps have the ability to dump the lock char * description? Or are you doing this way b/c you can get the file and line #'s? Looks good, tho. Cheers, Andrew : :des@des ~% sysctl -n debug.mutex.prof.all :mutex max total count :kern/kern_fork.c:467 6124730 162187907 986568 :i386/i386/machdep.c:1715 10024515 2426296920 620041 :kern/vfs_syscalls.c:1692 12998 118467144 281628 :kern/kern_descrip.c:748 87515 196871456 238729 :kern/vfs_vnops.c:762 12361 8096945 24015 :vm/uma_core.c:1179 441720 98833757 392171 :kern/kern_sx.c:147 8604 19467888 98071 :kern/kern_lock.c:227 13992 228025483 520510 :fs/pseudofs/pseudofs_vncache.c:211 862 109653 208 :kern/kern_prot.c:1706 9726 13211102 43701 :kern/vfs_subr.c:1788 10696 16134536 80109 :kern/imgact_elf.c:518 11827 1793896 3801 :vm/vm_object.c:599 1078 561152 2956 :kern/kern_sx.c:102 12378 15707316 29498 :kern/kern_resource.c:900 7723 3815878 18642 :kern/kern_proc.c:356 7798 605512 365 :kern/kern_proc.c:972 727 145459 633 :kern/vfs_subr.c:1857 12330 88298631 231204 :sys/buf.h:278 8950 10131632 34047 :kern/tty.c:1053 2071 75200 198 :kern/sys_pipe.c:450 6780 1395976 1410 :kern/vfs_subr.c:1805 9496 22600436 54091 :kern/vfs_subr.c:782 6202 3523460 17028 :kern/vfs_subr.c:2356 761 55381 269 :vm/uma_core.c:1701 11202 1714480 1340 :kern/vfs_lookup.c:149 20364 13832882 21443 :ufs/ufs/ufs_dirhash.c:356 7669 1787405 1333 :ufs/ufs/ufs_ihash.c:110 9396 8938672 17295 :ufs/ffs/ffs_vfsops.c:1172 10552 642025 4200 :kern/kern_lock.c:507 822 704605 4247 :kern/vfs_subr.c:936 401354 3583794 2351 :ufs/ufs/ufs_dirhash.c:158 1568 381173 701 :vm/uma_core.c:1301 39491 1624803 1042 :kern/kern_prot.c:1757 7278 1157954 4514 :vm/swap_pager.c:306 12060 3043719 1512 :kern/vfs_subr.c:1739 6767 463008 1251 :kern/sys_pipe.c:229 7250 5170251 10120 :kern/sys_pipe.c:259 5853 4140334 26902 :vm/uma_core.c:1678 2403 82426 79 :kern/subr_eventhandler.c:78 1605 49847 46 :kern/kern_descrip.c:1108 21367 7456128 4962 :pci/if_xl.c:1259 945556 3979999 84 :kern/subr_mbuf.c:452 6244 3756251 13490 :kern/subr_mbuf.c:577 2837 11077 59 :net/bpf.c:1268 695 854 2 :net/bpf.c:627 6557 97926 59 :net/bpf.c:254 7413 147862 46 :net/if_var.h:294 3298 36665 140 :kern/sys_generic.c:800 20769 31401570 87233 :kern/vfs_subr.c:419 1758 94701 84 :vm/uma_core.c:1761 17668 671222 167 :ufs/ufs/ufs_vnops.c:298 5371 537428 786 :ufs/ufs/ufs_ihash.c:114 6323 250572 253 :dev/random/yarrow.c:265 255551 4751740 63 :kern/kern_prot.c:1910 3961 21217 49 :kern/sys_pipe.c:1179 5596 1660837 1315 :kern/tty_tty.c:89 2645 5455 6 :kern/kern_exit.c:285 3916 29487 16 :kern/sys_pipe.c:843 5238 168056 120 :kern/sys_pipe.c:1129 3111 22629 19 :kern/kern_resource.c:864 2124 95751 77 :kern/sys_pipe.c:1302 6326 13639 5 :kern/kern_proc.c:372 9044 42850 29 :kern/kern_descrip.c:1577 3511 3511 1 :kern/kern_fork.c:562 2172 27768 39 :kern/init_main.c:495 2527 82565 108 :vm/uma_core.c:1887 3835 42494 48 :vm/uma_core.c:232 727662 876974 154 :vm/uma_core.c:1716 679 3261 5 :vm/uma_core.c:985 113894 534906 5 :vm/device_pager.c:156 3001 5445 19 :vm/swap_pager.c:1694 3306 56747 138 :kern/kern_descrip.c:168 13772 47793 25 :ufs/ufs/ufs_dirhash.c:495 4150 132187 97 :kern/kern_fork.c:535 27527 59469 12 :dev/sound/pcm/channel.c:677 12177241 23561042 8 :dev/sound/pcm/sound.c:134 65432 173901 21 :kern/kern_descrip.c:264 12207 1311316 9670 : :(I didn't include average since it can be computed from total and :count) : :DES :-- :Dag-Erling Smorgrav - des@ofug.org : :To Unsubscribe: send mail to majordomo@FreeBSD.org :with "unsubscribe freebsd-arch" in the body of the message : -- Andrew R. Reiter arr@watson.org arr@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message