<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Slow backups (updated XO source issue)]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/julien-f" aria-label="Profile: julien-f">@<bdi>julien-f</bdi></a> <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/olivierlambert" aria-label="Profile: olivierlambert">@<bdi>olivierlambert</bdi></a> Current XO source (11cc299) is causing backups to run at about 1/2 speed (takes twice the normal time). This affects Continuous Replication and Delta Backups (to S3). I have not tested other backups. Looks like it may be caused by <code>validate VHD streams</code> (commit 68b2c28).</p>
]]></description><link>https://xcp-ng.org/forum/topic/7209/slow-backups-updated-xo-source-issue</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Apr 2026 03:20:26 GMT</lastBuildDate><atom:link href="https://xcp-ng.org/forum/topic/7209.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 17 Apr 2023 10:48:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Slow backups (updated XO source issue) on Mon, 24 Apr 2023 16:10:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/julien-f" aria-label="Profile: julien-f">@<bdi>julien-f</bdi></a> Thanks. I updated to 0444cf0 and CR times are <em>normal</em> again (as expected).</p>
]]></description><link>https://xcp-ng.org/forum/post/61373</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/61373</guid><dc:creator><![CDATA[Andrew]]></dc:creator><pubDate>Mon, 24 Apr 2023 16:10:02 GMT</pubDate></item><item><title><![CDATA[Reply to Slow backups (updated XO source issue) on Mon, 24 Apr 2023 14:55:44 GMT]]></title><description><![CDATA[<p dir="auto">I've disabled the VHD stream validation by default for now: <a href="https://github.com/vatesfr/xen-orchestra/commit/0444cf0b3bc6902fc1a995da5cf29474b7f4f167" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/vatesfr/xen-orchestra/commit/0444cf0b3bc6902fc1a995da5cf29474b7f4f167</a></p>
<p dir="auto">We'll re-enable it when we'll find a better solution.</p>
<p dir="auto">Thank you all for your reports <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=0594cb2b96d" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
<div class="row github-embeds-container">

<div class="col-md-6">
<div class="github-embed card">
<div class="card-body">



<div class="meta">
<span class="float-end">0 <i class="fa fa-comment"></i></span>
<img class="author-picture not-responsive" src="https://avatars.githubusercontent.com/u/298721?v=4" title="julien-f" />
<a href="https://github.com/julien-f"><span class="username">julien-f</span></a> committed <span class="timeago" title="2023-04-24T14:52:47Z"></span> to <a href="//github.com/vatesfr/xen-orchestra">vatesfr/xen-orchestra</a>
</div>
<a href="https://github.com/vatesfr/xen-orchestra/commit/0444cf0b3bc6902fc1a995da5cf29474b7f4f167"><pre>fix(backups): disable VHD stream validation by default

Introduced by 68b2c287e

Fixes https://xcp-ng.org/forum/post/61118

Current code is too heavy on the main thread, disable by default until a better solution is fixed.</pre></a>

</div>
</div>
</div>

</div>]]></description><link>https://xcp-ng.org/forum/post/61368</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/61368</guid><dc:creator><![CDATA[julien-f]]></dc:creator><pubDate>Mon, 24 Apr 2023 14:55:44 GMT</pubDate></item><item><title><![CDATA[Reply to Slow backups (updated XO source issue) on Mon, 24 Apr 2023 14:28:27 GMT]]></title><description><![CDATA[<p dir="auto"><img src="/forum/assets/uploads/files/1682346409961-b0abb23d-1984-490b-bb9e-2bde661a75fe-image.png" alt="b0abb23d-1984-490b-bb9e-2bde661a75fe-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I too noticed by backup times went sky high recently. I just made the suggested switch in the config and that is the difference between before/after.  My box has 2x E5-2697a v4 processors.</p>
]]></description><link>https://xcp-ng.org/forum/post/61366</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/61366</guid><dc:creator><![CDATA[sluflyer06]]></dc:creator><pubDate>Mon, 24 Apr 2023 14:28:27 GMT</pubDate></item><item><title><![CDATA[Reply to Slow backups (updated XO source issue) on Wed, 19 Apr 2023 17:13:36 GMT]]></title><description><![CDATA[<p dir="auto">Intel(R) Xeon(R) CPU E5-2620 v3 @ 2.40GHz</p>
]]></description><link>https://xcp-ng.org/forum/post/61247</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/61247</guid><dc:creator><![CDATA[Gheppy]]></dc:creator><pubDate>Wed, 19 Apr 2023 17:13:36 GMT</pubDate></item><item><title><![CDATA[Reply to Slow backups (updated XO source issue) on Wed, 19 Apr 2023 17:10:42 GMT]]></title><description><![CDATA[<p dir="auto">That's indeed very different. Out of curiosity, what's the CPU model?</p>
]]></description><link>https://xcp-ng.org/forum/post/61246</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/61246</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Wed, 19 Apr 2023 17:10:42 GMT</pubDate></item><item><title><![CDATA[Reply to Slow backups (updated XO source issue) on Wed, 19 Apr 2023 16:21:13 GMT]]></title><description><![CDATA[<p dir="auto">This is on testing environment.<br />
Version of XOCE<br />
<img src="/forum/assets/uploads/files/1681921119350-capture-resized.png" alt="Capture.PNG" class=" img-fluid img-markdown" /></p>
<p dir="auto">Transfer without setting<br />
<img src="/forum/assets/uploads/files/1681921163160-capture1-resized.png" alt="Capture1.PNG" class=" img-fluid img-markdown" /></p>
<p dir="auto">Transfer with setting<br />
<img src="/forum/assets/uploads/files/1681921179643-capture2-resized.png" alt="Capture2.PNG" class=" img-fluid img-markdown" /></p>
]]></description><link>https://xcp-ng.org/forum/post/61243</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/61243</guid><dc:creator><![CDATA[Gheppy]]></dc:creator><pubDate>Wed, 19 Apr 2023 16:21:13 GMT</pubDate></item><item><title><![CDATA[Reply to Slow backups (updated XO source issue) on Wed, 19 Apr 2023 15:58:57 GMT]]></title><description><![CDATA[<p dir="auto">Hmm this points to a concurrency issue with the backup workers <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f914.png?v=0594cb2b96d" class="not-responsive emoji emoji-android emoji--thinking_face" style="height:23px;width:auto;vertical-align:middle" title=":thinking_face:" alt="🤔" /></p>
]]></description><link>https://xcp-ng.org/forum/post/61240</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/61240</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Wed, 19 Apr 2023 15:58:57 GMT</pubDate></item><item><title><![CDATA[Reply to Slow backups (updated XO source issue) on Wed, 19 Apr 2023 15:55:42 GMT]]></title><description><![CDATA[<p dir="auto">From what I've seen:</p>
<ul>
<li>when nothing is set, XOCE makes the transfer using a single vCPU to the maximum and the rest up to 5% max . The maximum transfer being up to 23Mb/s</li>
<li>when the setting exists, XOCE uses all 12 vCPUs between 30% and 45%. The transfer is between 145Mb/s and 350Mb/s.</li>
</ul>
<p dir="auto">In both cases, the transfer is done on a 10Gib LAN and I use http mod for connecting to Servers</p>
]]></description><link>https://xcp-ng.org/forum/post/61239</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/61239</guid><dc:creator><![CDATA[Gheppy]]></dc:creator><pubDate>Wed, 19 Apr 2023 15:55:42 GMT</pubDate></item><item><title><![CDATA[Reply to Slow backups (updated XO source issue) on Wed, 19 Apr 2023 15:39:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/andrew" aria-label="Profile: Andrew">@<bdi>Andrew</bdi></a> <a href="https://github.com/vatesfr/xen-orchestra/commit/136718df7e28d63f340c700564e5c1a90d1bf05e" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/vatesfr/xen-orchestra/commit/136718df7e28d63f340c700564e5c1a90d1bf05e</a></p>
<p dir="auto">Regarding the perf issue, I will work on it as soon as I'm able to reproduce on my side <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=0594cb2b96d" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
<p dir="auto">If the impact is too big, we'll disable it by default…</p>
<div class="row github-embeds-container">

<div class="col-md-6">
<div class="github-embed card">
<div class="card-body">



<div class="meta">
<span class="float-end">0 <i class="fa fa-comment"></i></span>
<img class="author-picture not-responsive" src="https://avatars.githubusercontent.com/u/298721?v=4" title="julien-f" />
<a href="https://github.com/julien-f"><span class="username">julien-f</span></a> committed <span class="timeago" title="2023-04-19T15:36:01Z"></span> to <a href="//github.com/vatesfr/xen-orchestra">vatesfr/xen-orchestra</a>
</div>
<a href="https://github.com/vatesfr/xen-orchestra/commit/136718df7e28d63f340c700564e5c1a90d1bf05e"><pre>fix(backups/importDeltaVm): handle `suspend_VDI === 'OpaqueRef:NULL'`

Fixes https://xcp-ng.org/forum/post/61169

Introduced by 4d55c5ae4</pre></a>

</div>
</div>
</div>

</div>]]></description><link>https://xcp-ng.org/forum/post/61238</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/61238</guid><dc:creator><![CDATA[julien-f]]></dc:creator><pubDate>Wed, 19 Apr 2023 15:39:36 GMT</pubDate></item><item><title><![CDATA[Reply to Slow backups (updated XO source issue) on Tue, 18 Apr 2023 17:12:11 GMT]]></title><description><![CDATA[<p dir="auto">I had the same problem. I have a CR that until applying the setting took up to 5 days (I interrupted the backup to see where the problem is) to make a backup, now with the setting it takes 12 hours.<br />
But the stability of the transfer is better by at least 15% compared to commit afadc8f95adf741611d1f298dfe77cbf1f895231.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/andrew" aria-label="Profile: Andrew">@<bdi>Andrew</bdi></a> said in <a href="/forum/post/61131">Slow backups (updated XO source issue)</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/julien-f" aria-label="Profile: julien-f">@<bdi>julien-f</bdi></a> The time it takes for CR to run seems to be back to normal with the added config</p>
<pre><code>[backups.vm.defaultSettings]
validateVhdStreams = false
</code></pre>
<p dir="auto">I have Concurrency set to 4.</p>
<p dir="auto">There's more than enough local ethernet bandwidth between machines and XO is running on the pool master. There's lots of cores and memory for XO. But with <code>validateVhdStreams = true</code> there seems to be some single threaded issues with <em>node</em> because it uses 90%-120% cpu.</p>
<p dir="auto">With <code>validateVhdStreams = false</code> the CPU  usage is about 110%-150%, so still some single threaded issues but a lot less as <em>node</em> is able to use more than one core (but not all of them).</p>
<p dir="auto">Also... I see the warning that appeared from an earlier commit but does not cause problems:</p>
<pre><code> transfer
 Suspend VDI not available for this suspended VM
</code></pre>
</blockquote>
]]></description><link>https://xcp-ng.org/forum/post/61169</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/61169</guid><dc:creator><![CDATA[Gheppy]]></dc:creator><pubDate>Tue, 18 Apr 2023 17:12:11 GMT</pubDate></item><item><title><![CDATA[Reply to Slow backups (updated XO source issue) on Tue, 18 Apr 2023 10:48:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/andrew" aria-label="Profile: Andrew">@<bdi>Andrew</bdi></a> The <em>suspend VDI</em> warning is a bug introduced by <a href="https://github.com/vatesfr/xen-orchestra/pull/6774" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/vatesfr/xen-orchestra/pull/6774</a></p>
<p dir="auto">It has no consequences except from this message, I'll fix it ASAP <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=0594cb2b96d" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
<div class="row github-embeds-container">

<div class="col-md-6">
<div class="github-embed card">
<div class="card-body">


<div class="meta">
<img class="author-picture not-responsive" src="https://avatars.githubusercontent.com/u/298721?v=4" title="julien-f" />
<a href="https://github.com/julien-f"><span class="username">julien-f</span></a> opened this pull request <span class="timeago" title="2023-04-05T21:29:27Z"></span> in <a href="//github.com/vatesfr/xen-orchestra">vatesfr/xen-orchestra</a>
</div>
<h3>

<span class="badge closed float-end">closed</span>

<a href="https://github.com/vatesfr/xen-orchestra/pull/6774">fix(backups): restore VM with memory as suspended</a>
<span class="number">#6774</span>
</h3>


</div>
</div>
</div>

</div>]]></description><link>https://xcp-ng.org/forum/post/61146</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/61146</guid><dc:creator><![CDATA[julien-f]]></dc:creator><pubDate>Tue, 18 Apr 2023 10:48:42 GMT</pubDate></item><item><title><![CDATA[Reply to Slow backups (updated XO source issue) on Mon, 17 Apr 2023 17:59:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/julien-f" aria-label="Profile: julien-f">@<bdi>julien-f</bdi></a> The time it takes for CR to run seems to be back to normal with the added config</p>
<pre><code>[backups.vm.defaultSettings]
validateVhdStreams = false
</code></pre>
<p dir="auto">I have Concurrency set to 4.</p>
<p dir="auto">There's more than enough local ethernet bandwidth between machines and XO is running on the pool master. There's lots of cores and memory for XO. But with <code>validateVhdStreams = true</code> there seems to be some single threaded issues with <em>node</em> because it uses 90%-120% cpu.</p>
<p dir="auto">With <code>validateVhdStreams = false</code> the CPU  usage is about 110%-150%, so still some single threaded issues but a lot less as <em>node</em> is able to use more than one core (but not all of them).</p>
<p dir="auto">Also... I see the warning that appeared from an earlier commit but does not cause problems:</p>
<pre><code> transfer
 Suspend VDI not available for this suspended VM
</code></pre>
]]></description><link>https://xcp-ng.org/forum/post/61131</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/61131</guid><dc:creator><![CDATA[Andrew]]></dc:creator><pubDate>Mon, 17 Apr 2023 17:59:29 GMT</pubDate></item><item><title><![CDATA[Reply to Slow backups (updated XO source issue) on Mon, 17 Apr 2023 14:29:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/andrew" aria-label="Profile: Andrew">@<bdi>Andrew</bdi></a> This change should absolutely not change the transferred size, let's see how the future runs go <img src="https://xcp-ng.org/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=0594cb2b96d" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://xcp-ng.org/forum/post/61124</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/61124</guid><dc:creator><![CDATA[julien-f]]></dc:creator><pubDate>Mon, 17 Apr 2023 14:29:19 GMT</pubDate></item><item><title><![CDATA[Reply to Slow backups (updated XO source issue) on Mon, 17 Apr 2023 14:24:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/julien-f" aria-label="Profile: julien-f">@<bdi>julien-f</bdi></a> Normally (before the issue) the CR run takes about 8-9 minutes and transfers about 10-15GiB. After the config change it has been taking longer 12-15 minutes but is transferring more data 30-35GiB. I'll have to let it run a few more hours to see if the data size (and time) gets back to <em>normal</em>.</p>
<p dir="auto">I have been getting a lot of errors (xcp7 is the destination of the CR) too:</p>
<pre><code>root@xcp7 Xapi#putResource /import_raw_vdi/ Error [ERR_STREAM_PREMATURE_CLOSE]: Premature close
    at new NodeError (node:internal/errors:399:5)
    at ClientRequest.onclose (node:internal/streams/end-of-stream:154:30)
    at ClientRequest.emit (node:events:525:35)
    at ClientRequest.patchedEmit [as emit] (/opt/xo/xo-builds/xen-orchestra-202304161246/@xen-orchestra/log/configure.js:52:17)
    at TLSSocket.socketCloseListener (node:_http_client:465:9)
    at TLSSocket.emit (node:events:525:35)
    at TLSSocket.patchedEmit [as emit] (/opt/xo/xo-builds/xen-orchestra-202304161246/@xen-orchestra/log/configure.js:52:17)
    at node:net:322:12
    at TCP.done (node:_tls_wrap:588:7)
    at TCP.callbackTrampoline (node:internal/async_hooks:130:17) {
  code: 'ERR_STREAM_PREMATURE_CLOSE'
}
</code></pre>
]]></description><link>https://xcp-ng.org/forum/post/61123</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/61123</guid><dc:creator><![CDATA[Andrew]]></dc:creator><pubDate>Mon, 17 Apr 2023 14:24:11 GMT</pubDate></item><item><title><![CDATA[Reply to Slow backups (updated XO source issue) on Mon, 17 Apr 2023 12:04:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/andrew" aria-label="Profile: Andrew">@<bdi>Andrew</bdi></a> I'm surprised because I have done a lot of tests to ensure the impact would be minimal.</p>
<p dir="auto">You can disable this check by setting the following entry in your xo-server/xo-proxy config:</p>
<pre><code class="language-js">[backups.vm.defaultSettings]
validateVhdStreams = false
</code></pre>
<p dir="auto">If you can it would be interesting if you could provide the duration of the backup job and the CPU usage on your XO appliance with and without the validation.<br />
And please also provide the transferred size of the backup to ensure the difference does not come from here (an error I could very likely make ^^)</p>
<p dir="auto">Also, we've just removed some other checks which where no longer necessary with this change: <a href="https://github.com/vatesfr/xen-orchestra/pull/6773" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/vatesfr/xen-orchestra/pull/6773</a></p>
<div class="row github-embeds-container">

<div class="col-md-6">
<div class="github-embed card">
<div class="card-body">


<div class="meta">
<img class="author-picture not-responsive" src="https://avatars.githubusercontent.com/u/298721?v=4" title="julien-f" />
<a href="https://github.com/julien-f"><span class="username">julien-f</span></a> opened this pull request <span class="timeago" title="2023-04-05T20:38:54Z"></span> in <a href="//github.com/vatesfr/xen-orchestra">vatesfr/xen-orchestra</a>
</div>
<h3>

<span class="badge closed float-end">closed</span>

<a href="https://github.com/vatesfr/xen-orchestra/pull/6773">Revert "feat(backups/writeVhd): check file has expected size (#6703)"</a>
<span class="number">#6773</span>
</h3>


</div>
</div>
</div>

</div>]]></description><link>https://xcp-ng.org/forum/post/61121</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/61121</guid><dc:creator><![CDATA[julien-f]]></dc:creator><pubDate>Mon, 17 Apr 2023 12:04:45 GMT</pubDate></item><item><title><![CDATA[Reply to Slow backups (updated XO source issue) on Mon, 17 Apr 2023 11:13:46 GMT]]></title><description><![CDATA[<p dir="auto">Adding <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/florent" aria-label="Profile: florent">@<bdi>florent</bdi></a> in the loop</p>
]]></description><link>https://xcp-ng.org/forum/post/61119</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/61119</guid><dc:creator><![CDATA[olivierlambert]]></dc:creator><pubDate>Mon, 17 Apr 2023 11:13:46 GMT</pubDate></item></channel></rss>