William Lee Irwin III wrote:
>
> Okay, I have *had it* with statm_pgd_range()!
It's certainly very bad. A measurement tools shouldn't be perturbing
the system so much as to invalidate the results of other measurement
tools, and this one does.
I have several times had colleagues peering at kernel code wondering
why their application was spending so long in statm_pgd_range when
it really wasn't.
> ...
> (1) shared, lib, text, & total are now reported as what's mapped
> instead of what's resident. This actually fixes two bugs:
hmm. Personally, I've never believed, or even bothered to try to
understand what those columns are measuring. Does anyone actually
find them useful for anything? If so, what are they being used for?
What info do we really, actually want to know?
Reporting the size of the vma is really inaccurate for many situations,
and the info which you're showing here can be generated from
/proc/pid/maps. And it would be nice to get something useful out of this.
Would it be hard to add an `nr_pages' occupancy counter to vm_area_struct?
Go and add all those up?
BTW, Rohit's hugetlb patch touches proc_pid_statm(), so a diff on -mm3
would be appreciated.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sat Aug 31 2002 - 22:00:29 EST