Sponsored Content
Top Forums Shell Programming and Scripting Monitor Core utilization in Solaris Sparc Post 302938483 by Zam_1234 on Tuesday 17th of March 2015 01:23:33 AM
Old 03-17-2015
Tools Monitor Core utilization in Solaris Sparc

I am trying to read the Sparc HW counter using the following command:
Code:
cpustat -c Instr_cnt .1

This command will be running forever (for some time until interrupted by user). Sample output is:
Code:
   time  cpu   event      pic1      
  1.011   0      tick      6450    
  1.011   1       tick      9681   
  1.011   2       tick      2015  
  1.012   3       tick       535 
  1.012   4       tick       615   
   1.012   5      tick      7513  
   1.012   6      tick       615 
   1.013   7      tick      5187 
   1.013   8      tick       615 
   1.013   9      tick       615  
  1.013  10       tick       615   
   1.014  11      tick     60077  
  1.014  12       tick       438  
  1.014  13       tick       615  
  1.014  14       tick       615  
  1.015  15       tick       615
   1.015  16      tick       615 
   1.015  17       tick       438  
   1.016  18       tick       615  
   1.016  19       tick       615
  ^C

\

I am trying to get every 4 cpu's in a core (each core has 4 cpus), add the number in pic1 and average them. Once the average reaches some threshold number, I want to do some load balancing. I think the logic is: put all the elements from line 2 in an array, and then add every 4 of them. Looking for an output like:
Code:
**Core#      Average# of Inst    Utilization (#ofInst/cpu_cycle_perSec)**
   Core_0         xxxxxxxx             10%
   Core_1         xxxxxxxx             20%  
   and so on....

I am novice in coding and if anyone could help me with some simple direction to do this, that would be great. This can be done in shell/python.
Thanks in advance.

Last edited by Zam_1234; 03-17-2015 at 02:30 AM.. Reason: Formatting
 

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
XmScaleSetTicks(library call)											     XmScaleSetTicks(library call)

NAME
XmScaleSetTicks -- A Scale function that controls tick marks SYNOPSIS
#include <Xm/Scale.h> void XmScaleSetTicks( Widget scale, int big_every, Cardinal num_medium, Cardinal num_small, Dimension size_big, Dimension size_medium, Dimension size_small); DESCRIPTION
XmScaleSetTicks controls the number, location, and size of the tick marks on a Scale. Each tick mark is a SeparatorGadget oriented perpen- dicular to the Scale's orientation. For example, if the Scale is oriented horizontally, the tick marks will be oriented vertically. If you specify tick marks for a Scale and then change the Scale's orientation, you will have to do the following: o Remove all the tick marks. To remove tick marks from a Scale, you must destroy (with XtDestroyChildren) the SeparatorGadget tick marks. The first two children of a Scale are its title and scroll bar, and all additional children are tick marks. o Recreate the tick marks by calling XmScaleSetTicks. scale Specifies the Scale widget ID that is getting the tick marks. big_every Specifies the number of scale values between big ticks. num_medium Specifies the number of medium ticks between big values. num_small Specifies the number of small ticks between medium values. size_big Specifies the size (either width or height) of the big ticks. size_medium Specifies the size (either width or height) of the medium ticks. size_small Specifies the size (either width or height) of the small ticks. For a complete definition of Scale and its associated resources, see XmScale(3). RELATED
XmScale(3). XmScaleSetTicks(library call)
All times are GMT -4. The time now is 02:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy