Re: Swap partition priority
Andrea Venturoli <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.hackers |
|---|---|
| Message-ID | <[email protected]> |
On 8/18/26 19:04, Andrea Venturoli wrote: >> If there’s no problem with adding an optional parameter to the struct >> that swapon(2) passes to the kernel > > Actually I was thinking about something much simpler and very basic. > > unknown_sysctl=0: default behaviour > unknown_sysctl=1: use the devices in order of "swapon" (when the first > is full, move to the second and so on). > > This would not require any modifications to swapon(2), but only to > swp_pager_getswapspace (besides adding the sysctl, obviously). > Right? > > At least this could be a first step and allow for testing. I've created a review: > https://reviews.freebsd.org/D59081 I'd be happy if some expert could have a look at it. bye & Thanks av.