Giter VIP home page Giter VIP logo

qemu-kvm-livebackup's Introduction

Read the documentation in qemu-doc.html.

Fabrice Bellard.

qemu-kvm-livebackup's People

Contributors

avikivity avatar blueswirl avatar jan-kiszka avatar kraxel avatar matosatti avatar aurel32 avatar markmc avatar kevmw avatar mstsirkin avatar rth7680 avatar bonzini avatar pm215 avatar edgarigl avatar agraf avatar awilliam avatar i-garrison avatar iksaif avatar carenas avatar aprzywar avatar mwalle avatar afaerber avatar lumag avatar dgibson avatar filipnavara avatar kiryl avatar ehabkost avatar balrog-kun avatar mgamal avatar cmchao avatar vivier avatar

Stargazers

Jeff Xie avatar Matthew Horwood avatar samyang avatar  avatar mekpro avatar Felix Erkinger avatar Pantelis Koukousoulas avatar Igor Moiseev avatar Ant Ramm avatar Sebastian Jeworutzki avatar Like Ma avatar Yoshinari Takaoka avatar Wataru Noguchi avatar Jagane Sundar avatar Michiel Brandenburg avatar Jérémie Tarot avatar Casey McLaughlin avatar Mario Đanić avatar

Watchers

Jagane Sundar avatar Juan Ramón avatar 陈江宏 avatar samyang avatar

qemu-kvm-livebackup's Issues

backup is too slow

subj.

solution:

# cat 0001-MINOR-add-TCP_NODELAY-to-qemu-part-socket.-speedup-b.patch 
From 2537cf5489595bb372bf10414d65ce37daec60c5 Mon Sep 17 00:00:00 2001
From: Vladimir Sementsov-Ogievskiy <[email protected]>
Date: Wed, 20 Aug 2014 15:02:14 +0400
Subject: [PATCH] MINOR add TCP_NODELAY to qemu-part socket. speedup backup
 ~x300

Signed-off-by: Vladimir Sementsov-Ogievskiy <[email protected]>

---
 livebackup.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/livebackup.c b/livebackup.c
index 0edaac0..c1b9ed7 100644
--- a/livebackup.c
+++ b/livebackup.c
@@ -11,6 +11,7 @@
  *
  */

+#include <netinet/tcp.h>
 #include "livebackup.h"

 static livebackup_disk *backup_disks = NULL;
@@ -1307,6 +1308,12 @@ backup_thread(void *unused)
             goto error;
         }

+        opt = 1;
+        if (setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &opt, sizeof(opt)) == -1) {
+            fprintf(stderr, "Error %d setting reuseaddr\n", errno);
+            goto error;
+        }
+
         do_backup(fd);

         if (fd >= 0) close(fd);
-- 
1.8.3.2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.