Hello, I want to extract domId(s) for the event like IO_READ / WRITE , (currently I am able to see domIds only for Scheduler Trace) how can I achieve the same ? Thanks in advance. -- Prateek Khandelwal _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
Hi Prateek, Do you mean you want to see the IO R+W for each domU? This information is available through xentop there is also a perl script floating about called xenstat.pl which will give you this. Or in a shell you could do: while [[ 1 ]]; do ((lvdisplay|awk ''/LV Name/{n=$3} /Block device/{d=$3; sub(".*:","dm-",d); print d,n;}'') && (iostat -m)) | sort | uniq | sort | grep ''^dm-'' | while read hdd; do key=$(echo "$hdd" | egrep -o ''dm-[0-9]+''); if [[ "$key" == "$key2" ]]; then echo "$(date ''+%F %T'') - $hdd,$hdd2"; fi; hdd2=$hdd; key2=$(echo "$hdd" | egrep -o ''dm-[0-9]+''); done; sleep 10; done From: xen-users-bounces@lists.xen.org [mailto:xen-users-bounces@lists.xen.org] On Behalf Of Prateek Khandelwal Sent: 04 March 2012 14:20 To: xen-users@lists.xensource.com Subject: [Xen-users] extracting DomID from the xentrace log Hello, I want to extract domId(s) for the event like IO_READ / WRITE , (currently I am able to see domIds only for Scheduler Trace) how can I achieve the same ? Thanks in advance. -- Prateek Khandelwal _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
yes , I want to log the IO Read writes , and the network usage too, but the problem that I am facing is that xentop doesnt report any network traffic for the domUs, nor does xenmon report any IO count in its output, (if it helps, my setup is Dom0 : f16 , DomU''s : ubuntu 11.10) On Mon, Mar 5, 2012 at 2:52 AM, Inception Hosting < inbox@inceptionhosting.com> wrote:> Hi Prateek,**** > > ** ** > > Do you mean you want to see the IO R+W for each domU?**** > > ** ** > > This information is available through xentop there is also a perl script > floating about called xenstat.pl which will give you this.**** > > ** ** > > Or in a shell you could do:**** > > ** ** > > while [[ 1 ]]; do ((lvdisplay|awk ''/LV Name/{n=$3} /Block device/{d=$3; > sub(".*:","dm-",d); print d,n;}'') && (iostat -m)) | sort | uniq | sort | > grep ''^dm-'' | while read hdd; do key=$(echo "$hdd" | egrep -o ''dm-[0-9]+''); > if [[ "$key" == "$key2" ]]; then echo "$(date ''+%F %T'') - $hdd,$hdd2"; fi; > hdd2=$hdd; key2=$(echo "$hdd" | egrep -o ''dm-[0-9]+''); done; sleep 10; done > **** > > ** ** > > ** ** > > *From:* xen-users-bounces@lists.xen.org [mailto: > xen-users-bounces@lists.xen.org] *On Behalf Of *Prateek Khandelwal > *Sent:* 04 March 2012 14:20 > *To:* xen-users@lists.xensource.com > *Subject:* [Xen-users] extracting DomID from the xentrace log**** > > ** ** > > Hello, > > I want to extract domId(s) for the event like IO_READ / WRITE , (currently > I am able to see domIds only for Scheduler Trace) > how can I achieve the same ? > > Thanks in advance. > -- > Prateek Khandelwal**** >-- Prateek Khandelwal _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
thnx for your reply, ifstat solves the problem of network traffic, still i cant get dick I/O traffic (iostat provides stats for LVs , i need something which can work for disk images (files)) On Mon, Mar 5, 2012 at 8:02 AM, Feisky <feiskyer@gmail.com> wrote:> You can use iostat to report IO Read writes and ifstat to report the > network usage. > > On Mon, Mar 5, 2012 at 6:08 AM, Prateek Khandelwal <lucky.igen@gmail.com>wrote: > >> yes , I want to log the IO Read writes , and the network usage too, but >> the problem that I am facing is that xentop doesnt report any network >> traffic for the domUs, nor does xenmon report any IO count in its output, >> (if it helps, my setup is Dom0 : f16 , DomU''s : ubuntu 11.10) >> >> >> On Mon, Mar 5, 2012 at 2:52 AM, Inception Hosting < >> inbox@inceptionhosting.com> wrote: >> >>> Hi Prateek,**** >>> >>> ** ** >>> >>> Do you mean you want to see the IO R+W for each domU?**** >>> >>> ** ** >>> >>> This information is available through xentop there is also a perl script >>> floating about called xenstat.pl which will give you this.**** >>> >>> ** ** >>> >>> Or in a shell you could do:**** >>> >>> ** ** >>> >>> while [[ 1 ]]; do ((lvdisplay|awk ''/LV Name/{n=$3} /Block device/{d=$3; >>> sub(".*:","dm-",d); print d,n;}'') && (iostat -m)) | sort | uniq | sort | >>> grep ''^dm-'' | while read hdd; do key=$(echo "$hdd" | egrep -o ''dm-[0-9]+''); >>> if [[ "$key" == "$key2" ]]; then echo "$(date ''+%F %T'') - $hdd,$hdd2"; fi; >>> hdd2=$hdd; key2=$(echo "$hdd" | egrep -o ''dm-[0-9]+''); done; sleep 10; done >>> **** >>> >>> ** ** >>> >>> ** ** >>> >>> *From:* xen-users-bounces@lists.xen.org [mailto: >>> xen-users-bounces@lists.xen.org] *On Behalf Of *Prateek Khandelwal >>> *Sent:* 04 March 2012 14:20 >>> *To:* xen-users@lists.xensource.com >>> *Subject:* [Xen-users] extracting DomID from the xentrace log**** >>> >>> ** ** >>> >>> Hello, >>> >>> I want to extract domId(s) for the event like IO_READ / WRITE , >>> (currently I am able to see domIds only for Scheduler Trace) >>> how can I achieve the same ? >>> >>> Thanks in advance. >>> -- >>> Prateek Khandelwal**** >>> >> >> >> >> -- >> Prateek Khandelwal >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xen.org >> http://lists.xen.org/xen-users >> > > > > -- > Feisky > > >-- Prateek Khandelwal _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users