Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152049166
D12004.id32208.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
769 B
Referenced Files
None
Subscribers
None
D12004.id32208.diff
View Options
Index: head/lib/libutil/kinfo_getvmmap.3
===================================================================
--- head/lib/libutil/kinfo_getvmmap.3
+++ head/lib/libutil/kinfo_getvmmap.3
@@ -25,7 +25,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd May 27, 2015
+.Dd August 18, 2017
.Dt KINFO_GETVMMAP 3
.Os
.Sh NAME
@@ -58,6 +58,13 @@
mib.
While the kernel returns a packed structure, this function expands the
data into a fixed record format.
+.Sh CAVEAT
+.Fn kinfo_getvmmap
+calls can cause significant CPU consumption because calculating the residency
+counts requires iterating over all memory pages of the process.
+Setting the sysctl variable
+.Va kern.proc_vmmap_skip_resident_count
+to 1 prevents this calculation.
.Sh RETURN VALUES
On success the
.Fn kinfo_getvmmap
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 13, 8:51 AM (2 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31402699
Default Alt Text
D12004.id32208.diff (769 B)
Attached To
Mode
D12004: Add caveat to kinfo_getvmmap(3) explaining high CPU utilisation
Attached
Detach File
Event Timeline
Log In to Comment