Skip to contentSkip to conversation

How to get Data Segment Size ?

DISCUSSION matrix reloaded 1 participant 1 message Jul 29, 2004 Memory management

lore
Share & tools
lore
#0 lore raw

Can anyone help me in getting the Data Segment Size of a running process. I mean is there any interface for useland ?
I tried with getrusage, but it's manpage says that it's not been implemented for "ru_idrss" field of rusage structure.

I don't want to read /proc fs for this information as from there I can get this information, but don't want to depend on that.

Please help me.

Thanks.
Sumit Sharma.