All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mats Petersson <mats.petersson@citrix.com>
To: xen-devel@lists.xen.org
Subject: Re: xen with huffman coding
Date: Fri, 14 Dec 2012 14:49:12 +0000	[thread overview]
Message-ID: <50CB3C68.30605@citrix.com> (raw)
In-Reply-To: <CANq0ewvN=e6C7=C=QmDYv9kptoW0htZ2mO1o2gXRzk2NwCFmxg@mail.gmail.com>

On 14/12/12 14:32, digvijay chauhan wrote:
> Hello all,
>               Is it possible to integrate Xen pre-copy algorithm with 
> huffman coding compression algorithm. If during live migration of vm 
> pages are first compressed and then transferred at destination.
Short answer:
Probably.

Longer answer:
Have a look at the code, do some experimental changes, and see how much 
it improves. The question is if it's sufficiently more efficient to 
compress and then transfer the package, then uncompress it, vs. the 
uncompressed version. The answer to that depends, partly, on what the 
network setup is on the system, and how well the huffman coding is done.

For code and typical data, I'm not at all convinced that huffman 
encoding (which is based on run-lengths) is the best method. You may 
want to look at byte-pair encoding instead, which is more suitable for 
"stuff that contains byte values" - I believe it is also possible to do 
"in situ", meaning the encoding never takes more space than the original 
data - but I could have got that wrong.

Looking at different compression methods would be a good research project.

What is your goal (e.g. is downtime or overall transfer time the 
important factor)?
Generally, downtime is not very much affected by the amount of time it 
takes to copy the guest, except for the final iteration, which is a 
small portion of the total copy time. Of course, the total copy time for 
a large guest could easily be several minutes if the guest is also 
making lots of pages dirty.

What is your test setup?

What kind of network hardware are you using?

--
Mats
>
> regards,
> DigvijaySingh

  reply	other threads:[~2012-12-14 14:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-14 14:32 xen with huffman coding digvijay chauhan
2012-12-14 14:49 ` Mats Petersson [this message]
2012-12-14 16:27   ` Keir Fraser
2012-12-14 16:34     ` Mats Petersson
2012-12-14 17:19       ` Keir Fraser

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50CB3C68.30605@citrix.com \
    --to=mats.petersson@citrix.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.