Bug 90503 - webdav: copying big files makes the session unusable
Summary: webdav: copying big files makes the session unusable
Status: RESOLVED MOVED
Alias: None
Product: Spice
Classification: Unclassified
Component: spice-gtk (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Spice Bug List
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-18 07:24 UTC by Victor Toso
Modified: 2018-06-03 10:19 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Victor Toso 2015-05-18 07:24:08 UTC
With patches from: http://lists.freedesktop.org/archives/spice-devel/2015-May/019796.html

While copying big files from guest to client by putting those files in the shared folder, the sessions freezes.
channel-webdav and spicevmc have a heavy workload repeating the following debug over and over again. (I've included a debug on phodav to check the amount of data requested each time, which is 8192 bytes).
The sessions is normal once the file has been copied.

Client and Guest: f22
Using spicy with latests spice-gtk git with above patches applied.

(spicy:22059): GSpice-DEBUG: channel-webdav.c:491 webdav-11:0: start demux
(spicy:22059): GSpice-DEBUG: vmcstream.c:134 spicevmc co_data complete: 8/8
(spicy:22059): GSpice-DEBUG: channel-webdav.c:588 webdav-11:0: len:2 buf:0x1abd52f0
(spicy:22059): GSpice-DEBUG: vmcstream.c:121 spicevmc co_data (nil)
(spicy:22059): GSpice-DEBUG: vmcstream.c:134 spicevmc co_data complete: 2/2
(spicy:22059): GSpice-DEBUG: channel-webdav.c:588 webdav-11:0: len:32768 buf:0x1ac06aa0
(spicy:22059): GSpice-DEBUG: vmcstream.c:121 spicevmc co_data (nil)
(spicy:22059): GSpice-DEBUG: vmcstream.c:134 spicevmc co_data complete: 32768/65535
(spicy:22059): GSpice-DEBUG: channel-webdav.c:588 webdav-11:0: len:32767 buf:0x1ac06aa0
(spicy:22059): GSpice-DEBUG: vmcstream.c:121 spicevmc co_data 0x13ca170
(spicy:22059): GSpice-DEBUG: vmcstream.c:134 spicevmc co_data complete: 32767/65535
(spicy:22059): GSpice-DEBUG: channel-webdav.c:588 webdav-11:0: len:8 buf:0x1abd52f0
(spicy:22059): GSpice-DEBUG: vmcstream.c:121 spicevmc co_data (nil)
(spicy:22059): GSpice-DEBUG: channel-webdav.c:337 webdav-11:0: pushing 65535 to client 0x5327f70
(spicy:22059): phodav-DEBUG: PUT got chunk | length[8192]
(spicy:22059): phodav-DEBUG: PUT got chunk | length[8192]
(spicy:22059): phodav-DEBUG: PUT got chunk | length[8192]
(spicy:22059): phodav-DEBUG: PUT got chunk | length[8192]
(spicy:22059): phodav-DEBUG: PUT got chunk | length[8192]
(spicy:22059): phodav-DEBUG: PUT got chunk | length[8192]
(spicy:22059): phodav-DEBUG: PUT got chunk | length[8192]
(spicy:22059): phodav-DEBUG: PUT got chunk | length[8191]
Comment 1 Victor Toso 2015-05-18 09:13:02 UTC
Just a quick test lowering the I/O priority to G_PRIORITY_LOW does not help.
Comment 2 Victor Toso 2015-06-02 16:02:56 UTC
I'm not being able to reproduce anymore, I'll try with bigger files soon.
Comment 3 Victor Toso 2015-07-14 16:44:48 UTC
(In reply to Victor Toso from comment #2)
> I'm not being able to reproduce anymore, I'll try with bigger files soon.

Tested again with bigger files (2GB and 4GB)
The session does not freeze anymore but the session is obviously slower. It should be enough to decrease channel-webdav priority while copying to improve the user experience.
Comment 4 GitLab Migration User 2018-06-03 10:19:58 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/spice/spice-gtk/issues/7.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.