jagane / qemu-kvm-livebackup Goto Github PK
View Code? Open in Web Editor NEWLivebackup for qemu-kvm
License: Other
Livebackup for qemu-kvm
License: Other
Read the documentation in qemu-doc.html. Fabrice Bellard.
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
just like title
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.