mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-21 11:13:30 +00:00
Adjusted reserved levels to fix a deadlock condition.
Submitted by: John Dyson
This commit is contained in:
parent
e03b612d87
commit
389918ee95
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=3814
@ -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.19 1994/10/18 14:59:20 davidg Exp $
|
||||
* $Id: vm_pageout.c,v 1.20 1994/10/22 02:18:03 davidg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -855,12 +855,12 @@ vm_pageout()
|
||||
* swap pager structures plus enough for any pv_entry
|
||||
* structs when paging.
|
||||
*/
|
||||
cnt.v_free_reserved = 4 + cnt.v_page_count / 1024;
|
||||
vm_pageout_free_min = 4 + cnt.v_page_count / 1024;
|
||||
cnt.v_free_reserved = vm_pageout_free_min + 2;
|
||||
if (cnt.v_free_min < 8)
|
||||
cnt.v_free_min = 8;
|
||||
if (cnt.v_free_min > 32)
|
||||
cnt.v_free_min = 32;
|
||||
vm_pageout_free_min = cnt.v_free_reserved;
|
||||
cnt.v_free_target = 2*cnt.v_free_min + cnt.v_free_reserved;
|
||||
cnt.v_inactive_target = cnt.v_free_count / 12;
|
||||
cnt.v_free_min += cnt.v_free_reserved;
|
||||
|
Loading…
Reference in New Issue
Block a user