Solved

procinfo.h under AIX

Posted on 1997-06-12
2
1,277 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
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

Independent Software Vendors: 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
matchUp  challenge 6 76
abstract class with all non abstract mentods 6 84
mapAB Challlenge 35 171
SQUD PROXY SERVER, UNIX, SLL/HTTPS 5 113
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.

679 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