File: slabinfo.5

package info (click to toggle)
manpages-ja 0.5.0.0.20080615-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 20,508 kB
  • ctags: 1
  • sloc: sh: 13,690; perl: 157; makefile: 114
file content (124 lines) | stat: -rw-r--r-- 5,009 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
.\" Copyright (c) 2001 Andreas Dilger (adilger@turbolinux.com)
.\"
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\" Permission is granted to copy and distribute modified versions of this
.\" manual under the conditions for verbatim copying, provided that the
.\" entire resulting derived work is distributed under the terms of a
.\" permission notice identical to this one.
.\"
.\" Since the Linux kernel and libraries are constantly changing, this
.\" manual page may be incorrect or out-of-date.  The author(s) assume no
.\" responsibility for errors or omissions, or for damages resulting from
.\" the use of the information contained herein.  The author(s) may not
.\" have taken the same level of care in the production of this manual,
.\" which is licensed free of charge, as they might when working
.\" professionally.
.\"
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
.\"
.\" Japanese Version Copyright (c) 2001 NAKANO Takeo all rights reserved.
.\" Translated Thu Aug 16 2001 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
.\"
.TH SLABINFO 5 2007-09-30 "" "Linux Programmer's Manual"
.SH ̾
/proc/slabinfo \- ͥ slab 
.SH 
.B cat /proc/slabinfo
.SH 
Linux ͥɤѤ륪֥
(Хåեإåɡi-Ρɡǥ쥯ȥꡦȥʤ)
ϡ줾켫ʬѤΥåƤ롣ե
.I /proc/slabinfo
ϤפͿ롣򼨤
.LP
.in +4n
.nf
% cat /proc/slabinfo
slabinfo \- version: 1.1
kmem_cache            60     78    100    2    2    1
blkdev_requests     5120   5120     96  128  128    1
mnt_cache             20     40     96    1    1    1
inode_cache         7005  14792    480 1598 1849    1
dentry_cache        5469   5880    128  183  196    1
filp                 726    760     96   19   19    1
buffer_head        67131  71240     96 1776 1781    1
vm_area_struct      1204   1652     64   23   28    1
\&...
size-8192              1     17   8192    1   17    2
size-4096             41     73   4096   41   73    1
\&...
.fi
.in
.LP
줾 slab å头Ȥˡå̾
ߥƥ֤ʥ֥ȤοѲǽʥ֥Ȥ
ƥ֥ȤΥ (Хñ)ʤȤĤΥƥ֤
֥ȤͭڡοȤ줿ڡ
slab ΥڡͿƤ롣

ʤ
֥ȤΥ饤Ȥ slab åΥСإåɤȤˤꡢ
֥Ȥ̾ڡˤäȤϼƤʤ
Υ֥ȤҤȤĤǤݻƤڡϡ
ǤȤߤʤ졢Ǥʤ

slab åפεǽͭˤƥѥ뤵줿ͥǤϡ
ϤκǽιԤ "(statistics)" ɽ졢 5 ĤΥबɲä롣
줾졢ƥ֤ʥ֥Ȥνִֺ͡
.\"nakano ǤΤʤ > high water mark
֥ȤȤ줿
å礭ĥ줿
(ڡΥåɲä줿) 
å礭̾줿
(ȤäƤʤڡΥå夫줿) 
ʥڡ򤳤Υå˥Ȥݤ˵顼βǤ롣
slab åפȤʤͥǤϡΥɽʤ

SMP ƥǤϡϤκǽιԤ "(SMP)" ɽ졢
 slab Ȥ 2 ĤΥबɲä롣
ϳ CPU ĥʥå (per-CPU å) 
slab ݥꥷɽ
(per-CPU åϡ
֥Ȥ򥭥å夫饢Ȥݤ
CPU ֤ǤƱ򸺾뤿ߤƤ)
ǽΥ per-CPU ¡
ʤ CPU Ȥ˥åǤ륪֥ȤκǤ롣
ܤΥϥХåȡ
ʤ per-CPU å夬äդäꤷˡ
ХʥåȼϤǤե꡼ʥ֥ȤκǤ롣

slab åפ SMP ξͭˤʤäƤϡ
per-CPU åפɽ 4 ĤΥबɲä롣
ǽ 2 Ĥ per-CPU å
ҥåȥȤȥߥȤǤ롣
ʤ륪֥Ȥ򥢥ȤȤˡ
줬 per-CPU å ä/ʤä Ǥ롣
³ 2 Ĥϡper-CPU åΥե꡼ҥåȥȤȥߥȤǤ롣
ʤ줿֥Ȥ򥰥Хʥå˥եå夹ˡ
per-CPU å¤ϰϤ ޤä/ޤʤä Ǥ롣

SMP ˤ per-CPU slab åͤ
ХåȤѹˤϡʲΤ褦ˤФ褤:

.in +4n
.nf
echo "\fIcache_name limit batchcount\fP" > /proc/slabinfo
.fi
.in
.SH ե
.I <linux/slab.h>
.SH С
.I /proc/slabinfo
 Linux 2.1.23 ʹߤ¸ߤ롣
SMP ˤ CPU ȤΥå Linux 2.4.0-test3 ʹߤ¸ߤ롣
.SH 
Linux 2.6.16 ʹߤǤϡ
.I /proc/slabinfo
եϡͥꥪץ
.B CONFIG_SLAB
ͭˤΤ¸ߤ롣