08-28-2008
What performance problems do you have?
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello all,
I'm currently looking at getting new server machine for my work. Unfortunately I don't have the time to check out types and performance issue with server machine, therefore I would like to ask if anyone has suggestion for server machine to be running Redhat AS version and type of... (1 Reply)
Discussion started by: larryase
1 Replies
2. Red Hat
Hi,
I am working on a linux install to a desktop pc and will configure this onto our main server once happy with the functions etc.
I am actually a HP and AIX sys admin and was looking for the best ways to:
create a bootable file that can be copied to dvd-rw / cd-rw or to dds
be able to... (8 Replies)
Discussion started by: chlawren
8 Replies
3. Shell Programming and Scripting
I basically want to login into different linux machines( on the same network) from a windows machine. I know i can use ssh <machine name>. But i want to automate this process. I dont want to enter the username and password. Is there any way to do it. Can i make some sort of a batch script for it. (4 Replies)
Discussion started by: lassimanji
4 Replies
4. UNIX for Dummies Questions & Answers
Hi All,
I recently downloaded the Linux kernel source code, added them all to a project in MS VC++ and plan to read through it so that I can improve the way I code, read/understand a large code database and hopefully contribute something to the development of the Linux OS.
I have taken a... (3 Replies)
Discussion started by: clavian
3 Replies
5. UNIX for Dummies Questions & Answers
After installing PV (Para virtual drivers) drivers I m not able to check the network speed of my Ethernet port.
Please check the output of mii-tool and ethtool.
# mii-tool eth0
SIOCGMIIPHY on 'eth0' failed: Operation not supported
# ethtool eth0
Settings for eth0:
Link... (2 Replies)
Discussion started by: pinga123
2 Replies
6. Shell Programming and Scripting
I need a shell script to copy files frm a linux machine to a windows machine using SCP. The files keeps changing day-to-day. I have to copy the latest file to the windows machine frm the linux machine.
for example :In Linux, On July 20, the file name will be 20.txt and it should be copied to... (3 Replies)
Discussion started by: nithin6034
3 Replies
7. What is on Your Mind?
I am looking to hire a Linux Application developer for my startup. But am having trouble screening for the right skill-set. What should I look for ? And, where do I find these developers who have experience in building applications for Linux?
Best,
E (1 Reply)
Discussion started by: emerging_desk
1 Replies
8. Red Hat
We have a Redhat Enterprise Linux server which is not in production environment. Unfortunately it is not logging. How to trouble shoot it ?? How to know the exact problem ?
:rolleyes: (3 Replies)
Discussion started by: vamshigvk475
3 Replies
LEARN ABOUT SUNOS
cpc_disable
cpc_enable(3CPC) cpc_enable(3CPC)
NAME
cpc_enable, cpc_disable - enable and disable performance counters
SYNOPSIS
cc [ flag... ] file... -lcpc [ library... ]
#include <libcpc.h>
int cpc_enable(cpc_t *cpc);
int cpc_disable(cpc_t *cpc);
In certain applications, it can be useful to explicitly enable and disable performance counters at different times so that the performance
of a critical algorithm can be examined. The cpc_enable() and cpc_disable() functions can be used to enable and disable the performance
counters without otherwise disturbing the invoking LWP's performance hardware configuration.
Upon successful completion, cpc_enable() and cpc_disable() return 0. Otherwise, they return -1 and set errno to indicate the error.
These functions will fail if:
EAGAIN The associated performance counter context has been invalidated by another process.
EINVAL No performance counter context has been created for the calling LWP.
Example 1: Use cpc_enable and cpc_disable to minimize code needed by application.
In the following example, the cpc_enable() and cpc_disable() functions are used to minimize the amount of code that needs to be added to
the application. The cputrack(1) command can be used in conjunction with these functions to provide event programming, sampling, and
reporting facilities.
If the application is instrumented in this way and then started by cputrack with the nouser flag set in the event specification, counting
of user events will only be enabled around the critical code section of interest. If the program is run normally, no harm will ensue.
int
main(int argc, char *argv[])
{
cpc_t *cpc = cpc_open(CPC_VER_CURRENT);
/* ... application code ... */
if (cpc != NULL)
(void) cpc_enable(cpc);
/* ==> Code to be measured goes here <== */
if (cpc != NULL)
(void) cpc_disable(cpc);
/* ... other application code */
}
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
|MT-Level |Safe |
+-----------------------------+-----------------------------+
cputrack(1), cpc(3CPC), cpc_open(3CPC), libcpc(3LIB), attributes(5)
31 Jan 2005 cpc_enable(3CPC)