ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/libstatgrab/docs/sg_get_page_stats.xml
Revision: 1.6
Committed: Mon Apr 25 11:25:47 2005 UTC (19 years ago) by tdb
Content type: text/xml
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +2 -2 lines
State: FILE REMOVED
Log Message:
Move by repocopy the libstatgrab docs in to a subdirectory. This is so
I can create separate directories for statgrab/saidar docs.

File Contents

# User Rev Content
1 tdb 1.1 <?xml version="1.0"?>
2    
3     <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
4     "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
5    
6 tdb 1.5 <refentry id="sg_get_page_stats">
7 tdb 1.1
8     <refentryinfo>
9 tdb 1.6 <date>$Date: 2004/05/02 17:21:35 $</date>
10     <releaseinfo>$Id: sg_get_page_stats.xml,v 1.5 2004/05/02 17:21:35 tdb Exp $</releaseinfo>
11 tdb 1.1 </refentryinfo>
12 tdb 1.5
13 tdb 1.1 <refmeta>
14 tdb 1.5 <refentrytitle>sg_get_page_stats</refentrytitle>
15 tdb 1.1 <manvolnum>3</manvolnum>
16     <refmiscinfo>i-scream</refmiscinfo>
17     </refmeta>
18 tdb 1.5
19 tdb 1.1 <refnamediv>
20 tdb 1.5 <refname>sg_get_page_stats</refname>
21     <refname>sg_get_page_stats_diff</refname>
22 tdb 1.1 <refpurpose>get paging statistics</refpurpose>
23     </refnamediv>
24 tdb 1.5
25 tdb 1.1 <refsynopsisdiv>
26     <funcsynopsis>
27     <funcsynopsisinfo>#include &lt;statgrab.h&gt;</funcsynopsisinfo>
28     <funcprototype>
29 tdb 1.5 <funcdef>sg_page_stats *<function>sg_get_page_stats</function></funcdef>
30 tdb 1.1 <void/>
31     </funcprototype>
32     <funcprototype>
33 tdb 1.5 <funcdef>sg_page_stats *<function>sg_get_page_stats_diff</function></funcdef>
34 tdb 1.1 <void/>
35     </funcprototype>
36     </funcsynopsis>
37     </refsynopsisdiv>
38 tdb 1.5
39 tdb 1.1 <refsect1>
40     <title>Description</title>
41     <para>
42 tdb 1.5 <function>sg_get_page_stats</function> and
43     <function>sg_get_page_stats_diff</function> both return a pointer to
44     a static buffer of type <structname>sg_page_stats</structname>.
45 tdb 1.1 </para>
46     <para>
47 tdb 1.5 <function>sg_get_page_stats</function> will return the number of
48 tdb 1.1 pages the system has paged in and out since bootup.
49 tdb 1.5 <function>sg_get_page_stats_diff</function> will return the
50 tdb 1.1 difference since last time it was called. If it has not been
51     called before, it will return
52 tdb 1.5 <function>sg_get_page_stats</function>.
53 tdb 1.1 </para>
54     </refsect1>
55 tdb 1.5
56 tdb 1.1 <refsect1>
57     <title>Return Values</title>
58    
59     <programlisting>
60     typedef struct{
61     long long pages_pagein;
62     long long pages_pageout;
63     time_t systime;
64 tdb 1.5 }sg_page_stats;
65 tdb 1.1 </programlisting>
66    
67     <variablelist>
68     <varlistentry>
69     <term>
70     <structfield>pages_pagein</structfield>
71     </term>
72     <listitem>
73     <para>
74     The number of pages swapped into memory.
75     </para>
76     </listitem>
77     </varlistentry>
78     <varlistentry>
79     <term>
80     <structfield>pages_pageout</structfield>
81     </term>
82     <listitem>
83     <para>
84     The number of pages swapped out of memory (to swap).
85     </para>
86     </listitem>
87     </varlistentry>
88     <varlistentry>
89     <term>
90     <structfield>systime</structfield>
91     </term>
92     <listitem>
93     <para>
94     The time period over which <parameter>pages_pagein</parameter>
95     and <parameter>pages_pageout</parameter> were transferred.
96     </para>
97     </listitem>
98     </varlistentry>
99     </variablelist>
100     </refsect1>
101    
102     <refsect1>
103     <title>Bugs</title>
104     <para>
105     Solaris doesn't seem to report accurately. It reports the number
106     of pages swapped into memory, not necessarily from swap. This
107     feature isn't deemed entirely reliable.
108     </para>
109     </refsect1>
110    
111     <refsect1>
112     <title>See Also</title>
113 tdb 1.2
114     <simplelist type="inline">
115     <member>
116     <citerefentry>
117     <refentrytitle>statgrab</refentrytitle>
118     <manvolnum>3</manvolnum>
119     </citerefentry>
120     </member>
121     </simplelist>
122 tdb 1.1 </refsect1>
123 tdb 1.5
124 tdb 1.1 <refsect1>
125     <title>Website</title>
126 tdb 1.5
127 tdb 1.1 <simplelist type="vert">
128     <member>
129 tdb 1.3 <ulink url="http://www.i-scream.org/libstatgrab/">
130     http://www.i-scream.org/libstatgrab/
131     </ulink>
132 tdb 1.1 </member>
133     </simplelist>
134     </refsect1>
135    
136     </refentry>