FreeBSD Bugzilla – Attachment 147014 Details for
Bug 187594
[zfs] [patch] ZFS ARC behavior problem and fix
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
VM lowmem probe
lowmem_probe.patch (text/plain), 1.66 KB, created by
Steven Hartland
on 2014-09-07 15:50:26 UTC
(
hide
)
Description:
VM lowmem probe
Filename:
MIME Type:
Creator:
Steven Hartland
Created:
2014-09-07 15:50:26 UTC
Size:
1.66 KB
patch
obsolete
>Index: sys/vm/vm_pageout.c >=================================================================== >--- sys/vm/vm_pageout.c (revision 271156) >+++ sys/vm/vm_pageout.c (working copy) >@@ -76,6 +76,7 @@ > __FBSDID("$FreeBSD$"); > > #include "opt_vm.h" >+#include "opt_kdtrace.h" > #include <sys/param.h> > #include <sys/systm.h> > #include <sys/kernel.h> >@@ -89,6 +90,7 @@ __FBSDID("$FreeBSD$"); > #include <sys/racct.h> > #include <sys/resourcevar.h> > #include <sys/sched.h> >+#include <sys/sdt.h> > #include <sys/signalvar.h> > #include <sys/smp.h> > #include <sys/vnode.h> >@@ -133,6 +135,10 @@ static struct kproc_desc page_kp = { > SYSINIT(pagedaemon, SI_SUB_KTHREAD_PAGE, SI_ORDER_SECOND, kproc_start, > &page_kp); > >+SDT_PROVIDER_DEFINE(vm); >+SDT_PROBE_DEFINE(vm, , , vm__lowmem_cache); >+SDT_PROBE_DEFINE(vm, , , vm__lowmem_scan); >+ > #if !defined(NO_SWAPPING) > /* the kernel process "vm_daemon"*/ > static void vm_daemon(void); >@@ -667,6 +673,7 @@ vm_pageout_grow_cache(int tries, vm_paddr_t low, v > * may acquire locks and/or sleep, so they can only be invoked > * when "tries" is greater than zero. > */ >+ SDT_PROBE0(vm, , , vm__lowmem_cache); > EVENTHANDLER_INVOKE(vm_lowmem, 0); > > /* >@@ -899,7 +906,7 @@ vm_pageout_map_deactivate_pages(map, desired) > * pass 1 - Move inactive to cache or free > * pass 2 - Launder dirty pages > */ >-static void >+static void __used > vm_pageout_scan(struct vm_domain *vmd, int pass) > { > vm_page_t m, next; >@@ -920,6 +927,7 @@ vm_pageout_scan(struct vm_domain *vmd, int pass) > /* > * Decrease registered cache sizes. > */ >+ SDT_PROBE0(vm, , , vm__lowmem_scan); > EVENTHANDLER_INVOKE(vm_lowmem, 0); > /* > * We do this explicitly after the caches have been
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 187594
:
140882
|
140883
|
140884
|
140885
|
140886
|
140887
|
140888
|
140889
|
140890
|
140891
|
140892
|
146178
|
146203
|
146249
|
146251
|
146287
|
146300
|
146373
|
146423
|
146424
|
146456
|
146816
|
146817
|
146851
|
146852
|
146854
|
146859
|
146861
|
146946
|
146947
|
146948
|
146949
|
147014
|
147068
|
147069
|
147070
|
147265
|
147274
|
147275
|
147276
|
147286
|
147459
|
147607
|
147609
|
147733
|
147738
|
147754
|
147815
|
152852
|
158809
|
159207
|
159688
|
159859
|
159905
|
161691
|
161692
|
161943
|
164051
|
174197
|
174198
|
174231
|
174232
|
174254
|
186818