C function/system call for memory monitoring


 
Thread Tools Search this Thread
Operating Systems AIX C function/system call for memory monitoring
# 1  
Old 05-26-2007
C function/system call for memory monitoring

Hello!

Is there a C function or system call in AIX that can tell how much free memory
is in the system at a certain moment?

Also, I'd like to know if there are functions that can:
-find the number of processors in the system
-report the network interface activity.

Thank you very much in advance, any help is appreciated.
If you know links to AIX documentation on the above topics please tell me.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Memory Monitoring using ksh

MEMORY Usage should also be captured in a table format with usage by each user. Columns should be a. System time b. User c. Percentage usage Report should be published with d. current usage status e. Trend over last 3 quarter f. Usage by user When usage of MEMORY is... (1 Reply)
Discussion started by: roy1912
1 Replies

2. Infrastructure Monitoring

Memory and Database Monitoring

Hi, We have recently implemented lpar2rrd tool to monitor CPU usage in our company but now they are are asking if it is possible to monitor Database and memory usage and have it output the data on a graph as well. The memory part I know it is possible I am just not sure how to implement it.... (1 Reply)
Discussion started by: vpundit
1 Replies

3. Shell Programming and Scripting

After exit from function it should not call other function

Below is my script that is function properly per my conditions but I am facing one problem here that is when one function fails then Iy should not check other functions but it calls the other function too So anyone can help me how could i achieve this? iNOUT i AM GIVING TO THE... (1 Reply)
Discussion started by: rohit22hamirpur
1 Replies

4. Shell Programming and Scripting

ZFS file system - memory monitoring

I am working on a server where the 'root' user ZFS filesystem. Now when I do Top commands it says only 750M free .But when I count the actual memory utilized it comes only to 12 GB and the total size of the server is 32G. I think rest of the space is held up by ZFS file system. Is there a... (5 Replies)
Discussion started by: prasperl
5 Replies

5. Shell Programming and Scripting

Function call

Hi foiks i am unable to find what is wrong in my code mu functionality is to exit from shell when i give 99 but it is not calling function ext Could you please correct me. read option if ; then ext else echo "out" fi function ext { echo "tested 99 and exit... (12 Replies)
Discussion started by: kojo
12 Replies

6. Infrastructure Monitoring

diffrence between method call and function call in perl

Hello, I have a problem with package and name space. require "/Mehran/DSGateEngineLib/general.pl"; use strict; sub System_Status_Main_Service_Status_Intrusion_Prevention { my %idpstatus; my @result; &General_ReadHash("/var/dsg/idp/settings",\%idpstatus); #print... (4 Replies)
Discussion started by: Zaxon
4 Replies

7. Filesystems, Disks and Memory

disk and memory monitoring problem

Hi all, I am looking for api to get me system monitoring statictics every 5 minutes. I am looking at the following statistics: 1. System CPU Usage 2. Process CPU Usage 3. Process Memory Usage 4. I/O Usage for a certain disk. 5. Process I/O bytes/sec utilization. I have seen very... (2 Replies)
Discussion started by: uiqbal
2 Replies

8. HP-UX

Memory Usage Monitoring

Hey guys how do you determined how much memory is consumed a certain process in HP-UX,Also is there any other way of determining free memory if memdetail and sar -r is unavailable? (2 Replies)
Discussion started by: sbn
2 Replies

9. UNIX for Advanced & Expert Users

how to differentiate system call from library call

Hi, Ho do I differentiate system call from library call? for example if I am using chmod , how do I find out if it is a system call or library call? Thanks Muru (2 Replies)
Discussion started by: muru
2 Replies

10. Programming

system() function call...

Hi, Though I should check this myself.. but I don't have a cc compiler at this time.. :( When I compile a c program containing say system(myshell.sh).. do the executable require that the actual script myshell.sh to be present whenever it executes? I guess it needs.. otherwise I can just... (1 Reply)
Discussion started by: Vishnu
1 Replies
Login or Register to Ask a Question
MEMORY_PRESSURE(1)					    BSD General Commands Manual 					MEMORY_PRESSURE(1)

NAME
memory_pressure -- Tool to apply real or simulate memory pressure on the system. SYNOPSIS
memory_pressure [-l level] | [-p percent_free] | [-S -l level] OPTIONS
-l <level> Apply real or simulate memory pressure (if specified alongside simulate argument) on the system till low memory notifications cor- responding to <level> are generated. Supported values are "warn" and "critical". -p <percent_free> Allocate memory till the available memory in the system is <percent_free> of total memory. If the percentage of available memory to total memory on the system drops, the tool will free memory till either the desired percentage is achieved or it runs out of memory to free. -S Simulate memory pressure on the system by placing it artificially for <sleep_seconds> duration at the "warn" or "critical" level. -s <sleep_seconds> Duration to wait before allocating or freeing memory if applying real pressure. In case of simulating memory pressure, this is the duration the system will be maintained at an artifical memory level. DESCRIPTION
A tool to apply real or simulate memory pressure on the system SEE ALSO
vm_stat(1) Mac OS X Mar 7, 2013 Mac OS X