Messages in this thread Patch in this message |  | | Date | Wed, 4 Sep 2002 23:22:28 -0700 | From | William Lee Irwin III <> | Subject | Re: statm_pgd_range() sucks! |
| |
On Thu, Aug 29, 2002 at 07:51:44PM -0700, Andrew Morton wrote: >> BTW, Rohit's hugetlb patch touches proc_pid_statm(), so a diff on -mm3 >> would be appreciated.
On Wed, Sep 04, 2002 at 08:20:35PM -0700, William Lee Irwin III wrote: > I lost track of what the TODO's were but this is of relatively minor > import, and I lagged long enough this is against 2.5.33-mm2:
doh! I dropped a line merging by hand and broke VSZ
on top of the prior one:
diff -u linux-wli/fs/proc/array.c linux-wli/fs/proc/array.c --- linux-wli/fs/proc/array.c 2002-09-02 23:37:17.000000000 -0700 +++ linux-wli/fs/proc/array.c 2002-09-02 23:37:17.000000000 -0700 @@ -409,6 +409,7 @@ resident = mm->rss; for (vma = mm->mmap; vma; vma = vma->vm_next) { int pages = (vma->vm_end - vma->vm_start) >> PAGE_SHIFT; + size += pages; if (is_vm_hugetlb_page(vma)) { if (!(vma->vm_flags & VM_DONTCOPY)) shared += pages; - 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/
|  |