1sg_get_page_stats(3) Library Functions Manual sg_get_page_stats(3)
2
3
4
6 sg_get_page_stats, sg_get_page_stats_diff - get paging statistics
7
9 #include <statgrab.h>
10
11
12 sg_page_stats *sg_get_page_stats(void);
13
14 sg_page_stats *sg_get_page_stats_diff(void);
15
17 sg_get_page_stats and sg_get_page_stats_diff both return a pointer to a
18 static buffer of type sg_page_stats.
19
20 sg_get_page_stats will return the number of pages the system has paged
21 in and out since bootup. sg_get_page_stats_diff will return the dif‐
22 ference since last time it was called. If it has not been called
23 before, it will return sg_get_page_stats.
24
26 typedef struct{
27 long long pages_pagein;
28 long long pages_pageout;
29 time_t systime;
30 }sg_page_stats;
31
32
33 pages_pagein
34 The number of pages swapped into memory.
35
36 pages_pageout
37 The number of pages swapped out of memory (to swap).
38
39 systime
40 The time period over which pages_pagein and pages_pageout were
41 transferred.
42
44 Solaris doesn't seem to report accurately. It reports the number of
45 pages swapped into memory, not necessarily from swap. This feature
46 isn't deemed entirely reliable.
47
49 statgrab(3)
50
52 http://www.i-scream.org/libstatgrab/
53
54
55
56i-scream $Date: 2005/04/25 11:25:45 $ sg_get_page_stats(3)