Rechercher une page de manuel
sg_get_page_stats
Langue: en
Version: 166852 (fedora - 05/07/09)
Section: 3 (Bibliothèques de fonctions)
NAME
sg_get_page_stats, sg_get_page_stats_diff - get paging statisticsSYNOPSIS
#include <statgrab.h>
sg_page_stats *sg_get_page_stats(void);
sg_page_stats *sg_get_page_stats_diff(void);
DESCRIPTION
sg_get_page_stats and sg_get_page_stats_diff both return a pointer to a static buffer of type sg_page_stats.sg_get_page_stats will return the number of pages the system has paged in and out since bootup. sg_get_page_stats_diff will return the difference since last time it was called. If it has not been called before, it will return sg_get_page_stats.
RETURN VALUES
typedef struct{ long long pages_pagein; long long pages_pageout; time_t systime; }sg_page_stats;
- pages_pagein
- The number of pages swapped into memory.
- pages_pageout
- The number of pages swapped out of memory (to swap).
- systime
- The time period over which pages_pagein and pages_pageout were transferred.
BUGS
Solaris doesn't seem to report accurately. It reports the number of pages swapped into memory, not necessarily from swap. This feature isn't deemed entirely reliable.SEE ALSO
statgrab(3)WEBSITE
http://www.i-scream.org/libstatgrab/Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre