Add the DragonFly cvs id and perform general cleanups on cvs/rcs/sccs ids. Most
[dragonfly.git] / share / doc / papers / kerntune / 4.t
1 .\" Copyright (c) 1984 M. K. McKusick
2 .\" Copyright (c) 1984 The Regents of the University of California.
3 .\" All rights reserved.
4 .\"
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
7 .\" are met:
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\"    notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\"    notice, this list of conditions and the following disclaimer in the
12 .\"    documentation and/or other materials provided with the distribution.
13 .\" 3. All advertising materials mentioning features or use of this software
14 .\"    must display the following acknowledgement:
15 .\"     This product includes software developed by the University of
16 .\"     California, Berkeley and its contributors.
17 .\" 4. Neither the name of the University nor the names of its contributors
18 .\"    may be used to endorse or promote products derived from this software
19 .\"    without specific prior written permission.
20 .\"
21 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 .\" SUCH DAMAGE.
32 .\"
33 .\"     @(#)4.t 1.2 (Berkeley) 11/8/90
34 .\"
35 .ds RH Conclusions
36 .NH 1
37 Conclusions
38 .PP
39 We have created a profiler that aids in the evaluation
40 of the kernel.
41 For each routine in the kernel,
42 the profile shows the extent to which that routine
43 helps support various abstractions,
44 and how that routine uses other abstractions.
45 The profile assesses the cost of routines
46 at all levels of the kernel decomposition.
47 The profiler is easily used,
48 and can be compiled into the kernel.
49 It adds only five to thirty percent execution overhead to the kernel
50 being profiled,
51 produces no additional output while the kernel is running
52 and allows the kernel to be measured in its real environment.
53 Kernel profiles can be used to identify bottlenecks in performance.
54 We have shown how to improve performance 
55 by caching recently calculated name translations.
56 The combined caches added to the name translation process
57 reduce the average cost of translating a pathname to an inode by 35%.
58 These changes reduce the percentage of time spent running
59 in the system by nearly 9%.
60 .nr H2 1
61 .ds RH Acknowledgements
62 .NH
63 \s+2Acknowledgements\s0
64 .PP
65 I would like to thank Robert Elz for sharing his ideas and 
66 his code for cacheing system wide names.
67 Thanks also to all the users at Berkeley who provided all the
68 input to generate the kernel profiles.
69 This work was supported by
70 the Defense Advance Research Projects Agency (DoD) under
71 Arpa Order No. 4031 monitored by Naval Electronic System Command under
72 Contract No. N00039-82-C-0235.
73 .ds RH References
74 .nr H2 1
75 .sp 2
76 .NH
77 \s+2References\s-2
78 .LP
79 .IP [Bentley81] 20
80 Bentley, J. L.,
81 ``Writing Efficient Code'',
82 Department of Computer Science,
83 Carnegie-Mellon University,
84 Pittsburgh, Pennsylvania,
85 CMU-CS-81-116, 1981.
86 .IP [Graham82] 20
87 Graham, S., Kessler, P., McKusick, M.,
88 ``gprof: A Call Graph Execution Profiler'',
89 Proceedings of the SIGPLAN '82 Symposium on Compiler Construction,
90 Volume 17, Number 6, June 1982. pp 120-126
91 .IP [Graham83] 20
92 Graham, S., Kessler, P., McKusick, M.,
93 ``An Execution Profiler for Modular Programs''
94 Software - Practice and Experience,
95 Volume 13, 1983. pp 671-685
96 .IP [Ritchie74] 20
97 Ritchie, D. M. and Thompson, K.,
98 ``The UNIX Time-Sharing System'',
99 CACM 17, 7. July 1974. pp 365-375