[xen-tools] Re: Argo's Host.pm: getRX and getTX values
Steve Kemp
steve at steve.org.uk
Tue Nov 14 15:30:22 CET 2006
On Sun, Nov 12, 2006 at 02:59:03PM -0500, Ward Vandewege wrote:
> So; it seems that the values Argo sends back for RX and TX are from the
> perspective of the dom0. This is because the getRX and getTX functions
> get their info from /proc/net/dev/ in the dom0.
Exactly.
> Now; the problem is that this is not very logical. When the 'info' or 'tx' or
> 'rx' functions are called, they get the domU's name as a parameter. A user
> would expect to get the numbers from the perspective of the domU, because
> she's asking for information about the domU, not the dom0.
To be honest I'd agree. The only downside with this approach is that
it would require the argo-server to communicate in some way with the
running instance, whether that was via a client software installation
of some kind, or even just SSH keys and :
ssh domU cat /proc/net ...
I can't really regard either solution as being terribly attractive,
but I think that there would be several advantages to mandating the
installation of client software. Especially for automated testing.
(This is an example of why I stalled on the rewrite, because there
are a lot of little issues like this that occurred to me after I'd
started to put together the code.)
> I suggest we switch the RX and TX values so that they are returned in a more
> logical fashion. I'd be happy to submit a patch.
> What do you think?
I think your suggestion is good. I think that you raise a valid and
obvious (now!) point. Unfortunately given that the state of the CVS
repository is .. broken .. I'm not going to be able to take a patch.
My preferred solution is to start again, as explained in the previous
mail, even though that does leave a lot of obvious bugs hanging.
If you, or anybody else reading this, would be interested in
discussing a design, or have input on the facilities and features that
would be desirable please do let me know.
I've been thinking about it on and off for a month or two now, and I'm
getting to the point where I'm ready to start making design decisions..
Steve
--
More information about the xen-tools-discuss
mailing list