1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-31 16:57:10 +00:00

Correct some unfortunately chosen constants, otherwise, not enough

pages are calculated for deferred allocation of swap pager data structures.
This is a follow-on to the previous commit to this file.
This commit is contained in:
John Dyson 1996-05-29 06:33:30 +00:00
parent b182ec9eb4
commit 545901f794
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=15980

View File

@ -65,7 +65,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
* $Id: vm_pageout.c,v 1.73 1996/05/26 07:52:09 dyson Exp $
* $Id: vm_pageout.c,v 1.74 1996/05/29 05:15:33 dyson Exp $
*/
/*
@ -840,7 +840,7 @@ vm_size_t count;
cnt.v_free_min = 4;
cnt.v_pageout_free_min = 2 + VM_PAGEOUT_PAGE_COUNT
+ cnt.v_interrupt_free_min;
cnt.v_free_reserved = cnt.v_pageout_free_min + (count / 1024);
cnt.v_free_reserved = 4 + cnt.v_pageout_free_min + (count / 768);
cnt.v_free_min += cnt.v_free_reserved;
return 1;
}
@ -898,8 +898,7 @@ vm_pageout()
int inactive_target;
int s = splvm();
if (!vm_pages_needed ||
((cnt.v_free_count >= cnt.v_free_reserved) &&
((cnt.v_free_count + cnt.v_cache_count) > cnt.v_free_min))) {
((cnt.v_free_count + cnt.v_cache_count) > cnt.v_free_min)) {
vm_pages_needed = 0;
tsleep(&vm_pages_needed, PVM, "psleep", 0);
} else if (!vm_pages_needed) {