X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/d7e50217d7adf6e52786a38bcaa4cd698cb9a79e..55e303ae13a4cf49d70f2294092726f2fffb9ef2:/osfmk/vm/vm_page.h?ds=inline diff --git a/osfmk/vm/vm_page.h b/osfmk/vm/vm_page.h index a449f5dfa..585c01355 100644 --- a/osfmk/vm/vm_page.h +++ b/osfmk/vm/vm_page.h @@ -252,6 +252,10 @@ extern int vm_page_free_reserved; /* How many pages reserved to do pageout */ extern int vm_page_laundry_count; /* How many pages being laundered? */ +extern +int vm_page_burst_count; /* How many pages being laundered to EMM? */ +extern +int vm_page_throttled_count;/* Count of zero-fill allocations throttled */ decl_mutex_data(,vm_page_queue_lock) /* lock on active and inactive page queues */ @@ -419,8 +423,9 @@ extern void vm_page_gobble( MACRO_END #define VM_PAGE_THROTTLED() \ - (vm_page_free_count < (vm_page_free_target - \ - ((vm_page_free_target-vm_page_free_min)>>2))) + (vm_page_free_count < vm_page_free_min && \ + !current_thread()->vm_privilege && \ + ++vm_page_throttled_count) #define VM_PAGE_WAIT() ((void)vm_page_wait(THREAD_UNINT))