Current and Peak Memory consumption of my program?


 
Thread Tools Search this Thread
Top Forums Programming Current and Peak Memory consumption of my program?
# 1  
Old 06-06-2009
Current and Peak Memory consumption of my program?

Hi,

my C++ program does some memory consuming tasks and runs several minutes.
During execution time, I want to print information on the current memory consumption and peak memory consumption of my program into a logfile.
How can I retrieve this information, i.e. which functions are available to get memory and peak memory of my program?
I don't want to call any commands like "ps" etc. via system(), but would like to use functions supported by AIX and implement them in my C++ coding.

Thanks!

Last edited by jim mcnamara; 06-06-2009 at 06:25 AM.. Reason: duplicate post
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

Memory consumption history

I want to obtain memory consumption history on a HPUX machine. I know I can access data from the last week with sar sar -f /var/adm/sa/sa14 I do not know how to get memory usage with sar. Are there any other ways? thank you (3 Replies)
Discussion started by: black_fender
3 Replies

2. HP-UX

Find out most memory consumption process in HP UX

Dear All, I want to find out top 15 memory consumption processes in HP UX. Can anyone give me any idea about it? Kauser (2 Replies)
Discussion started by: makauser
2 Replies

3. HP-UX

memory consumption over a time period

Hi, Can some one please tell me how do I generate a report of the Memory Consumption over a time period: HP-UX B.11.31 U ia64 0440531406 unlimited-user license I normally use glance to monitor memory in run time. Note: I do not have root privileges. Thanks Danish ... (5 Replies)
Discussion started by: danish0909
5 Replies

4. UNIX for Dummies Questions & Answers

How to get current power consumption of a machine

Hi Is there any native commands or somewhere in the /proc files to get the machine's power consumption? I googled for a while and cannot really find this information Thanks for your help. (6 Replies)
Discussion started by: flagman5
6 Replies

5. UNIX for Advanced & Expert Users

how to find memory consumption by application

Hello, we are using AIX 6.1 On our AIX 6.1 server there are two instance of Oracle, a Websphear, a Java application and informatica are running. Can I find out how much memory each of these are consuming? Thanks, (1 Reply)
Discussion started by: AIX_DBA
1 Replies

6. UNIX Desktop Questions & Answers

Regarding Memory Consumption

Hi All I am new to UNIX ,can any one please help in finding MEMORY CONSUMPTION of VLC when i use it as Streaming Server. I need to log the memory consumption for atleast 10 hours. Can any one help me in finding this Please (1 Reply)
Discussion started by: ravikanth17
1 Replies

7. Solaris

real memory consumption of a process

hi pmap, prstat and ps gives the RSS which is shared memory. I need to know the consumption of real memory. how to do that? thx (4 Replies)
Discussion started by: melanie_pfefer
4 Replies

8. AIX

consumption memory

Hi, I have a problem with memory on AIX 5.3. On this server, we have JDE Edwards (ERP) and Oracle Database (9.2.0.7.0). We have 4 Gb for physical memory and 3 Gb for paging space. When I stop all services (JDE, Oracle and all other services), the physical memory is not free (4 Gb) svmon... (9 Replies)
Discussion started by: tagger
9 Replies

9. HP-UX

Memory Consumption Commands

I want to check the memory usuage on the HP-UX box. print_manifest : gave me the information of the system configuration and came to know that we have 8GB of ram. But on runtime I want to know what is the memory left. Iam new to HP-UX and I would appreciate if some one can assist me on... (2 Replies)
Discussion started by: siebeladmin
2 Replies

10. AIX

Memory consumption of threads

Hi, how can I find out how many memory (physical and virtual) a thread uses at the moment? I know how to find out the Thread-ID, but not how to monitor it... We use AIX 4.3.3 at th emoment. Please help, I am stuck :confused: !! (0 Replies)
Discussion started by: Fong
0 Replies
Login or Register to Ask a Question
maxfiles(5)							File Formats Manual						       maxfiles(5)

NAME
maxfiles - initial (soft) maximum number of file descriptors per process VALUES
Failsafe Default The default value is computed at runtime and depends on the amount of physical memory on the system. For small memory systems (less than 1GB), the default is 512. For systems with more than 1GB of memory, the default is 2048, or 2K. Allowed values The minimum value is 32. The maximum value is 1048576, or 1M. The value is further constrained in that it must be equal to or less than the hard limit, Specify a positive integer value. Recommended values At runtime, a warning will be issued if the tunable is set to a value greater than 409600, or 400K. This is beyond the tested limit. At runtime, a warning will be issued if the value is not a multiple of the file descriptor chunk (multiple of 8) size. This is not a seri- ous warning, just an information message for the administrator. DESCRIPTION
specifies the initial default number of file descriptors a process is allowed to have for open files at any given time. It is possible for a process to increase its soft limit and therefore open more than files. Nonsuperuser processes can increase their soft limit using or until they reach the hard limit, Who Is Expected to Change This Tunable? This value of this tunable rarely needs to be modified. However, this tunable may need to be modified on systems that will run applica- tions using large numbers of file descriptors, or on systems where memory consumption needs to be reduced. Restrictions on Changing This tunable is static. To have changes to the value of this tunable take effect, a system reboot is required. When Should the Value of This Tunable Be Raised? This tunable may need to be raised on systems that will run applications using large numbers of file descriptors if the applications do not already increase their process soft limit, for example using What are the Side Effects of Raising the Value? The initial process memory footprint grows due to a larger per process file table. When Should the Value of This Tunable Be Lowered? The value should be lowered to limit the number of initial file descriptors per process on a system to reduce memory consumption. What are the Side Effects of Lowering the Value? The initial process memory footprint shrinks due to a smaller per process file table. What Other Tunable Values Should Be Changed at the Same Time? The value assigned to must be less than or equal to the value of Kernel checks during tunable setting ensure this. WARNINGS
All HP-UX kernel tunable parameters are release specific. This parameter may be removed or have its meaning changed in future releases of HP-UX. Installation of optional kernel software, from HP or other vendors, may cause changes to tunable parameter values. After installation, some tunable parameters may no longer be at the default or recommended values. For information about the effects of installation on tun- able values, consult the documentation for the kernel software being installed. For information about optional kernel software that was factory installed on your system, see at AUTHOR
was developed by HP. SEE ALSO
kctune(1M), sam(1M), gettune(2), settune(2), ulimit(2), setrlimit(2), maxfiles_lim(5). Tunable Kernel Parameters maxfiles(5)