Shm

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 (/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.
In the 1.15 release of the X.org server 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.

View More On Wikipedia.org
  • 435

    Greg Bernhardt

    A PF Singularity From USA
    • Messages
      19,443
    • Media
      227
    • Reaction score
      10,021
    • Points
      1,237
  • 2

    Vriska

    A PF Electron
    • Messages
      138
    • Reaction score
      2
    • Points
      16
  • 1

    agenttiny200

    A PF Electron
    • Messages
      23
    • Reaction score
      0
    • Points
      11
  • 1

    ngc2024

    A PF Electron
    • Messages
      15
    • Reaction score
      0
    • Points
      11
  • 1

    richardz03

    A PF Electron
    • Messages
      12
    • Reaction score
      0
    • Points
      11
  • 1

    Rya_Sly

    A PF Quark
    • Messages
      3
    • Reaction score
      0
    • Points
      1
  • 1

    PeterRV

    A PF Quark
    • Messages
      4
    • Reaction score
      0
    • Points
      1
  • 1

    Alex Cooper

    A PF Quark
    • Messages
      1
    • Reaction score
      0
    • Points
      1
  • 1

    AdityaDev

    A PF Molecule 26 From Cochin, India
    • Messages
      527
    • Reaction score
      33
    • Points
      76
  • 1

    austrosam

    A PF Quark
    • Messages
      5
    • Reaction score
      0
    • Points
      1
  • 1

    Meamour

    A PF Electron
    • Messages
      7
    • Reaction score
      0
    • Points
      11
  • 1

    squashen

    A PF Quark
    • Messages
      3
    • Reaction score
      0
    • Points
      1
  • 1

    stigg

    A PF Electron
    • Messages
      31
    • Reaction score
      0
    • Points
      14
  • 1

    smokedvanilla

    A PF Quark
    • Messages
      27
    • Reaction score
      0
    • Points
      1
  • 1

    CraigH

    A PF Electron From United Kingdom
    • Messages
      222
    • Reaction score
      1
    • Points
      19
  • 1

    ryanuser

    A PF Atom From London
    • Messages
      74
    • Reaction score
      0
    • Points
      34
  • 1

    GameJammer

    A PF Quark
    • Messages
      3
    • Reaction score
      0
    • Points
      1
  • 1

    kelvin490

    A PF Cell From U.K.
    • Messages
      228
    • Reaction score
      3
    • Points
      111
  • 1

    **Mariam**

    A PF Quark
    • Messages
      46
    • Reaction score
      1
    • Points
      1
  • 1

    SpyIsCake

    A PF Quark
    • Messages
      14
    • Reaction score
      0
    • Points
      1
  • Back
    Top