        Self {
            total,
            avail: total.saturating_sub((stats.active_count as u64).wrapping_add(stats.inactive_count as u64)
                                                                   .wrapping_add(stats.wire_count as u64)
                                                                   .wrapping_add(stats.speculative_count as u64)
                                                                   .wrapping_sub(stats.purgeable_count as u64)
                                                                   .saturating_mul(page_size)
            )