SVNews r327286

NOTE: This service is experimental and subject to change! Use at your own risk!

2017-12-28 13:23:13 - r327286 by kib (Konstantin Belousov)

Complete list of files affected by revision r327286:

(Note: At the moment, these links point to ViewVC on svn.freebsd.org. They are probably slow. Do not overuse.)

  History   Contents   Diff   MODIFY   /head/sys/fs/procfs/procfs_map.c  

Commit message:

Reuse kern_proc_vmmap_resident() for procfs_map resident count.

The existing algorithm in procfs_map() to calculate count of resident
pages in an entry is too primitive, resulting in too long run time for
large sparse mapping entries. Re-use the kern_proc_vmmap_resident()
from kern_proc.c which only looks at the existing pages in the
iterations.

Also, this makes procfs to honor kern.proc_vmmap_skip_resident_count,
if user does not need this information.

Reported by: Glenn Weinberg <glenn.weinberg@intel.com>
PR: 224532
No objections from: des (procfs maintainer)
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D13595

 


Powered by Python FreeBSD support by secnetix GmbH & Co. KG

Page generated in 33 ms, 1 file printed. Current time is 2018-01-20 11:21:50. All times are in UTC/GMT.