Date: Wed, 13 Dec 2000 02:01:01 -0800 (PST) From: Seigo Tanimura <tanimura@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/vm default_pager.c swap_pager.c swap_pager.h vm_kern.c vm_map.c vm_object.c vm_pageout.c vm_swap.c vm_zone.c Message-ID: <200012131001.eBDA11k33907@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
tanimura 2000/12/13 02:01:01 PST
Modified files:
sys/vm default_pager.c swap_pager.c swap_pager.h
vm_kern.c vm_map.c vm_object.c
vm_pageout.c vm_swap.c vm_zone.c
Log:
- If swap metadata does not fit into the KVM, reduce the number of
struct swblock entries by dividing the number of the entries by 2
until the swap metadata fits.
- Reject swapon(2) upon failure of swap_zone allocation.
This is just a temporary fix. Better solutions include:
(suggested by: dillon)
o reserving swap in SWAP_META_PAGES chunks, and
o swapping the swblock structures themselves.
Reviewed by: alfred, dillon
Revision Changes Path
1.26 +2 -1 src/sys/vm/default_pager.c
1.150 +23 -12 src/sys/vm/swap_pager.c
1.30 +2 -1 src/sys/vm/swap_pager.h
1.65 +1 -2 src/sys/vm/vm_kern.c
1.193 +2 -2 src/sys/vm/vm_map.c
1.180 +2 -2 src/sys/vm/vm_object.c
1.167 +2 -1 src/sys/vm/vm_pageout.c
1.106 +9 -1 src/sys/vm/vm_swap.c
1.35 +11 -5 src/sys/vm/vm_zone.c
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200012131001.eBDA11k33907>
