Skip site navigation (1)Skip section navigation (2)
Date:      01 Apr 2002 18:10:38 +0200
From:      Dag-Erling Smorgrav <des@ofug.org>
To:        Greg 'groggy' Lehey <grog@FreeBSD.org>
Cc:        arch@freebsd.org
Subject:   Re: mutex profiling
Message-ID:  <xzplmc72ydd.fsf@flood.ping.uio.no>
In-Reply-To: <20020401105804.B26813@wantadilla.lemis.com>
References:  <xzp8z88e6i1.fsf@flood.ping.uio.no> <20020401105804.B26813@wantadilla.lemis.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Greg 'groggy' Lehey <grog@FreeBSD.org> 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?

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzplmc72ydd.fsf>