[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Doubt about statm_pgd_range patch



Hi,

I had a doubt as to why the vsize reported in /proc/nn/stat
and /proc/nn/statm differs. My search on the topic lead me 
to the details about the stam_pgd_range sucks patch 
(William Lee Irwin III) which is now included the latest 
2.6.xxx RC mm series.

I guess if i make similar changes to proc/array.c according 
to those patches, both stat and statm will report the vsize 
in the same manner - 

(vma->vm_end - vma->vm_start)

with statm reporting in pages and stat reporting in bytes

If this is the case can i report vsize of my process from 
/proc/self/stat value to be more correct than that in statm?
(iam running 2.4 kernel and stat already reports vsize in 
this manner in 2.4 kernels right ?)

Or does this patch need any other changes in kernel 
vm structures etc ?

Thanks
Arun

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>