Sponsored Content
Full Discussion: system performance
Operating Systems Linux system performance Post 302152084 by Midcain on Tuesday 18th of December 2007 02:33:31 PM
Old 12-18-2007
Power Linux has no Performance API

Linux doesn't have anything like the performance API's that other Unix platforms commonly use to access this information. So you either pull the info from commands like 'sar', or grab the info out of /proc (files in which are updated in real time). There's the possibility that someone out there has developed an open-source Linux performance API that you can download and install, but if they have I haven't heard about it.

Hope that helps.
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

System Performance Tool

Could someone point me in the correct direction or web link containing instructions for installing the System Performance Tool (aka STP) software on an IBM-AIX version 4.? machine. My client has the software (that came from their original server) on a 3" floppy. Thanks! (1 Reply)
Discussion started by: Pam
1 Replies

2. UNIX for Dummies Questions & Answers

/client_local/ and system performance

I'm running Solaris 8 on a Sun ULTRA 5(SPARC II CPU, 270 MHz) with 64 Mb of RAM. The machine is very, very slow even doing normal tasks such as reading mail....... I'm nearly afraid to ask it to do some real work....... On checking out the machine(which I only received last week from our IT... (1 Reply)
Discussion started by: Kanu77
1 Replies

3. Shell Programming and Scripting

Script for system performance

I need to prepare script which will run as background process ever 30 mins to collect the following information 1. Memory usage. 2. CPU usage. 3. Number processors running. 4. System resource (CPU and Memory) used by each process. 5. Number of sessions logged PLEASE HELP ME OUT FROM THIS ... (2 Replies)
Discussion started by: vastare
2 Replies

4. Solaris

How I can get System Performance on Solaris

Hi All, Can someone help me out knowing all commands for getting system performance on Solaris machines. Thanks in advance, Yagami Light. (5 Replies)
Discussion started by: Yagami
5 Replies

5. Solaris

How to predict system performance?

I have received an order from upper level manager to "verify system information via Perform/predict'. They asks me to *predict* the system performance. How can I do it as a system admin without the help of application admins and DBAs? Thanks! (6 Replies)
Discussion started by: aixlover
6 Replies

6. AIX

Tool to monitor the performance of the system ..

Dear experts , Pls advice for any good Tool to monitor the CPU and performance of AIX the system .. to keep monitoring to show me the utilization of that system .. (12 Replies)
Discussion started by: Mr.AIX
12 Replies

7. HP-UX

system performance

hi every body i want to check system performance i usually use glance,top,sar and swapinfo but i confused in something so i need explanation about memory issue first i want check the memory usage i used glance i found this parameter so i need one shows me the differences between these... (2 Replies)
Discussion started by: maxim42
2 Replies

8. Solaris

System performance

Hi I need to know the system performance : # echo "::memstat" | mdb -k Page Summary Pages MB %Tot ------------ ---------------- ---------------- ---- Kernel 358022 2797 9% ZFS File Data 2427072 18961 59% Anon 1096938 8569 27% Exec and libs 12020 93 0% Page cache 73859 577 2% Free... (4 Replies)
Discussion started by: dimitris
4 Replies
TASKSET(1)							Linux User's Manual							TASKSET(1)

NAME
taskset - retrieve or set a process's CPU affinity SYNOPSIS
taskset [options] mask command [arg]... taskset [options] -p [mask] pid DESCRIPTION
taskset is used to set or retrieve the CPU affinity of a running process given its PID or to launch a new COMMAND with a given CPU affin- ity. CPU affinity is a scheduler property that "bonds" a process to a given set of CPUs on the system. The Linux scheduler will honor the given CPU affinity and the process will not run on any other CPUs. Note that the Linux scheduler also supports natural CPU affinity: the scheduler attempts to keep processes on the same CPU as long as practical for performance reasons. Therefore, forcing a specific CPU affinity is useful only in certain applications. The CPU affinity is represented as a bitmask, with the lowest order bit corresponding to the first logical CPU and the highest order bit corresponding to the last logical CPU. Not all CPUs may exist on a given system but a mask may specify more CPUs than are present. A retrieved mask will reflect only the bits that correspond to CPUs physically on the system. If an invalid mask is given (i.e., one that corresponds to no valid CPUs on the current system) an error is returned. The masks are typically given in hexadecimal. For example, 0x00000001 is processor #0 0x00000003 is processors #0 and #1 0xFFFFFFFF is all processors (#0 through #31) When taskset returns, it is guaranteed that the given program has been scheduled to a legal CPU. OPTIONS
-p, --pid operate on an existing PID and not launch a new task -c, --cpu-list specify a numerical list of processors instead of a bitmask. The list may contain multiple items, separated by comma, and ranges. For example, 0,5,7,9-11. -h, --help display usage information and exit -V, --version output version information and exit USAGE
The default behavior is to run a new command with a given affinity mask: taskset mask command [arguments] You can also retrieve the CPU affinity of an existing task: taskset -p pid Or set it: taskset -p mask pid PERMISSIONS
A user must possess CAP_SYS_NICE to change the CPU affinity of a process. Any user can retrieve the affinity mask. AUTHOR
Written by Robert M. Love. COPYRIGHT
Copyright (C) 2004 Robert M. Love This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU- LAR PURPOSE. SEE ALSO
chrt(1), nice(1), renice(1), sched_setaffinity(2), sched_getaffinity(2) See sched_setscheduler(2) for a description of the Linux scheduling scheme. AVAILABILITY
The taskset command is part of the util-linux-ng package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/. schedutils Apr 2003 TASKSET(1)
All times are GMT -4. The time now is 08:36 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy