[Python-Dev] stack check on Unix: any suggestions? (original) (raw)

Charles G Waldman cgw@fnal.gov
Tue, 29 Aug 2000 15:22:03 -0500 (CDT)


The situation on Linux is damn annoying, because, from a few minutes of rummaging around in the kernel it's clear that this information is available to the kernel, just not exposed to the user in a useful way. The file /proc//statm [1] gives as field 5 "drs", which is "number of pages of data/stack". If only the data and stack weren't lumped together in this number, we could actually do something with it!

[1]: Present on Linux 2.2 only. See /usr/src/linux/Documentation/proc.txt for description of this (fairly obscure) file.