Page MenuHomeFreeBSD

Allow to create swap zone larger than v_page_count / 2.
ClosedPublic

Authored by kib on Nov 29 2018, 6:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 14, 5:27 PM
Unknown Object (File)
Mon, Apr 8, 1:54 PM
Unknown Object (File)
Dec 20 2023, 6:14 AM
Unknown Object (File)
Dec 13 2023, 2:56 PM
Unknown Object (File)
Sep 9 2023, 6:08 PM
Unknown Object (File)
Aug 15 2023, 5:34 AM
Unknown Object (File)
Aug 14 2023, 3:47 PM
Unknown Object (File)
Jun 28 2023, 7:54 AM
Subscribers

Details

Summary

If user configured maxswapzone tunable, just take the literal value for the initial zone sizing attempt. Before, it was only possible to reduce the zone by a tunable.

Reported by: jmg

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 21269

Event Timeline

markj added inline comments.
sys/vm/swap_pager.c
550–552

Perhaps, "taking the user's requested size or estimating the number we need..."?

583

Did you make this change because uma_zone_reserve_kva() can round up?

This revision is now accepted and ready to land.Nov 29 2018, 9:40 PM
This revision now requires review to proceed.Nov 29 2018, 10:38 PM
kib marked an inline comment as done.Nov 29 2018, 10:39 PM
kib added inline comments.
sys/vm/swap_pager.c
583

Yes, somebody noted it to me long time ago, but I did not considered it worth fixing alone.

This revision is now accepted and ready to land.Nov 29 2018, 10:44 PM
This revision was automatically updated to reflect the committed changes.