打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
[Packer01] Intimate Shared Memory

Intimate Shared Memory

Allmajor databases use shared memory for database buffer caches, SQLstatement caching, and other uses. Solaris offers a special form ofshared memory called intimate shared memory (ISM) with features of particular benefit to databases. ISM was introduced in Solaris 2.2.

ISM offers the following major benefits:

  • Processes attaching to the ISM segment share virtual-to-physical address data structures related to the shared memory segment, saving kernel memory and improving performance.

  • Pages are locked, significantly improving performance by reducing the kernel code path as well as preventing pages from being swapped out.

  • As of Solaris 2.6, ISM memory can take advantage of large pages (up to 4 Mbytes) supported in the UltraSPARC Memory Management Unit (MMU), resulting in a performance benefit that increases with the shared memory size. For example, since Solaris pages are typically 8 Kbytes in size, a 3.5-Gbyte database cache would require 458,752 kernel memory pointers. With 4-Mbyte pages, the number of pointers is reduced by a factor of 512, to just 896.

  • Since Solaris 2.6, swap space is not required to back the ISM segment, saving disk space. Swap is unnecessary since the memory is locked.

Figure 3.1 illustrates address translation for a regular shared memory segment.

Figure 3.1. Regular shared memory address translation


As the figure demonstrates, each process maintains its own address translation structures.

Figure 3.2 illustrates address translation for an ISM segment.

Figure 3.2. ISM address translation


Sharingthe same address translation structures among all processes attachingto an ISM segment introduces efficiencies that lead to memory and CPUtime savings.

ISM is invoked programmatically by addition of the parameterSHM_SHARE_MMU to theshmat (2) call.

Allthe major relational databases take advantage of ISM. Note that anattempted ISM attach can fail, though, if insufficient contiguousphysical memory is available. Most of the database products will notesuch a failure in their error log file and quietly attach regularshared memory. The result can be an unexpected drop in performance.


本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
Writing In-Memory Applications
常用英语后缀:
Chinese database to ease Braille translations
Brennan Translation
在Solaris 10上安装Oracle 11g
Main Memory Object-Relational Database Management System
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服