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

Keith Packard keithp at keithp.com
Mon Mar 31 21:54:06 PDT 2014


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.

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 810 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20140331/82e17a00/attachment.sig>


More information about the xorg-devel mailing list