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-devel

Re: [Xen-devel] xm pause <domain>

To: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] xm pause <domain>
From: Mark Williamson <Mark.Williamson@xxxxxxxxxxxx>
Date: Sun, 23 Jan 2005 14:41:22 +0000
Cc: Chotu Ram <chotwo@xxxxxxxxxxx>
Delivery-date: Sun, 23 Jan 2005 14:50:31 +0000
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
In-reply-to: <loom.20050121T161007-607@xxxxxxxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
References: <loom.20050121T161007-607@xxxxxxxxxxxxxx>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.7.1
> I would like to know how does the pause functionality works with xm. I am
> able to use it but not sure what exactly it does. The documentation
> mentions it but doesn't really say what does it do or what is it used for.
> My assumption is it stops the CPU cycles provided to the domain and so the
> domain kind of "freezes".

Yes, it hypercalls into Xen and causes the Xen CPU scheduler to no longer give 
any CPU time to the domain.

> Also, once the domain is paused, is it possible to do some analysis on the
> state... like what processes are running (which were froze now), what files
> were open etc. from the hypervisor using the existing tools.

Not as such.  Kip wrote some patches allowing GDB to analyse the state of a 
domain but this would be debugger level functionality - to do what you 
describe directly requires a bit more OS-specific knowledge.

> Also, if such 
> tools don't exist, how difficult or easy would it be to develop such tools
> and which parts of the code would have to be modified.

The Linux Kernel Crash Dump project (http://lkcd.sf.net) includes 
Linux-specific analysis tools that (given an LKCD-formatted dump file) can 
inspect what processes were running when a dump was taken, etc.  It would be 
nice if we could dump a domain in LKCD format and thus allow these tools to 
be leveraged.

> Where does the code 
> for pause exist?

IIRC, the code in Xen is in xen/common/dom0_ops.c and xen/common/schedule.c.  
The code for calling this from user space is in the Xc libs, which are called 
by Xend on receiving a request from the xm tool.

> I would really appreciate any help in this regard.

HTH,
Mark

>
> Thanks,
>
> Chotu
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
> Tool for open source databases. Create drag-&-drop reports. Save time
> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
> Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/xen-devel


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel