Page MenuHomeFreeBSD

partedit: limit default swap to maximum supported by kernel
AcceptedPublic

Authored by emaste on Jun 19 2025, 7:23 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 12, 3:47 AM
Unknown Object (File)
Sat, Oct 4, 5:41 AM
Unknown Object (File)
Thu, Oct 2, 8:39 PM
Unknown Object (File)
Thu, Oct 2, 2:57 AM
Unknown Object (File)
Sat, Sep 27, 4:10 PM
Unknown Object (File)
Aug 13 2025, 9:18 PM
Unknown Object (File)
Aug 5 2025, 12:59 AM
Unknown Object (File)
Jul 29 2025, 7:05 AM
Subscribers

Details

Reviewers
olce
cperciva
Group Reviewers
Installer
Summary
PR:             251993
Sponsored by:   The FreeBSD Foundation

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

cperciva added a subscriber: cperciva.

It's not impossible for systems to be upgraded with more RAM later, which would allow more swap to be used. But even in that case it's likely that the original autotuned limit would be sufficient, so go ahead.

This revision is now accepted and ready to land.Jun 19 2025, 7:31 PM

It's not impossible for systems to be upgraded with more RAM later

Even so I think there's typically a lot of room to grow, e.g. on my 32GB laptop swap_maxpages allows for 247GB:

$ expr $(sysctl -n vm.swap_maxpages) \* 4096 / 1024 / 1024 / 1024
247