Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement swap usage for linux #175

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

Bnyro
Copy link

@Bnyro Bnyro commented Jul 1, 2024

First of all, thanks for that amazing library, the performance and resource usage are really impressive compared to other similar libraries I've tried.

This PR implements swap for Linux, based on the already existing implementation for RAM that's using the sysinfo syscall.

It's probably possible to read that information from /proc/meminfo on Android, BSD and OpenWRT, but since I'm not having access to a device running BSD (and not enough motivation to test it on Android and OpenWRT because it's already too late in the day), this will be left unimplemented for now. I'd probably implement support for the mentioned operation systems as well if you're generally okay with this change.

Cheers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant