diff options
author | dillon <dillon@FreeBSD.org> | 2000-10-13 16:44:34 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 2000-10-13 16:44:34 +0000 |
commit | b9b696f1abc7fcd1f327c7a003e2f19073711203 (patch) | |
tree | 1e09d9935e87e4fc9f96b2883b562a9a132bbdc1 /sys/vm/swap_pager.h | |
parent | 4c9cb1a066173e802e2de5bccdff3c594437e042 (diff) | |
download | FreeBSD-src-b9b696f1abc7fcd1f327c7a003e2f19073711203.zip FreeBSD-src-b9b696f1abc7fcd1f327c7a003e2f19073711203.tar.gz |
The swap bitmap allocator was not calculating the bitmap size properly
in the face of non-stripe-aligned swap areas. The bug could cause a
panic during boot.
Refuse to configure a swap area that is too large (67 GB or so)
Properly document the power-of-2 requirement for SWB_NPAGES.
The patch is slightly different then the one Tor enclosed in the P.R.,
but accomplishes the same thing.
PR: kern/20273
Submitted by: Tor.Egge@fast.no
Diffstat (limited to 'sys/vm/swap_pager.h')
-rw-r--r-- | sys/vm/swap_pager.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/vm/swap_pager.h b/sys/vm/swap_pager.h index b239952..ea57132 100644 --- a/sys/vm/swap_pager.h +++ b/sys/vm/swap_pager.h @@ -48,12 +48,9 @@ #define _SWAP_PAGER_ 1 /* - * SWB_NPAGES can be set to any value from 1 to 16 pages per allocation, - * however, due to the allocation spilling into non-swap pager backed memory, - * suggest keeping SWB_NPAGES small (1-4). If high performance is mandatory - * perhaps up to 8 pages might be in order???? - * Above problem has been fixed, now we support 16 pages per block. Unused - * space is recovered by the swap pager now... + * SWB_NPAGES must be a power of 2. It may be set to 1, 2, 4, 8, or 16 + * pages per allocation. We recommend you stick with the default of 8. + * The 16-page limit is due to the radix code (kern/subr_blist.c). */ #if !defined(SWB_NPAGES) #define SWB_NPAGES 8 |