CPU Usage at another Compute Node?


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users CPU Usage at another Compute Node?
# 1  
Old 07-20-2007
CPU Usage at another Compute Node?

Hi,

I am trying to get the cpu usage of a job/process. The machine that has these jobs is a cluster with 1 master node and 10 compute nodes.

Now, the complexity is that not all jobs are on the master node. So, in order to get the cpu usage of a job at another node, I have to ssh into it and then use the ps command with the process id. The problem is that it takes atleast 3.5 seconds to ssh into one of the compute nodes. Using the ps command after that will cause the cpu usage to have the wrong data, or will have the process expired itself. Is there anything that I can use to get the cpu usage of a process id at another node without having to ssh into it.

Thank you all very much for your time and efforts.

P.S. - Dont know if this matters, but just thought I would give some additional info for Python users. I am using these commands in a Python script, by importing the os class, and using os.popen() for the "ps" command, and os.execv() for the ssh command.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Forward Display from compute node

Hello, sorry if this is an easy thing, but I tried to make it run the whole morning, but it doesn't work so far... I am logged in on a visualization node of a high performance cluster. On this node I can run several gui-based software for the postprocessing of my cfd-data. As the... (1 Reply)
Discussion started by: Shlaeae
1 Replies

2. Programming

CPU usage

Hi all, I'm using python and psutil a library to get system informations like cpu usage (percent) for a given process. My question is if I have the value in % of the cpu usage how I could get the cpu usage in cycle number I mean not in percent? Thanks a lot D. (5 Replies)
Discussion started by: Dedalus
5 Replies

3. AIX

How to monitor the IBM AIX server for I/O usage,memory usage,CPU usage,network..?

How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies

4. Solaris

Multi CPU Solaris system shows 100% CPU usage.

Hello Friends, On one of my Solaris 10 box, CPU usage shows 100% using "sar", "vmstat". However, it has 4 CPUs and prstat and glance are not showing enough processes to justify high CPU utilization. ========================================================================= $ prstat -a ... (4 Replies)
Discussion started by: mahive
4 Replies

5. Solaris

current CPU usage, memory usage, disk I/O oid(snmp)

Hi, I want to monitor the current cpu usage, monitor usage , disk I/o and network utlization for solaris using SNMP. I want the oids for above tasks. can you please tell me that Thank you (2 Replies)
Discussion started by: S_venkatesh
2 Replies

6. HP-UX

how can I find cpu usage memory usage swap usage and logical volume usage

how can I find cpu usage memory usage swap usage and I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times my final destination is monitor process logical volume usage above X % and number of Logical voluage above can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies

7. Programming

CPU usage and memory usage

Please tell me solaris functions/api for getting following information 1- Function that tells how much memory used by current process 2- Function that tells how much memory used by all running processes 3- Function that tells how much CPU is used by current process 4- Function that tells how... (1 Reply)
Discussion started by: mansoorulhaq
1 Replies

8. Programming

Monitor CPU usage and Memory Usage

how can i monitor usages of CPU, Memory, Hard disk etc. under SUN Solaries through a c program or java program i want to store that data into database so i can show it graphically thanks in advance (2 Replies)
Discussion started by: Gajanad Bihani
2 Replies

9. Filesystems, Disks and Memory

cpu usage

hi, In response to your cpu usage answer I too read sys/sysinfo.h but , if we put these values to access the repective time fields in the array pst_cpu_time which is a member of the structure pst_dynamic values doesn't seem to match, why is like this? (0 Replies)
Discussion started by: sushaga
0 Replies
Login or Register to Ask a Question
condor_prio(1)						      General Commands Manual						    condor_prio(1)

Name
       condor_prio change - priority of jobs in the Condor queue

Synopsis
       condor_prio -p priority+ value- value[-n schedd_name] cluster | cluster.process | username | -a

       condor_prio-p priority+ value- value[-pool pool_name-n schedd_name] cluster | cluster.process | username | -a

Description
       condor_priochanges  the	priority  of  one  or  more  jobs in the Condor queue. If the job identification is given by cluster.process, con-
       dor_prioattempts to change the priority of the single job with job ClassAd attributes  ClusterId and  ProcId .  If  described  by  cluster,
       condor_prioattempts  to change the priority of all processes with the given  ClusterId job ClassAd attribute. If usernameis specified, con-
       dor_prioattempts to change priority of all jobs belonging to that user. For -a, condor_prioattempts to change priority of all jobs  in  the
       queue.

       The user must set a new priority with the -poption, or specify a priority adjustment. The priority of a job can be any integer, with higher
       numbers corresponding to greater priority. For adjustment of the current priority, + valueincreases the priority by the amount  given  with
       value. - valuedecreases the priority by the amount given with value.

       Only the owner of a job or the super user can change the priority.

       The  priority  changed  by  condor_priois  only used when comparing to the priority jobs owned by the same user and submitted from the same
       machine.

Options
       -n schedd_name

	  Change priority of jobs queued at the specified condor_scheddin the local pool.

       -pool pool_name-n schedd_name

	  Change priority of jobs queued at the specified condor_scheddin the specified pool.

Exit Status
       condor_priowill exit with a status value of 0 (zero) upon success, and it will exit with the value 1 (one) upon failure.

Author
       Condor Team, University of Wisconsin-Madison

Copyright
       Copyright (C) 1990-2012 Condor Team, Computer Sciences Department, University of  Wisconsin-Madison,  Madison,  WI.  All  Rights  Reserved.
       Licensed under the Apache License, Version 2.0.

       See the Condor Version 7.8.2 Manualor http://www.condorproject.org/licensefor additional notices. condor-admin@cs.wisc.edu

								  September 2012						    condor_prio(1)