Konstantin Belousov a91831a261 Current code in sysctl proc.vmmap, which intent is to calculate the
amount of resident pages, in fact calculates the amount of installed
pte entries in the region.  Resident pages which were not soft-faulted
yet are not counted.

Calculate the amount of resident pages by looking in the objects chain
backing the region.

Add a knob to disable the residency calculation at all.  For large
sparce regions, either previous or updated algorithm runs for too long
time, while several introspection tools do not need the (advisory) RSS
value at all.

PR:	kern/188911
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
2014-07-09 19:11:57 +00:00
..
2014-07-07 00:27:09 +00:00
2014-03-18 21:34:11 +00:00
2014-03-14 06:29:43 +00:00
2014-06-28 17:36:18 +00:00
2014-07-07 00:27:09 +00:00
2014-03-19 12:45:40 +00:00
2014-07-07 00:27:09 +00:00
2014-03-14 06:29:43 +00:00
2014-06-26 13:57:44 +00:00
2014-05-01 22:28:14 +00:00
2014-06-01 04:11:05 +00:00
2014-07-07 00:27:09 +00:00
2014-03-18 21:34:11 +00:00
2014-03-18 21:34:11 +00:00
2014-05-30 08:22:58 +00:00
2014-06-27 05:04:36 +00:00
2014-04-12 21:39:17 +00:00