Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148494855
D21343.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
858 B
Referenced Files
None
Subscribers
None
D21343.diff
View Options
Index: head/sys/vm/vm_swapout.c
===================================================================
--- head/sys/vm/vm_swapout.c
+++ head/sys/vm/vm_swapout.c
@@ -226,20 +226,22 @@
vm_page_activate(p);
p->act_count += act_delta;
} else if (vm_page_active(p)) {
+ /*
+ * The page daemon does not requeue pages
+ * after modifying their activation count.
+ */
if (act_delta == 0) {
p->act_count -= min(p->act_count,
ACT_DECLINE);
if (!remove_mode && p->act_count == 0) {
pmap_remove_all(p);
vm_page_deactivate(p);
- } else
- vm_page_requeue(p);
+ }
} else {
vm_page_activate(p);
if (p->act_count < ACT_MAX -
ACT_ADVANCE)
p->act_count += ACT_ADVANCE;
- vm_page_requeue(p);
}
} else if (vm_page_inactive(p))
pmap_remove_all(p);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 19, 6:15 AM (14 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29951267
Default Alt Text
D21343.diff (858 B)
Attached To
Mode
D21343: Avoid requeuing active pages in vm_swapout_object_deactivate_pages().
Attached
Detach File
Event Timeline
Log In to Comment