aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/pcpu.h
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2015-08-28 00:44:17 +0000
committerMark Johnston <markj@FreeBSD.org>2015-08-28 00:44:17 +0000
commitc25fabea9737022e82b73a100cef53c3f59b3835 (patch)
treef08c28cd5760a53576013fdddca945d9894ba879 /sys/sys/pcpu.h
parentbd81e07d2761cf1c13063eb49a5c0cb4a6951318 (diff)
downloadsrc-c25fabea9737022e82b73a100cef53c3f59b3835.tar.gz
src-c25fabea9737022e82b73a100cef53c3f59b3835.zip
Remove weighted page handling from vm_page_advise().
This was added in r51337 as part of the implementation of madvise(MADV_DONTNEED). Its objective was to ensure that the page daemon would eventually reclaim other unreferenced pages (i.e., unreferenced pages not touched by madvise()) from the active queue. Now that the pagedaemon performs steady scanning of the active page queue, this weighted handling is unnecessary. Instead, always "cache" clean pages by moving them to the head of the inactive page queue. This simplifies the implementation of vm_page_advise() and eliminates the fragmentation that resulted from the distribution of pages among multiple queues. Suggested by: alc Reviewed by: alc Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D3401
Notes
Notes: svn path=/head/; revision=287235
Diffstat (limited to 'sys/sys/pcpu.h')
-rw-r--r--sys/sys/pcpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/pcpu.h b/sys/sys/pcpu.h
index 57ffdb0372d0..d6d1b3d82c7b 100644
--- a/sys/sys/pcpu.h
+++ b/sys/sys/pcpu.h
@@ -162,7 +162,7 @@ struct pcpu {
long pc_cp_time[CPUSTATES]; /* statclock ticks */
struct device *pc_device;
void *pc_netisr; /* netisr SWI cookie */
- int pc_dnweight; /* vm_page_dontneed() */
+ int pc_unused1; /* unused field */
int pc_domain; /* Memory domain. */
struct rm_queue pc_rm_queue; /* rmlock list of trackers */
uintptr_t pc_dynamic; /* Dynamic per-cpu data area */