Solved

procinfo.h under AIX

Posted on 1997-06-12
2
1,201 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
2 Comments
 
LVL 4

Accepted Solution

by:
jos010697 earned 100 total points
Comment Utility
'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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

771 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now