Re: Weird message in dmesg

看板FB_stable作者時間13年前 (2012/08/27 17:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串5/12 (看更多)
Sergey Kandaurov <pluknet@freebsd.org> writes: > Index: /usr/src/sys/vm/swap_pager.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- /usr/src/sys/vm/swap_pager.c (revision 239722) > +++ /usr/src/sys/vm/swap_pager.c (working copy) > @@ -2135,7 +2135,7 @@ swapon_check_swzone(unsigned long npages) > if (npages > maxpages / 2) { > printf("warning: total configured swap (%lu pages) " > "exceeds maximum recommended amount (%lu pages).\n", > - npages, maxpages); > + npages, maxpages / 2); > printf("warning: increase kern.maxswzone " > "or reduce amount of swap.\n"); > return (-1); Correct. The theoretical maximum is maxpages, but due to fragmentation, you can run out of space well before that. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
文章代碼(AID): #1GEpwIbT (FB_stable)
討論串 (同標題文章)
文章代碼(AID): #1GEpwIbT (FB_stable)