jeffr_tech ([info]jeffr_tech) wrote,
@ 2007-01-11 12:44:00
Previous Entry  Add to memories!  Tell a Friend  Next Entry
schedgraph
Are there any python/tkinter programmers out there interested in helping me with schedgraph? I have a few features that would be very helpful and no time to work on them. Here is a screenshot if you're not familiar with it. Some of the features I'm thinking of are:

1) Sortable/mutable thread list.
2) Separate per-cpu display that shows running thread over time.
3) Various stats/cleanup/misc.
4) Support for graphing generic counter events similar to cpu load.

etc.



(4 comments) - (Post a new comment)


[info]lostinmind
2007-01-15 12:02 am UTC (link)
I'm sure i can do something, I'm not a tk person or really a python person but I am a programmer who can learn really fast.

So point me in the right direction and work shall be done.

(Reply to this) (Thread)


[info]jeffr_tech
2007-01-17 05:56 pm UTC (link)
Hey, sorry it took me a while to respond. I was away on a business trip. First things first. Do you have FreeBSD installed? If so what version?

To get schedgraph running you'll need to install the py-tkinter package from /usr/ports/x11-toolkits/py-tkinter.

Then schedgraph is in /usr/src/tool/sched/schedgraph.py

To get your own traces you'll have to enable KTR in your kernel with:

options KTR
options KTR_COMPILE=KTR_SCHED
options KTR_MASK=KTR_SCHED
options KTR_ENTRIES=65536

Then I do "ktrdump -ct > sched.out && python schedgraph.py sched.out" to view the last second or so of data.

Let me know if you need any help or when you get it running. I'll give you some pointers from there.

(Reply to this) (Parent)(Thread)


[info]lostinmind
2007-01-18 03:07 am UTC (link)
Yes I have freebsd, 6.1, 6-STABLE, and a CURRENT install. Which might have the latest ULE changes but it hasn't been updated since then. And it has no X because its run on a VM. I can get current on a decently fast machine. So I guess we will start there.

Which one can i do this with? 6-STABLE is a very old stable but the easiest for me to do this with, if I need current a snapshot was just released so I can get that up and running fast-ish. I'll still need X and all that jazz, thankfully packages were recently generated so it won't take long.

Also please note, I'm not that good with python, I'm more of a C/C++ person with a bit of a bias towards ruby rather than python so expect slow results at first as I get aquainted with the langauge a bit better.

(Reply to this) (Parent)(Thread)


[info]jeffr_tech
2007-01-18 03:13 am UTC (link)
Presumably the python/tkinter will run on just about any other operating system. You might also be able to do a remote X session. I'd prefer you ran it with 7.0 current. There are some bugs that you might go after first and they may have something to do with the formatting of events in the kernel.

The first bug you should try to find is the time scale slider won't slide to the point that you can see the whole time span at once. I believe the whole cpu frequency detection code has been somehow broken. It should be able to reliably detect your clockrate.

Free software is always written at your leisure. I'll be very thankful for any work that is done at any pace.

(Reply to this) (Parent)


(4 comments) - (Post a new comment)

Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…