Syrupy -- System Resource Usage Profiler

Comments

3 comments posted
Syrupy under SunOS

First of all, really great script. Lightweight, easy to use, nice customization. I have it working on Mac OSX and Ubuntu with no problems. Now I'm trying to get it to work on SunOS (aka Solaris) on some compute servers. However, I keep getting this error output:

Traceback (most recent call last):
File "/home/kpc/bin/syrupy.py", line 4, in
import pkg_resources
File "/opt/csw/lib/python/site-packages/pkg_resources.py", line 2603, in
working_set.require(__requires__)
File "/opt/csw/lib/python/site-packages/pkg_resources.py", line 666, in require
needed = self.resolve(parse_requirements(requirements))
File "/opt/csw/lib/python/site-packages/pkg_resources.py", line 565, in resolve
raise DistributionNotFound(req) # XXX put more info here
pkg_resources.DistributionNotFound: Syrupy==1.3.0

I reinstalled python and pysetuptools, but the problem remains. Have you had any experience with running this on SunOS? Do I need to install another package, maybe?

Posted by KP Clark (not verified) on Fri, 09/24/2010 - 11:27
KP, Not sure about this one.

KP,

Not sure about this one. Did you get this when running "setup.py" or actually trying to execute the script?

Posted by Jeet Sukumaran on Fri, 09/24/2010 - 15:28
RE: SunOS

This is during execution of the syrupy.py script. In this case, I didn't run the installation script. I just copied the syrupy.py script to my local bin folder, as suggested in the README.txt.

Now that you've mentioned it, I ran the install script and the error message is gone... =( Shame Shame Shame...

Unfortunately, I've hit the next problem, which has to do with SunOS having a different ps command. I think I can get this to work with some hacking on the script. I'll let you know how it turns out. Great tool, by the way!

-bash-3.00$ syrupy.py -p 7248
SYRUPY: Writing process resource usage samples to 'syrupy_20100928140314.ps.log'
SYRUPY: Writing raw process resource usage logs to 'syrupy_20100928140314.ps.raw'
SYRUPY: sampling process 7248
ps: unknown output format: -o %cpu
ps: unknown output format: -o %mem
ps: unknown output format: -o command
usage: ps [ -aAdeflcjLPyZ ] [ -o format ] [ -t termlist ]
[ -u userlist ] [ -U userlist ] [ -G grouplist ]
[ -p proclist ] [ -g pgrplist ] [ -s sidlist ] [ -z zonelist ]
'format' is one or more of:
user ruser group rgroup uid ruid gid rgid pid ppid pgid sid taskid ctid
pri opri pcpu pmem vsz rss osz nice class time etime stime zone zoneid
f s c lwp nlwp psr tty addr wchan fname comm args projid project pset

Posted by KP (not verified) on Tue, 09/28/2010 - 07:07

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a biological visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.