[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Re: [PATCH v2] qemu-kvm: Speed up of the dirty-bitmap-t

From: OHMURA Kei
Subject: Re: [Qemu-devel] Re: [PATCH v2] qemu-kvm: Speed up of the dirty-bitmap-traveling
Date: Tue, 16 Feb 2010 20:16:02 +0900
User-agent: Thunderbird (Windows/20090812)

"We think"? I mean - yes, I think so too. But have you actually measured it?
How much improvement are we talking here?
Is it still faster when a bswap is involved?

Thanks for pointing out.
I will post the data for x86 later.
However, I don't have a test environment to check the impact of bswap.
Would you please measure the run time between the following section if possible?

start ->

static int kvm_get_dirty_bitmap_cb(unsigned long start, unsigned long len,
                                  void *bitmap, void *opaque)
   /* warm up each function */
   kvm_get_dirty_pages_log_range(start, bitmap, start, len);
   kvm_get_dirty_pages_log_range_new(start, bitmap, start, len);

   /* measurement */
   int64_t t1, t2;
   t1 = cpu_get_real_ticks();
   kvm_get_dirty_pages_log_range(start, bitmap, start, len);
   t1 = cpu_get_real_ticks() - t1;
   t2 = cpu_get_real_ticks();
   kvm_get_dirty_pages_log_range_new(start, bitmap, start, len);
   t2 = cpu_get_real_ticks() - t2;

   printf("## %zd, %zd\n", t1, t2); fflush(stdout);

   return kvm_get_dirty_pages_log_range_new(start, bitmap, start, len);
end ->

reply via email to

[Prev in Thread] Current Thread [Next in Thread]