Solved

procinfo.h under AIX

Posted on 1997-06-12
2
1,293 Views
Last Modified: 2013-12-26
The structs procinfo{} and userinfo{} in /usr/include/procinfo.h are containers for quite a bit of information about the processes running on your system. One of my favourite apps, 'monitor' uses them, but I still have problems interpreting all of the elements:


struct      userinfo
{
        .
        .
        .
      unsigned long      ui_tsize;      /* size of text */
        .
        .
        .
      /* memory usage info */
      unsigned long      ui_drss;      /* data resident set size */
      unsigned long      ui_trss;      /* text resident set size */
      unsigned long      ui_dvm;            /* data virtual memory size */
};

are dealing with memory sizes, but what sizes are these exactly? What is considered to be 'text', 'data'? Please no guesses, please no easy explanations for beginners, what I need is a good definition of these terms.

Thanks for your input
      Werner
0
Comment
Question by:griessh
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
jos010697 earned 100 total points
ID: 1293416
'text' is the program code itself, while 'data' is the entire data
area (all globals and the malloc'd stuff)). Some (most?) of it
can be swapped out; the resident portion of both the text
and data areas are called the 'working set' of the process.
If I'm not mistaken (no docs here at the moment), all sizes are measured in pages (see man entry for getpagesize()).

kind regards,

Jos aka jos@and.nl
0
 
LVL 11

Author Comment

by:griessh
ID: 1293417
jos
Thanks for the VERY FAST reply!
1) ui_tsize is in byte, everything else in 4K pages!
2) Your explanation makes sense, even if the numbers don't add up
   exactly (I guess there is some process header stuff included).
3) Do you know a good (technical) source for that stuff (There
   are so many other open questions)? IBM's Technical Library
   isn't that much helpful.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Expand macro to ask for filename column 8 40
string initialization in java 11 122
Smart Camera scanning and reading information 3 127
Capture logon name 13 119
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question