Sponsored Content
Top Forums Shell Programming and Scripting Monitor Core utilization in Solaris Sparc Post 302938600 by Zam_1234 on Tuesday 17th of March 2015 07:38:18 PM
Old 03-17-2015
Quote:
Originally Posted by jlliagre
What's the point of a 100 ms sampling rate if you look for a 1 second average anyway?

Note that sar is available for Solaris and has always been regardless of the architecture but it is quite outdated with modern hardware and is unsuitable to per core monitoring.
I am trying to read the average of 100ms sampling every 1 second and see what sort of average utilization we are seeing per core. so after 1 second I can make decision that whether I add another CPU to the pool or not (for example).

[not sure whether this answers the question, but feel free to provide your opinions...:-)]
 

9 More Discussions You Might Find Interesting

1. Linux

fedora core 6 not supported for acer lcd monitor

hi all i brought a new acer 17" widescreen lcd monitor . fedora core linux 6 in not displaying on the monitor . giving a error input not supported please let me know wht i can do (1 Reply)
Discussion started by: nageshrk
1 Replies

2. Programming

how to monitor the child process on which cpu core

Hi all. Sorry to express my questions wrongly in my early post,I repost my question again here. My pc has dual core, I wirte an application with two process, parents process and child process. My quetion is how to realize :if the child process is on core 0,it will tell me I'm on core 0,if it... (1 Reply)
Discussion started by: yanglei_fage
1 Replies

3. Emergency UNIX and Linux Support

How to monitor a process memory utilization?

hi frnds, I want to monitor a particular process very closly on how much memory it is taking. i tried with TOP and PRSTAT commands that is not giving what exactly i need. In my application, there is a memory leak happening, i want to know when it is occuering, means which transcation is... (9 Replies)
Discussion started by: vij_krr
9 Replies

4. Shell Programming and Scripting

need help for scrip to monitor disk utilization

Hi, I need help to write a script which will monitor disk utilization. Please suggest the best approach to achive this. I am thinking of having sleep inside the script which will run for(eg.) 60 secs and then disk utilization will be checked and depends on the % usage of disk mail will... (1 Reply)
Discussion started by: sunilmenhdiratt
1 Replies

5. UNIX for Dummies Questions & Answers

can I emulate solaris/sparc on virtualbox? Or other emulator to run solaris for sparc in my win7 PC?

Hi Gurus can I emulate solaris/sparc on virtualbox? Or other emulator to run solaris for sparc in my win7 PC? regards, Israel. (9 Replies)
Discussion started by: iga3725
9 Replies

6. UNIX for Advanced & Expert Users

Monitor % utilization of the network card

Hello, How to we typically monitor the % of utilization of network cards on a Unix box,basically the % utilization of the bytes transfered of the network card. This is required on all the flavours of OS - HP, AIX, RHEL, Sun etc. Please let me know. Thanks. (1 Reply)
Discussion started by: devtakh
1 Replies

7. UNIX for Dummies Questions & Answers

How to monitor per core CPU utilization?

I can use top to see the overall cpu utilization in the system but i m using a system with 24 cores .How would i monitor each core utilization ? The system is used as Oracle VM Server for Virtualization. My distribution details. # lsb_release -a LSB Version: ... (8 Replies)
Discussion started by: pinga123
8 Replies

8. Shell Programming and Scripting

Looking for shell script to monitor CPU utilization and send mail once exceed 75%

Dear Group, I'm look for shell script to Monitor CPU usage and send mail once it exceed 75% I'm running Suse10.4. (3 Replies)
Discussion started by: clfever
3 Replies

9. Solaris

SNMP - cpu core information for Sun SPARC machine

Dears, I'm looking for getting CPU cores information of Sun machines (like: SunFire V880, Fujitsu SPARC T5120, ...) via SNMP, unfortunately i couldn't find the proper OID for that. Can anyone help me with this ? Thanks, (1 Reply)
Discussion started by: Anti_Evil
1 Replies
sar(1)								   User Commands							    sar(1)

NAME
sar - system activity reporter SYNOPSIS
sar [-aAbcdgkmpqruvwy] [-o filename] t [n] sar [-aAbcdgkmpqruvwy] [-e time] [-f filename] [-i sec] [-s time] DESCRIPTION
In the first instance, the sar utility samples cumulative activity counters in the operating system at n intervals of t seconds, where t should be 5 or greater. If t is specified with more than one option, all headers are printed together and the output can be difficult to read. (If the sampling interval is less than 5, the activity of sar itself can affect the sample.) If the -o option is specified, it saves the samples in filename in binary format. The default value of n is 1. In the second instance, no sampling interval is specified. sar extracts data from a previously recorded filename, either the one specified by the -f option or, by default, the standard system activity daily data file /var/adm/sa/sadd for the current day dd. The starting and ending times of the report can be bounded using the -e and -s arguments with time specified in the form hh[:mm[:ss]]. The -i option selects records at sec second intervals. Otherwise, all intervals found in the data file are reported. OPTIONS
The following options modify the subsets of information reported by sar. -a Reports use of file access system routines: iget/s, namei/s, dirblk/s -A Reports all data. Equivalent to -abcdgkmpqruvwy. -b Reports buffer activity: bread/s, bwrit/s transfers per second of data between system buffers and disk or other block devices. lread/s, lwrit/s accesses of system buffers. %rcache, %wcache cache hit ratios, that is, (1-bread/lread) as a percentage. pread/s, pwrit/s transfers using raw (physical) device mechanism. If run in a non-global zone and the pools facility is active, these values reflect activity on the processors of the pro- cessor set of the pool to which the zone is bound. -c Reports system calls: scall/s system calls of all types. sread/s, swrit/s, fork/s, exec/s specific system calls. rchar/s, wchar/s characters transferred by read and write system calls. No incoming or outgoing exec(2) and fork(2) calls are reported. If run in a non-global zone and the pools facility is active, these values reflect activity on the processors of the pro- cessor set of the pool to which the zone is bound. -d Reports activity for each block device (for example, disk or tape drive) with the exception of XDC disks and tape drives. When data is displayed, the device specification dsk- is generally used to represent a disk drive. The device specification used to represent a tape drive is machine dependent. The activity data reported is: %busy, avque portion of time device was busy servicing a transfer request, average number of requests outstanding during that time. read/s, write/s, blks/s number of read/write transfers from or to device, number of bytes transferred in 512-byte units. avwait average wait time in milliseconds. avserv average service time in milliseconds. For more general system statistics, use iostat(1M), sar(1M), or vmstat(1M). See System Administration Guide: Basic Administration for naming conventions for disks. -e time Selects data up to time. Default is 18:00. -f filename Uses filename as the data source for sar. Default is the current daily data file /var/adm/sa/sadd. -g Reports paging activities: pgout/s page-out requests per second. ppgout/s pages paged-out per second. pgfree/s pages per second placed on the free list by the page stealing daemon. pgscan/s pages per second scanned by the page stealing daemon. %ufs_ipf the percentage of UFS inodes taken off the freelist by iget which had reusable pages associated with them. These pages are flushed and cannot be reclaimed by processes. Thus, this is the percentage of igets with page flushes. If run in a non-global zone and the pools facility is active, these values reflect activity on the processors of the pro- cessor set of the pool to which the zone is bound. -i sec Selects data at intervals as close as possible to sec seconds. -k Reports kernel memory allocation (KMA) activities: sml_mem, alloc, fail information about the memory pool reserving and allocating space for small requests: the amount of memory in bytes KMA has for the small pool, the number of bytes allocated to satisfy requests for small amounts of memory, and the number of requests for small amounts of memory that were not satisfied (failed). lg_mem, alloc, fail information for the large memory pool (analogous to the information for the small memory pool). ovsz_alloc, fail the amount of memory allocated for oversize requests and the number of oversize requests which could not be satisfied (because oversized memory is allocated dynamically, there is not a pool). -m Reports message and semaphore activities: msg/s, sema/s primitives per second. If run in a non-global zone and the pools facility is active, these values reflect activity on the processors of the pro- cessor set of the pool to which the zone is bound. -o filename Saves samples in file, filename, in binary format. -p Reports paging activities: atch/s page faults per second that are satisfied by reclaiming a page currently in memory (attaches per second). pgin/s page-in requests per second. ppgin/s pages paged-in per second. pflt/s page faults from protection errors per second (illegal access to page) or "copy-on-writes". vflt/s address translation page faults per second (valid page not in memory). slock/s faults per second caused by software lock requests requiring physical I/O. If run in a non-global zone and the pools facility is active, these values reflect activity on the processors of the pro- cessor set of the pool to which the zone is bound. -q Reports average queue length while occupied, and percent of time occupied: runq-sz, %runocc Run queue of kernel threads in memory and runnable swpq-sz, %swpocc Swap queue of processes -r Reports unused memory pages and disk blocks: freemem average pages available to user processes. freeswap disk blocks available for page swapping. -s time Selects data later than time in the form hh[:mm]. Default is 08:00. -u Reports CPU utilization (the default): %usr, %sys, %wio, %idle portion of time running in user mode, running in system mode, idle with some process waiting for block I/O, and other- wise idle. If run in a non-global zone and the pools facility is active, these values reflect activity on the processors of the pro- cessor set of the pool to which the zone is bound. -v Reports status of process, i-node, file tables: proc-sz, inod-sz, file-sz, lock-sz entries/size for each table, evaluated once at sampling point. ov overflows that occur between sampling points for each table. -w Reports system swapping and switching activity: swpin/s, swpot/s, bswin/s, bswot/s number of transfers and number of 512-byte units transferred for swapins and swapouts (including initial loading of some programs). pswch/s process switches. If run in a non-global zone and the pools facility is active, these values reflect activity on the processors of the pro- cessor set of the pool to which the zone is bound. -y Reports TTY device activity: rawch/s, canch/s, outch/s input character rate, input character rate processed by canon, output character rate. rcvin/s, xmtin/s, mdmin/s receive, transmit and modem interrupt rates. If run in a non-global zone and the pools facility is active, these values reflect activity on the processors of the pro- cessor set of the pool to which the zone is bound. EXAMPLES
Example 1: Viewing System Activity The following example displays today's CPU activity so far: example% sar Example 2: Watching System Activity Evolve To watch CPU activity evolve for 10 minutes and save data: example% sar -o temp 60 10 Example 3: Reviewing Disk and Tape Activity To later review disk and tape activity from that period: example% sar -d -f temp FILES
/var/adm/sa/sadd daily data file, where dd are digits representing the day of the month ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWaccu | +-----------------------------+-----------------------------+ SEE ALSO
sag(1), iostat(1M), sar(1M), vmstat(1M), exec(2), fork(2), attributes(5) System Administration Guide: Basic Administration NOTES
The sum of CPU utilization might vary slightly from 100 because of rounding errors in the production of a percentage figure. SunOS 5.10 24 Jul 2004 sar(1)
All times are GMT -4. The time now is 06:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy