Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1596088

Re: [PATCH v7 kernel 3/5] virtio-balloon: implementation of VIRTIO_BALLOON_F_CHUNK_TRANSFER

From Matthew Wilcox <willy@infradead.org>
Newsgroups linux.kernel
Subject Re: [PATCH v7 kernel 3/5] virtio-balloon: implementation of VIRTIO_BALLOON_F_CHUNK_TRANSFER
Date 2017-03-09 15:20 +0100
Message-ID <tj758-6kn-11@gated-at.bofh.it> (permalink)
References <tgOgi-4ZL-5@gated-at.bofh.it> <tgOgi-4ZL-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, Mar 03, 2017 at 01:40:28PM +0800, Wei Wang wrote:
> From: Liang Li <liang.z.li@intel.com>
> 1) allocating pages (6.5%)
> 2) sending PFNs to host (68.3%)
> 3) address translation (6.1%)
> 4) madvise (19%)
> 
> This patch optimizes step 2) by transfering pages to the host in
> chunks. A chunk consists of guest physically continuous pages, and
> it is offered to the host via a base PFN (i.e. the start PFN of
> those physically continuous pages) and the size (i.e. the total
> number of the pages). A normal chunk is formated as below:
> -----------------------------------------------
> |  Base (52 bit)               | Size (12 bit)|
> -----------------------------------------------
> For large size chunks, an extended chunk format is used:
> -----------------------------------------------
> |                 Base (64 bit)               |
> -----------------------------------------------
> -----------------------------------------------
> |                 Size (64 bit)               |
> -----------------------------------------------

What's the advantage to extended chunks?  IOW, why is the added complexity
of having two chunk formats worth it?  You already reduced the overhead by
a factor of 4096 with normal chunks ... how often are extended chunks used
and how much more efficient are they than having several normal chunks?

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v7 kernel 3/5] virtio-balloon: implementation of VIRTIO_BALLOON_F_CHUNK_TRANSFER Wei Wang <wei.w.wang@intel.com> - 2017-03-03 06:50 +0100
  Re: [PATCH v7 kernel 3/5] virtio-balloon: implementation of  VIRTIO_BALLOON_F_CHUNK_TRANSFER "Michael S. Tsirkin" <mst@redhat.com> - 2017-03-08 07:00 +0100
    Re: [virtio-dev] Re: [PATCH v7 kernel 3/5] virtio-balloon: implementation  of VIRTIO_BALLOON_F_CHUNK_TRANSFER Wei Wang <wei.w.wang@intel.com> - 2017-03-10 11:10 +0100
      Re: [virtio-dev] Re: [PATCH v7 kernel 3/5] virtio-balloon:  implementation of VIRTIO_BALLOON_F_CHUNK_TRANSFER David Hildenbrand <david@redhat.com> - 2017-03-10 14:30 +0100
      Re: [virtio-dev] Re: [PATCH v7 kernel 3/5] virtio-balloon:  implementation of VIRTIO_BALLOON_F_CHUNK_TRANSFER "Michael S. Tsirkin" <mst@redhat.com> - 2017-03-10 16:40 +0100
  Re: [PATCH v7 kernel 3/5] virtio-balloon: implementation of  VIRTIO_BALLOON_F_CHUNK_TRANSFER Matthew Wilcox <willy@infradead.org> - 2017-03-09 15:20 +0100
    Re: [PATCH v7 kernel 3/5] virtio-balloon: implementation of VIRTIO_BALLOON_F_CHUNK_TRANSFER Wei Wang <wei.w.wang@intel.com> - 2017-03-10 12:40 +0100
      Re: [PATCH v7 kernel 3/5] virtio-balloon: implementation of  VIRTIO_BALLOON_F_CHUNK_TRANSFER "Michael S. Tsirkin" <mst@redhat.com> - 2017-03-10 17:00 +0100
        Re: [PATCH v7 kernel 3/5] virtio-balloon: implementation of  VIRTIO_BALLOON_F_CHUNK_TRANSFER Matthew Wilcox <willy@infradead.org> - 2017-03-10 18:20 +0100
          Re: [PATCH v7 kernel 3/5] virtio-balloon: implementation of  VIRTIO_BALLOON_F_CHUNK_TRANSFER "Michael S. Tsirkin" <mst@redhat.com> - 2017-03-10 20:20 +0100
            Re: [PATCH v7 kernel 3/5] virtio-balloon: implementation of  VIRTIO_BALLOON_F_CHUNK_TRANSFER Matthew Wilcox <willy@infradead.org> - 2017-03-10 22:20 +0100
          Re: [PATCH v7 kernel 3/5] virtio-balloon: implementation of  VIRTIO_BALLOON_F_CHUNK_TRANSFER "Michael S. Tsirkin" <mst@redhat.com> - 2017-03-10 20:40 +0100
            Re: [PATCH v7 kernel 3/5] virtio-balloon: implementation of  VIRTIO_BALLOON_F_CHUNK_TRANSFER Matthew Wilcox <willy@infradead.org> - 2017-03-10 22:30 +0100
              Re: [PATCH v7 kernel 3/5] virtio-balloon: implementation of  VIRTIO_BALLOON_F_CHUNK_TRANSFER "Michael S. Tsirkin" <mst@redhat.com> - 2017-03-12 01:10 +0100
          Re: [PATCH v7 kernel 3/5] virtio-balloon: implementation of VIRTIO_BALLOON_F_CHUNK_TRANSFER Wei Wang <wei.w.wang@intel.com> - 2017-03-11 13:00 +0100
            Re: [PATCH v7 kernel 3/5] virtio-balloon: implementation of  VIRTIO_BALLOON_F_CHUNK_TRANSFER Matthew Wilcox <willy@infradead.org> - 2017-03-11 15:20 +0100
              RE: [PATCH v7 kernel 3/5] virtio-balloon: implementation of  VIRTIO_BALLOON_F_CHUNK_TRANSFER "Wang, Wei W" <wei.w.wang@intel.com> - 2017-03-12 03:10 +0100
                Re: [PATCH v7 kernel 3/5] virtio-balloon: implementation of  VIRTIO_BALLOON_F_CHUNK_TRANSFER "Michael S. Tsirkin" <mst@redhat.com> - 2017-03-12 05:10 +0100
                RE: [PATCH v7 kernel 3/5] virtio-balloon: implementation of  VIRTIO_BALLOON_F_CHUNK_TRANSFER "Wang, Wei W" <wei.w.wang@intel.com> - 2017-03-13 13:50 +0100
            Re: [PATCH v7 kernel 3/5] virtio-balloon: implementation of  VIRTIO_BALLOON_F_CHUNK_TRANSFER "Michael S. Tsirkin" <mst@redhat.com> - 2017-03-12 01:10 +0100

csiph-web