openmosixview bugs/issues/wishlist
Hubert Chan <[email protected]> Mon, 17 Nov 2003 15:08:43 -0500
| Newsgroups | gmane.linux.cluster.openmosix.mosixview |
|---|---|
| Message-ID | <[email protected]> |
Our local Debian group recently set up an openMosix cluster, and we are
using openMosixview as our visualization (i.e. show off) tool. While
setting up openMosixview, we have identified some bugs, and wishlist
items. I am also willing to help out with any of these issues if
needed.
- openmosixcollector should not store its statistics in /tmp. From the
FHS, the best place I can see for the stats would be
/var/lib/openmosixview. (Our local version of openmosixcollector has
been changed to store the stats in /var/lib/openmosixview.)
- openmosixcollector should be able to automatically delete old (e.g. >
7 days old) statistics. (Alternately, this could be handled by a
cron script.)
- openmosixcollector should run as its own separate user instead of as
root (if possible -- I'm new to openMosix, so I don't know if it will
be able to collect the statistics if it's not root).
- openmosixcollector should not output debugging info to stdout
(especially when in daemon mode). If it needs to print out debugging
info, that should be sent to syslog.
- openmosixview should not use a hardcoded /tmp/nodes.tmp filename. At
least it should use a mkstemp(3)-generated file. Ideally it should
fork the external process with a redirected stdout, and read straight
from the process.
- when generating the date string in openmosixcollector, should add 1
to the month, since tm_mon is 0-based, but human-readable formats are
usually 1-based.
- in most of the files, there are a lot of instances of things like
"returndate = returndate + ..."
where returndate is a string. It is much better to write
"returndate += ..."
since this should, in general, be faster.
That's it for now. I'm planning on looking through most of the code
later on, and I'll keep you informed of anything else I find.
Hubert
-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl