For faster navigation, this Iframe is preloading the Wikiwand page for MIT-SHM.

MIT-SHM

MIT-SHM
Original author(s)X.Org Foundation
Stable release
1.0 / 1991; 33 years ago (1991)

The MIT Shared Memory Extension or MIT-SHM or XShm is an X Window System extension for exchange of image data between client and server using shared memory (usually /dev/shm). The mechanism only works when both pieces are on the same computer.

The basic capability provided is that of shared memory XImages. This is essentially a version of the ximage interface where the actual image data is stored in a SysV shared memory segment, and thus need not be transferred across the socket to the X server. For large images, use of this facility can result in some real performance increases.

Additionally, some implementations provide shared memory pixmaps. These are two-dimensional arrays of pixels in a format specified by the X server, where the image data is stored in the shared memory segment. Through use of shared memory pixmaps, it is possible to change the contents of these pixmaps without using any Xlib routines at all. Shared memory pixmaps can only be supported when the X server can use regular virtual memory for pixmap data; if the pixmaps are stored in the on-board memory of graphics hardware, an application will not be able to share them with the server. [1]

In the 1.15 release of the X.org server[2] the MIT-SHM extension gains two additional requests: 'X_ShmAttachFd' and 'X_ShmCreateSegment', to be able to pass shared memory through file descriptors from client to server and from server to client, reducing the number of copy operations further.[3]

References

[edit]
  1. ^ "LCA2013: The real story behind Wayland and X by Daniel Stone". Archived from the original on 2021-12-14.
  2. ^ Keith Packard (1 November 2013). "[ANNOUNCE] xorg-server 1.14.99.901".
  3. ^ Packard, Keith (9 January 2014). Zero-Copy Compositing — Research to Reality (Speech). Linux.conf.au 2014. Perth, Australia. 15:20 minutes in. Archived from the original on 2021-12-14. Retrieved 3 February 2014.
[edit]


{{bottomLinkPreText}} {{bottomLinkText}}
MIT-SHM
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?