<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - do zero-copy in gstreamer for decoding"
href="https://bugs.freedesktop.org/show_bug.cgi?id=100097">100097</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>do zero-copy in gstreamer for decoding
</td>
</tr>
<tr>
<th>Product</th>
<td>Spice
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>RFE (general)
</td>
</tr>
<tr>
<th>Assignee</th>
<td>spice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>bugzilla@victortoso.com
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=130109" name="attach_130109" title="massif on mjpeg stream">attachment 130109</a> <a href="attachment.cgi?id=130109&action=edit" title="massif on mjpeg stream">[details]</a></span>
massif on mjpeg stream
I did a quick test doing streaming with mjpeg and vp8 to compare the memory
usage in the client. In this test I played a ~2 min video in the guest in
maximized window.
With mjpeg we have a peak of 34.13 MB which is somewhat fine.
With vp8 we got a peak of 205.6 MB, mostly around gstreamer code.
For now, I can see two ways to improve the code:
1-) Having some memory pool in spice-channel to avoid malloc for each new
message. In the code itself we already have a FIXME for that, saying:
<span class="quote">> /* FIXME: do not allow others to take ref on in, and use realloc here?
> * this would avoid malloc/free on each message?</span >
2-) Doing zero-copy with gstreamer, like we do in server for encoding.
Attaching massif data for future reference</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>