[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-devel] [PATCH 6 of 8 [RFC]] libxc: introduce	xc_domain_move_memory
 
- To: Tim Deegan <tim@xxxxxxx>
 
- From: George Dunlap <george.dunlap@xxxxxxxxxxxxx>
 
- Date: Thu, 2 May 2013 16:07:14 +0100
 
- Cc: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>,	Ian Campbell <Ian.Campbell@xxxxxxxxxx>,	Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>,	Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>, Olaf Hering <olaf@xxxxxxxxx>,	xen-devel <xen-devel@xxxxxxxxxxxxx>, David Vrabel <dvrabel@xxxxxxxxxx>,	Keir Fraser <keir.xen@xxxxxxxxx>,	Andres Lagar-Cavilla <andres@xxxxxxxxxxxxxxxx>,	Jan Beulich <JBeulich@xxxxxxxx>,	Dario Faggioli <dario.faggioli@xxxxxxxxxx>,	Roger Pau Monne <roger.pau@xxxxxxxxxx>
 
- Delivery-date: Thu, 02 May 2013 15:07:37 +0000
 
- List-id: Xen developer discussion <xen-devel.lists.xen.org>
 
 
 
On 02/05/13 15:32, Tim Deegan wrote:
 
Hi,
This looks like a promising start.  Two thoughts:
1. You currently move memory into a bufferm free it, allocate new memory
    and restore the contents.  Copying directly from old to new would be
    significantly faster, and you could do it for _most_ batches:
    - copy old batch 0 to the backup buffer; free old batch 0;
    - allocate new batch 1; copy batch 1 directly; free old batch 1;
      ...
    - allocate new batch n; copy batch n directly; free old batch n;
    - allocate new batch 0; copy batch 0 from the backup buffer.
 
 Hmm -- isn't it the case that if there is not *free* memory lying around 
somewhere, then this operation is fairly pointless?  What will happen is 
that after freeing batch 0, "allocate new batch 1" will get that 
memory.  So copying it to a temporary buffer in dom0 seems like not a 
particularly useful thing to do -- it should try to allocate a new 
buffer to copy into directly, and if that fails, just say "No point 
trying -- no empty memory to move into."
 Unless of course we were trying to do this to two (or more) VMs at the 
same time, but that seems like the next level.
 -George
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
 
 
    
     |