3 .\" Copyright (C) 1993 by Dan Miner (dminer@nyx.cs.du.edu)
5 .\" Permission is granted to freely distribute or modify this file
6 .\" for the purpose of improving Linux or its documentation efforts.
7 .\" If you modify this file, please put a date stamp and HOW you
8 .\" changed this file. Thanks. -DM
10 .\" Modified Sat Jul 24 12:35:12 1993 by Rik Faith <faith@cs.unc.edu>
11 .\" Modified Tue Oct 22 22:29:51 1996 by Eric S. Raymond <esr@thyrsus.com>
12 .\" Modified Mon Aug 25 16:06:11 1997 by Nicolas Lichtmaier <nick@debian.org>
14 .\" Japanese Version Copyright (c) 1997 HANATAKA Shinya
15 .\" all rights reserved.
16 .\" Translated Tue Mar 4 00:04:15 JST 1997
17 .\" by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
18 .\" Modified Mon Sep 23 21:56:40 JST 2000
19 .\" by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
21 .\"WORD: library ¥é¥¤¥Ö¥é¥ê
22 .\"WORD: statistic Åý·×
23 .\"WORD: pointer ¥Ý¥¤¥ó¥¿¡¼
24 .\"WORD: prototype ·¿Àë¸À
26 .TH SYSINFO 2 2007-11-15 "Linux" "Linux Programmer's Manual"
28 sysinfo \- ¥·¥¹¥Æ¥àÁ´ÂΤÎÅý·×¾ðÊó¤òÊÖ¤¹¡£
30 .B #include <sys/sysinfo.h>
32 .BI "int sysinfo(struct sysinfo *" info );
36 ¤Ï°Ê²¼¤Î¹½Â¤ÂΤ˾ðÊó¤òÆþ¤ì¤ÆÊÖ¤¹¡£
41 long uptime; /* Seconds since boot */
42 unsigned long loads[3]; /* 1, 5, and 15 minute load averages */
43 unsigned long totalram; /* Total usable main memory size */
44 unsigned long freeram; /* Available memory size */
45 unsigned long sharedram; /* Amount of shared memory */
46 unsigned long bufferram; /* Memory used by buffers */
47 unsigned long totalswap; /* Total swap space size */
48 unsigned long freeswap; /* swap space still available */
49 unsigned short procs; /* Number of current processes */
50 char _f[22]; /* Pads structure to 64 bytes */
55 ¤³¤³¤Ç¥Ð¥¤¥Èñ°Ì¤ÇÍ¿¤¨¤é¤ì¤ë¡£
57 Linux 2.3.23 (i386)¡¢2.3.48 (Á´¤Æ¤Î¥¢¡¼¥¥Æ¥¯¥Á¥ã) ¤«¤é¤Ï¹½Â¤ÂΤÏ
62 long uptime; /* Seconds since boot */
63 unsigned long loads[3]; /* 1, 5, and 15 minute load averages */
64 unsigned long totalram; /* Total usable main memory size */
65 unsigned long freeram; /* Available memory size */
66 unsigned long sharedram; /* Amount of shared memory */
67 unsigned long bufferram; /* Memory used by buffers */
68 unsigned long totalswap; /* Total swap space size */
69 unsigned long freeswap; /* swap space still available */
70 unsigned short procs; /* Number of current processes */
71 unsigned long totalhigh; /* Total high memory size */
72 unsigned long freehigh; /* Available high memory size */
73 unsigned int mem_unit; /* Memory unit size in bytes */
74 char _f[20\-2*sizeof(long)\-sizeof(int)]; /* Padding for libc5 */
79 ¤È¤Ê¤ê¡¢Â礤µ¤Ï \fImem_unit\fP ¥Ð¥¤¥È¤ÎÇÜ¿ô¤ÇÍ¿¤¨¤é¤ì¤ë¡£
82 ¤Ï¥·¥¹¥Æ¥àÁ´ÂΤÎÅý·×¤ò¼èÆÀ¤¹¤ë´Êñ¤ÊÊýË¡¤òÄ󶡤¹¤ë¡£
83 ¤³¤ì¤Ï \fI/dev/kmem\fP ¤òÆɤà¤è¤ê¤â°Ü¿¢À¤Î¹â¤¤ÊýË¡¤Ç¤¢¤ë¡£
85 À®¸ù¤·¤¿¾ì¹ç¤Ï¥¼¥í¤¬ÊÖ¤µ¤ì¤ë¡£¥¨¥é¡¼¤Ê¤é¤Ð \-1 ¤¬ÊÖ¤µ¤ì¡¢
92 ¤Ø¤Î¥Ý¥¤¥ó¥¿¡¼¤¬ÉÔÀµ¤Ç¤¢¤ë¡£
94 ¤³¤Î´Ø¿ô¤Ï Linux ÆÃͤǤ¢¤ê¡¢°Ü¿¢¤ò°Õ¿Þ¤·¤¿¥×¥í¥°¥é¥à¤Ç¤Ï
97 Linux ¥«¡¼¥Í¥ë¤Ï 0.98.pl6 ¤«¤é
99 ¥·¥¹¥Æ¥à¥³¡¼¥ë¤ò»ý¤Ã¤Æ¤¤¤ë¡£
100 Linux ¤Î libc ¤Ï 5.3.5 ¤è¤ê¡¢glibc ¤Ç¤Ï 1.90 ¤è¤ê
102 ¥ë¡¼¥Á¥ó¤ò´Þ¤ó¤Ç¤¤¤ë¡£