PMWHICHCONTEXT(3) Library Functions Manual PMWHICHCONTEXT(3)NAME
pmWhichContext - identify the current PMAPI context
C SYNOPSIS
#include <pcp/pmapi.h>
int pmWhichContext(void);
cc ... -lpcp
DESCRIPTION
An application using the Performance Metrics Application Programming Interface (PMAPI) may manipulate several concurrent contexts, each
associated with a source of performance metrics, e.g. pmcd(1) on some host, or an archive log of performance metrics as created by pmlog-
ger(1).
pmWhichContext returns a handle for the current PMAPI context, that may be used in the associated PMAPI routines that require a handle to
identify a PMAPI context.
SEE ALSO PMAPI(3), pmDestroyContext(3), pmDupContext(3), pmNewContext(3) and pmUseContext(3).
DIAGNOSTICS
PM_ERR_NOCONTEXT
no current context
Performance Co-Pilot PCP PMWHICHCONTEXT(3)
Check Out this Related Man Page
PMDUPCONTEXT(3) Library Functions Manual PMDUPCONTEXT(3)NAME
pmDupContext - duplicate a PMAPI context
C SYNOPSIS
#include <pcp/pmapi.h>
int pmDupContext(void);
cc ... -lpcp
DESCRIPTION
An application using the Performance Metrics Application Programming Interface (PMAPI) may manipulate several concurrent contexts, each
associated with a source of performance metrics, e.g. pmcd(1) on some host, or an archive log of performance metrics as created by pmlog-
ger(1).
Calling pmDupContext will replicate the current PMAPI context, returning a handle for the new context that may be used with subsequent
calls to pmUseContext(3).
Once created, the duplicated context and the original context have independent existence, and so their instance profiles and collection
time (relevant only for archive contexts) may be independently varied.
The newly replicated context becomes the current context.
SEE ALSO PMAPI(3), pmNewContext(3) and pmUseContext(3).
Performance Co-Pilot PCP PMDUPCONTEXT(3)
Man Page
14 More Discussions You Might Find Interesting
1. Post Here to Contact Site Administrators and Moderators
can you please let me know will there be any performance improvement
if i change my command in unix from
ls rtlog* | grep "rtlog_*4_"
to
ls rtlog_4_* rtlog_0004_*
assuming that i have patterns only as 4 or 0004 and not other pattern type. (2 Replies)
Hello,
I would like get idea about performance enginering from basic to advanced level. Do anyone know a place where i can find some videos related to performance engineering ? (5 Replies)
Hi all,
I am planning to give a presentation on performance measure. I have decided to focus on the commands which are used to know the performance of the server. I have a idea of prstat,vmstat,netstat, and iostat. Could anybody suggest me any other commands which are used for perforamance... (7 Replies)
I am interested in setting up some High Performance Computing clusters and would like to get people's views and experiences on this.
I have 2 requirements:
1. Compute clusters to do fast cpu intensive computations
2. Storage clusters of parallel and extendable filesystems spread across many... (6 Replies)
In my C program i am using very large file(approx 400MB) to read parts of it frequently. But due to large file the performance of the program goes down very badly. It shows very high I/O usage and I/O wait time.
My question is, What are the ways to optimize or tune I/O on linux or how i can get... (10 Replies)
hi I am having a performance issue with the following requirement
i have to create a permutation and combination on a set of three files
such that each record in each file is picked and the output is redirected in
a specific format but it is taking around 70 odd hours to prepare a
combination... (7 Replies)
I am looking for a way to measure performance metrics of streaming audio/video from a contecnt server, e.g. YouTube for example. Im keen to see if I can look at duration it took for contecnt to download.
I know from the output of wget's log file you can see duration a url is downloaded in.... (5 Replies)
I've just been handed a hot potato from a colleague who left :(... our client has been complaining about slow performance on one of our servers.
I'm not very experienced in investigating performance issues so I hoping someone will be so kind to provide some guidance
Here is an overview of the... (8 Replies)
i have a program(C++ Code) that sends/receives information through queue's (Uses MQ)
Is there any UNIX/LINUX tool that calculates the load and performance time for the same.
If not how do i design the program that calculates the performance time.
i know that time.h can be used but it gives... (2 Replies)
Good Day Everyone,
Just wonder anyone has encounter AIX 6.1 Memory Performance issues ? What I have in my current scenario is we have 3 datastage servers (Segregate server and EE jobs - for those who know Datastage achitect) and 2 db servers(running HA to load balance 4 nodes partitions for... (3 Replies)
Have a question about doing some performance monitoring - how to approach it.
This is on RHEL 7.4
We are moving a rather large application to new hardware in the future. I would like to find a way to compared performance on the new hardware at different stages and at different times.
I'm... (4 Replies)