pagers-core 0.1.4

Core library for page cache diagnostics and control on Linux and macOS
Documentation
1
2
3
4
5
6
7
8
9
10
lazy_static::lazy_static! {
    pub static ref PAGE_SIZE: usize = {
        usize::try_from(
            nix::unistd::sysconf(nix::unistd::SysconfVar::PAGE_SIZE)
                .expect("Failed to fetch _SC_PAGESIZE")
                .expect("_SC_PAGESIZE returned None"),
        )
        .unwrap()
    };
}