Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 892046 Details for
Bug 1090664
VDSM is consuming a lot of cpu time even with no active VMs
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Script for getting process stats from ps aux output
psstat (text/plain), 609 bytes, created by
Nir Soffer
on 2014-05-02 22:08:17 UTC
(
hide
)
Description:
Script for getting process stats from ps aux output
Filename:
MIME Type:
Creator:
Nir Soffer
Created:
2014-05-02 22:08:17 UTC
Size:
609 bytes
patch
obsolete
>#!/usr/bin/env python >""" >Parse ps aux output and print stats for process > >Usage: psstat pattern psaux.out >""" > >import re >import sys > >matcher = re.compile(sys.argv[1]) > >stats = {} > >def liststat(a): > b = sorted(a) > return sum(b) / len(b), b[0], b[-1] > >for line in open(sys.argv[2]): > match = matcher.search(line) > if not match: > continue > parts = line.split() > pid = parts[1] > cpu = float(parts[2]) > stats.setdefault(pid, []) > stats[pid].append(cpu) > >for pid, samples in stats.iteritems(): > print 'pid:', pid > print ' cpu avg: %f min: %f max: %f' % liststat(samples)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1090664
:
891081
|
891082
|
892044
|
892045
| 892046 |
892049