Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F156647706
D1671.id3431.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
717 B
Referenced Files
None
Subscribers
None
D1671.id3431.diff
View Options
Index: sys/kern/vfs_subr.c
===================================================================
--- sys/kern/vfs_subr.c
+++ sys/kern/vfs_subr.c
@@ -156,6 +156,10 @@
SYSCTL_INT(_vfs, OID_AUTO, vlru_allow_cache_src, CTLFLAG_RW,
&vlru_allow_cache_src, 0, "Allow vlru to reclaim source vnode");
+static u_long recycles_count;
+SYSCTL_ULONG(_vfs, OID_AUTO, recycles, CTLFLAG_RW, &recycles_count, 0,
+ "Number of vnodes recycled");
+
/*
* Various variables used for debugging the new implementation of
* reassignbuf().
@@ -988,6 +992,7 @@
__func__, vp);
return (EBUSY);
}
+ atomic_add_long(&recycles_count, 1);
if ((vp->v_iflag & VI_DOOMED) == 0)
vgonel(vp);
VOP_UNLOCK(vp, LK_INTERLOCK);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, May 16, 9:24 AM (20 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33124717
Default Alt Text
D1671.id3431.diff (717 B)
Attached To
Mode
D1671: Add a statistic to track the number of times a vnode is recycled.
Attached
Detach File
Event Timeline
Log In to Comment