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
explain_shmctl_or_die(3)				     Library Functions Manual					  explain_shmctl_or_die(3)

NAME
explain_shmctl_or_die - shared memory control and report errors SYNOPSIS
#include <libexplain/shmctl.h> void explain_shmctl_or_die(int shmid, int command, struct shmid_ds *data); int explain_shmctl_on_error(int shmid, int command, struct shmid_ds *data); DESCRIPTION
The explain_shmctl_or_die function is used to call the shmctl(2) system call. On failure an explanation will be printed to stderr, obtained from the explain_shmctl(3) function, and then the process terminates by calling exit(EXIT_FAILURE). The explain_shmctl_on_error function is used to call the shmctl(2) system call. On failure an explanation will be printed to stderr, obtained from the explain_shmctl(3) function, but still returns to the caller. shmid The shmid, exactly as to be passed to the shmctl(2) system call. command The command, exactly as to be passed to the shmctl(2) system call. data The data, exactly as to be passed to the shmctl(2) system call. RETURN VALUE
The explain_shmctl_or_die function only returns on success, see shmctl(2) for more information. On failure, prints an explanation and exits, it does not return. The explain_shmctl_on_error function always returns the value return by the wrapped shmctl(2) system call. EXAMPLE
The explain_shmctl_or_die function is intended to be used in a fashion similar to the following example: explain_shmctl_or_die(shmid, command, data); SEE ALSO
shmctl(2) shared memory control explain_shmctl(3) explain shmctl(2) errors exit(2) terminate the calling process COPYRIGHT
libexplain version 0.52 Copyright (C) 2011 Peter Miller explain_shmctl_or_die(3)