WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] ionice

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] ionice
From: Bart Coninckx <bart.coninckx@xxxxxxxxxx>
Date: Sun, 4 Jul 2010 01:01:09 +0200
Cc: Jonathan Tripathy <jonnyt@xxxxxxxxxxx>
Delivery-date: Sat, 03 Jul 2010 16:02:31 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4C2FBDA4.8030607@xxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <4C2F7C78.9000306@xxxxxxxxxxx> <201007040034.55498.bart.coninckx@xxxxxxxxxx> <4C2FBDA4.8030607@xxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.12.4 (Linux/2.6.31.12-0.2-desktop; KDE/4.3.5; x86_64; ; )
On Sunday 04 July 2010 00:45:56 Jonathan Tripathy wrote:
> On 03/07/10 23:34, Bart Coninckx wrote:
> > On Sunday 04 July 2010 00:28:59 Jonathan Tripathy wrote:
> >>> My problem is that I see high volume requests from some people with
> >>> little time in between the requests and about matters getting more and
> >>> more away from the subject at hand, which more than likely points to
> >>> people not taking the time to look for answers themselves on the
> >>> internet but choosing the easy path of free advice on a mailing list.
> >>> This community is about helping each other out after having done the
> >>> necessary research oneself.  At least that's how I see it. Mind you,
> >>> I'm at risk stating this, because I frequently am scratching my head in
> >>> the face of nasty problems and challenges with tight deadlines, but I
> >>> try to self reliant to the max and only if I'm at the end of my wits, I
> >>> will consult the list.
> >>>
> >>> No chill pills needed.
> >>
> >> FYI, I started a new topic as I had already discovered how to use solve
> >> my ionice problem (I used dstat). Which is why I then moved onto how to
> >> "prioritise" the DomU regarding disk usage, and I know that a lot of
> >> people on this list do that for their customers. I actually did do my
> >> own research, and in fact I will point you to an excellent PDF (which is
> >> taken from the book I'm currently reading):
> >> http://nostarch.com/download/xen_ch7.pdf (Page 11).
> >>
> >> Please don't jump to the conclusion that I havn't done my own research,
> >> because I have.
> >
> > Well, not really in bash scripting it seems.
> 
> If there is anyone else on this list that is willing to share some
> knowledge with a newbie, then any help would very much be appreciated.
> 
> My current train of thought is to write a script that runs "xm list
> $domname", then parses for the dom ID. Then  does a "ps aux | grep
> "$domid.xvda" " and parses for the PID. Then runs ionice with the found
> PID as a param.
> 
> Is there a nice place that I can call this script from within Xen at
> each DomU boot? It would be nice to not have to make a wrapper script
> which first runs "xm create" and then does the above. Since I wish to
> run lots of DomUs for customers, this becomes a management issue. Really
> what I need to find, is a place similar to the vif scripts, but ones
> that run after the DomU has started (as the correct disk process needs
> to be running)
> 
> Thanks
> 
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
> 

If you don't want to use a wrapper script, you will need to hack "xm". Python 
knowledge required though. 

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>