diff options
author | Pavel Tatashin <Pavel.Tatashin@Sun.COM> | 2009-06-17 15:32:10 -0700 |
---|---|---|
committer | Pavel Tatashin <Pavel.Tatashin@Sun.COM> | 2009-06-17 15:32:10 -0700 |
commit | d20abfaa275f62e387fe9d814375fb3829fdb91f (patch) | |
tree | b6ec3b28d1083e710ec22f63e331bd6351e94804 /usr/src/uts/common/sys/vnode.h | |
parent | 5d03b6c34e8209515d5c25d3dfc5609ad2b7b5af (diff) | |
download | illumos-joyent-d20abfaa275f62e387fe9d814375fb3829fdb91f.tar.gz |
6708183 poor scalability of mdb memstat with increasing CPU count
Diffstat (limited to 'usr/src/uts/common/sys/vnode.h')
-rw-r--r-- | usr/src/uts/common/sys/vnode.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/usr/src/uts/common/sys/vnode.h b/usr/src/uts/common/sys/vnode.h index b9152024a6..f3e3fe6879 100644 --- a/usr/src/uts/common/sys/vnode.h +++ b/usr/src/uts/common/sys/vnode.h @@ -326,6 +326,12 @@ typedef struct vn_vfslocks_entry { (pvn_vmodsort_supported != 0 && ((vp)->v_flag & VMODSORT) != 0) #define VISSWAPFS 0x20000 /* vnode is being used for swapfs */ + +/* + * The mdb memstat command assumes that IS_SWAPFSVP only uses the + * vnode's v_flag field. If this changes, cache the additional + * fields in mdb; see vn_get in mdb/common/modules/genunix/memory.c + */ #define IS_SWAPFSVP(vp) (((vp)->v_flag & VISSWAPFS) != 0) #define V_SYSATTR 0x40000 /* vnode is a GFS system attribute */ |