1 .\" Copyright (c) 2001 Andreas Dilger (adilger@turbolinux.com)
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one.
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date. The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein. The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" Japanese Version Copyright (c) 2001 NAKANO Takeo all rights reserved.
24 .\" Translated Thu Aug 16 2001 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
26 .TH SLABINFO 5 2007-09-30 "" "Linux Programmer's Manual"
28 /proc/slabinfo \- ¥«¡¼¥Í¥ë slab ¥¢¥í¥±¡¼¥¿¤ÎÅý·×
32 Linux ¥«¡¼¥Í¥ë¤ÎÆâÉô¤ÇÎɤ¯ÍøÍѤµ¤ì¤ë¥ª¥Ö¥¸¥§¥¯¥È
33 (¥Ð¥Ã¥Õ¥¡¥Ø¥Ã¥É¡¢i-¥Î¡¼¥É¡¢¥Ç¥£¥ì¥¯¥È¥ê¡¦¥¨¥ó¥È¥ê¤Ê¤É)
34 ¤Ï¡¢¤½¤ì¤¾¤ì¼«Ê¬ÍѤΥ¥ã¥Ã¥·¥å¤òÈ÷¤¨¤Æ¤¤¤ë¡£¥Õ¥¡¥¤¥ë
36 ¤Ï¤³¤ì¤é¤ÎÅý·×¤òÍ¿¤¨¤ë¡£Îã¤ò¼¨¤¹¡£
41 slabinfo \- version: 1.1
42 kmem_cache 60 78 100 2 2 1
43 blkdev_requests 5120 5120 96 128 128 1
44 mnt_cache 20 40 96 1 1 1
45 inode_cache 7005 14792 480 1598 1849 1
46 dentry_cache 5469 5880 128 183 196 1
47 filp 726 760 96 19 19 1
48 buffer_head 67131 71240 96 1776 1781 1
49 vm_area_struct 1204 1652 64 23 28 1
51 size-8192 1 17 8192 1 17 2
52 size-4096 41 73 4096 41 73 1
57 ¤½¤ì¤¾¤ì¤Î slab ¥¥ã¥Ã¥·¥å¤´¤È¤Ë¡¢¥¥ã¥Ã¥·¥å¤Î̾Á°¡¢
58 ¸½ºß¥¢¥¯¥Æ¥£¥Ö¤Ê¥ª¥Ö¥¸¥§¥¯¥È¤Î¿ô¡¢ÍøÍѲÄǽ¤Ê¥ª¥Ö¥¸¥§¥¯¥È¤ÎÁí¿ô¡¢
59 ³Æ¥ª¥Ö¥¸¥§¥¯¥È¤Î¥µ¥¤¥º (¥Ð¥¤¥Èñ°Ì)¡¢¾¯¤Ê¤¯¤È¤â°ì¤Ä¤Î¥¢¥¯¥Æ¥£¥Ö¤Ê
60 ¥ª¥Ö¥¸¥§¥¯¥È¤òͤ¹¤ë¥Ú¡¼¥¸¤Î¿ô¡¢¥¢¥í¥±¡¼¥È¤µ¤ì¤¿¥Ú¡¼¥¸¤ÎÁí¿ô¡¢
61 slab ¤¢¤¿¤ê¤Î¥Ú¡¼¥¸¿ô¡¢¤¬Í¿¤¨¤é¤ì¤Æ¤¤¤ë¡£
64 ¥ª¥Ö¥¸¥§¥¯¥È¤Î¥¢¥é¥¤¥ó¥á¥ó¥È¤È slab ¥¥ã¥Ã¥·¥å¤Î¥ª¡¼¥Ð¡¼¥Ø¥Ã¥É¤È¤Ë¤è¤ê¡¢
65 ¥ª¥Ö¥¸¥§¥¯¥È¤ÏÄ̾ï¥Ú¡¼¥¸¤ÎÆâÉô¤Ë¤¤Ã¤Á¤ê¤È¤Ï¼ý¤á¤é¤ì¤Æ¤¤¤Ê¤¤¡£
66 ÍøÍÑÃæ¤Î¥ª¥Ö¥¸¥§¥¯¥È¤ò¤Ò¤È¤Ä¤Ç¤âÊÝ»ý¤·¤Æ¤¤¤ë¥Ú¡¼¥¸¤Ï¡¢
67 ÍøÍÑÃæ¤Ç¤¢¤ë¤È¤ß¤Ê¤µ¤ì¡¢²òÊü¤Ç¤¤Ê¤¤¡£
69 slab ¥¥ã¥Ã¥·¥åÅý·×¤Îµ¡Ç½¤ò͸ú¤Ë¤·¤Æ¥³¥ó¥Ñ¥¤¥ë¤µ¤ì¤¿¥«¡¼¥Í¥ë¤Ç¤Ï¡¢
70 ½ÐÎϤκǽé¤Î¹Ô¤Ë "(statistics)" ¤Èɽ¼¨¤µ¤ì¡¢ 5 ¤Ä¤Î¥«¥é¥à¤¬Äɲ䵤ì¤ë¡£
71 ¤½¤ì¤¾¤ì¡¢¥¢¥¯¥Æ¥£¥Ö¤Ê¥ª¥Ö¥¸¥§¥¯¥È¤Î½Ö´ÖºÇÂçÃÍ¡¢
72 .\"nakano ¤Ç¤¤¤¤¤Î¤«¤Ê¤¢ > high water mark
73 ¥ª¥Ö¥¸¥§¥¯¥È¤¬¥¢¥í¥±¡¼¥È¤µ¤ì¤¿²ó¿ô¡¢
74 ¥¥ã¥Ã¥·¥å¤ÎÂ礤µ¤¬³ÈÄ¥¤µ¤ì¤¿
75 (¿·¤·¤¤¥Ú¡¼¥¸¤¬¤³¤Î¥¥ã¥Ã¥·¥å¤ËÄɲ䵤줿) ²ó¿ô¡¢
76 ¥¥ã¥Ã¥·¥å¤ÎÂ礤µ¤¬½Ì¾®¤µ¤ì¤¿
77 (»È¤Ã¤Æ¤¤¤Ê¤¤¥Ú¡¼¥¸¤¬¤³¤Î¥¥ã¥Ã¥·¥å¤«¤éºï½ü¤µ¤ì¤¿) ²ó¿ô¡¢
78 ¿·¤¿¤Ê¥Ú¡¼¥¸¤ò¤³¤Î¥¥ã¥Ã¥·¥å¤Ë¥¢¥í¥±¡¼¥È¤¹¤ëºÝ¤Ëµ¯¤¤¿¥¨¥é¡¼¤Î²ó¿ô¡¢¤Ç¤¢¤ë¡£
79 slab ¥¥ã¥Ã¥·¥åÅý·×¤¬»È¤¨¤Ê¤¤¥«¡¼¥Í¥ë¤Ç¤Ï¡¢¤³¤ì¤é¤Î¥«¥é¥à¤Ïɽ¼¨¤µ¤ì¤Ê¤¤¡£
81 SMP ¥·¥¹¥Æ¥à¤Ç¤Ï¡¢½ÐÎϤκǽé¤Î¹Ô¤Ë "(SMP)" ¤Èɽ¼¨¤µ¤ì¡¢
82 ³Æ slab ¤´¤È¤Ë 2 ¤Ä¤Î¥«¥é¥à¤¬Äɲ䵤ì¤ë¡£
83 ¤³¤ì¤é¤Ï³Æ CPU ¤¬»ý¤Ä¥í¡¼¥«¥ë¤Ê¥¥ã¥Ã¥·¥å (per-CPU ¥¥ã¥Ã¥·¥å) ¤Î
84 slab ¥¢¥í¥±¡¼¥·¥ç¥ó¥Ý¥ê¥·¡¼¤òɽ¼¨¤¹¤ë
85 (per-CPU ¥¥ã¥Ã¥·¥å¤Ï¡¢
86 ¥ª¥Ö¥¸¥§¥¯¥È¤ò¥¥ã¥Ã¥·¥å¤«¤é¥¢¥í¥±¡¼¥È¤¹¤ëºÝ¤Ë
87 CPU ´Ö¤Ç¤ÎƱ´ü¤ò¸º¾¯¤µ¤»¤ë¤¿¤á¤ËÀߤ±¤é¤ì¤Æ¤¤¤ë)¡£
88 ºÇ½é¤Î¥«¥é¥à¤Ï per-CPU À©¸Â¡¢
89 ¤¹¤Ê¤ï¤Á³Æ CPU ¤´¤È¤Ë¥¥ã¥Ã¥·¥å¤Ç¤¤ë¥ª¥Ö¥¸¥§¥¯¥È¤ÎºÇÂç¿ô¤Ç¤¢¤ë¡£
90 ÆóÈÖÌܤΥ«¥é¥à¤Ï¥Ð¥Ã¥Á¥«¥¦¥ó¥È¡¢
91 ¤¹¤Ê¤ï¤Á per-CPU ¥¥ã¥Ã¥·¥å¤¬¶õ¤À¤Ã¤¿¤ê°ìÇÕ¤À¤Ã¤¿¤ê¤·¤¿¾ì¹ç¤Ë¡¢
92 ¥°¥í¡¼¥Ð¥ë¤Ê¥¥ã¥Ã¥·¥å¤È¼õ¤±ÅϤ·¤Ç¤¤ë¥Õ¥ê¡¼¤Ê¥ª¥Ö¥¸¥§¥¯¥È¤ÎºÇÂç¿ô¤Ç¤¢¤ë¡£
94 slab ¥¥ã¥Ã¥·¥åÅý·×¤È SMP ¤¬Î¾Êý͸ú¤Ë¤Ê¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢
95 per-CPU ¥¥ã¥Ã¥·¥å¤ÎÅý·×¤òɽ¼¨¤¹¤ë 4 ¤Ä¤Î¥«¥é¥à¤¬¤µ¤é¤ËÄɲ䵤ì¤ë¡£
96 ºÇ½é¤Î 2 ¤Ä¤Ï per-CPU ¥¥ã¥Ã¥·¥å¤Î
97 ¥¢¥í¥±¡¼¥·¥ç¥ó¥Ò¥Ã¥È¥«¥¦¥ó¥È¤È¥¢¥í¥±¡¼¥·¥ç¥ó¥ß¥¹¥«¥¦¥ó¥È¤Ç¤¢¤ë¡£
98 ¤¹¤Ê¤ï¤Á¡¢¤¢¤ë¥ª¥Ö¥¸¥§¥¯¥È¤ò¥¢¥í¥±¡¼¥È¤·¤¿¤È¤¤Ë¡¢
99 ¤½¤ì¤¬ per-CPU ¥¥ã¥Ã¥·¥å¤ÎÆâÉô¤Ë ¤¢¤Ã¤¿/¤Ê¤«¤Ã¤¿ ²ó¿ô¤Ç¤¢¤ë¡£
100 ³¤¯ 2 ¤Ä¤Ï¡¢per-CPU ¥¥ã¥Ã¥·¥å¤Î¥Õ¥ê¡¼¥Ò¥Ã¥È¥«¥¦¥ó¥È¤È¥ß¥¹¥«¥¦¥ó¥È¤Ç¤¢¤ë¡£
101 ¤¹¤Ê¤ï¤Á²òÊü¤µ¤ì¤¿¥ª¥Ö¥¸¥§¥¯¥È¤ò¥°¥í¡¼¥Ð¥ë¤Ê¥¥ã¥Ã¥·¥å¤Ë¥Õ¥é¥Ã¥·¥å¤¹¤ëÁ°¤Ë¡¢
102 per-CPU ¥¥ã¥Ã¥·¥å¤ÎÀ©¸Â¤ÎÈÏ°Ï¤Ë ¼ý¤Þ¤Ã¤¿/¼ý¤Þ¤é¤Ê¤«¤Ã¤¿ ²ó¿ô¤Ç¤¢¤ë¡£
104 SMP ¤Ë¤ª¤¤¤Æ per-CPU slab ¥¥ã¥Ã¥·¥å¤ÎÀ©¸ÂÃͤä
105 ¥Ð¥Ã¥Á¥«¥¦¥ó¥È¤òÊѹ¹¤¹¤ë¤Ë¤Ï¡¢°Ê²¼¤Î¤è¤¦¤Ë¤¹¤ì¤Ð¤è¤¤:
109 echo "\fIcache_name limit batchcount\fP" > /proc/slabinfo
116 ¤Ï Linux 2.1.23 °Ê¹ß¤Ë¸ºß¤¹¤ë¡£
117 SMP ¤Ë¤ª¤±¤ë CPU ¤´¤È¤Î¥¥ã¥Ã¥·¥å¤Ï Linux 2.4.0-test3 °Ê¹ß¤Ë¸ºß¤¹¤ë¡£
119 Linux 2.6.16 °Ê¹ß¤Ç¤Ï¡¢
121 ¥Õ¥¡¥¤¥ë¤Ï¡¢¥«¡¼¥Í¥ëÀßÄꥪ¥×¥·¥ç¥ó
123 ¤ò͸ú¤Ë¤·¤¿¾ì¹ç¤Î¤ß¸ºß¤¹¤ë¡£