Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pmwhichcontext(3) [centos man page]

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

Help! Slow Performance

Is the performance now very, very slow (pages take a very long time to load)? Or is it just me? Neo (6 Replies)
Discussion started by: Neo
6 Replies

2. UNIX for Dummies Questions & Answers

Performance related to ls

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)
Discussion started by: sridhar1978
2 Replies

3. Programming

Performance engineering concepts

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)
Discussion started by: shafi2all
5 Replies

4. Solaris

Performance Monitoring

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)
Discussion started by: priky
7 Replies

5. High Performance Computing

High Performance Computing

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)
Discussion started by: humbletech99
6 Replies

6. UNIX for Advanced & Expert Users

Performance issue!

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)
Discussion started by: mavens
10 Replies

7. Web Development

Performance Metrics for vB Global Translator

(4 Replies)
Discussion started by: Neo
4 Replies

8. UNIX for Dummies Questions & Answers

Help about identify the SP of my OS (Aix5.3)

(4 Replies)
Discussion started by: fdeivis
4 Replies

9. UNIX for Dummies Questions & Answers

Performance issue

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)
Discussion started by: mad_man12
7 Replies

10. Shell Programming and Scripting

Performance Metrics using wget

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)
Discussion started by: rob171171
5 Replies

11. Emergency UNIX and Linux Support

Performance investigation, very high runq-sz %runocc

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)
Discussion started by: Solarius
8 Replies

12. UNIX for Advanced & Expert Users

Performance calculation for Message Queues

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)
Discussion started by: vkca
2 Replies

13. AIX

AIX 6.1 Memory Performance issues

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)
Discussion started by: ckwan
3 Replies

14. Red Hat

Performance Monitoring - RHEL 7.4

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)
Discussion started by: Overcast451
4 Replies