[PATCH] dix/dispatch: DoGetImage: Use a single buffer

Daniel Stone daniel at fooishbar.org
Tue Apr 1 03:17:41 PDT 2014


Hi,


On 1 April 2014 05:54, Keith Packard <keithp at keithp.com> wrote:

> Aaron Plattner <aplattner at nvidia.com> writes:
> > Can't the max image size be multiple gigabytes?  That seems a little
> > large to describe as "close" to running out of heap space.
>
> The problem is that we're going to buffer that in memory anyway, down in
> the OS layer. The only alternative is to block down there waiting for
> the client to drain the image data.
>
> So, the chunking in DIX is not helping reduce memory usage, it's just
> making the OS layer shuffle data around a lot.
>

You're correct in bandwidth/transfer terms, but not in terms of peak
simultaneous usage.

OTOH, I don't think it's really worth worrying about too much.  People do
rather adventurous things like 4K on ARM32, which is fine, but anyone who
then does a core GetImage on the whole thing really deserves whatever they
get.

Cheers,
Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg-devel/attachments/20140401/b6fc488c/attachment-0001.html>


More information about the xorg-devel mailing list