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