이 콘텐츠는 선택한 언어로 제공되지 않습니다.

14.8. Huge Pages and Shared Memory File System in Red Hat Enterprise Linux 3


The following example shows that the Huge Pages pool is not being used by the ramfs shared memory file systems. The ramfs shared memory file systems can be used for Configuring Very Large Memory (VLM).
The ipcs command shows only System V shared memory segments. It does not display shared memory of a shared memory file systems. The following command shows System V shared memory segments on a node running a database with an SGA of 2.6 GB:
# ipcs -m

------ Shared Memory Segments -------- 
key        shmid      owner      perms          bytes      nattch     status 
0x98ab8248 1081344    oracle       600       77594624           0 
0xe2e331e4 1245185    oracle       600     2736783360           0
Copy to Clipboard Toggle word wrap
The first shared memory segment of 74 MB was created by the ASM instance. The second shared memory segment of 2.6 GB was created by the database instance.
On this database system the size of the database buffer cache is 2 GB:
db_block_buffers = 262144 
db_block_size    = 8192
Copy to Clipboard Toggle word wrap
The following command shows that Oracle allocated a shared memory file of 2GB (262144*8192=2147483648) for the buffer cache on the ramfs shared memory file system:
# mount | grep ramfs
ramfs on /dev/shm type ramfs (rw) 
# ls -al /dev/shm
total 204 
drwxr-xr-x    1 oracle   dba               0   Oct 30 16:00 . 
drwxr-xr-x   22 root     root         204800   Oct 30 16:00 .. 
-rw-r-----    1 oracle   dba      2147483648   Nov  1 16:46 ora_orcl1_1277954
Copy to Clipboard Toggle word wrap
The next command shows how many Huge Pages are currently being used on this system:
$ grep Huge /proc/meminfo
HugePages_Total:  1536 
HugePages_Free:    194 
Hugepagesize:     2048 kB 
$
Copy to Clipboard Toggle word wrap
The output shows that 1342 (1536-194) Huge Pages are being used. This translates into 2814377984 (1342*2048*1024) bytes being allocated in the Huge Pages pool. This number matches the size of both shared memory segments (2736783360+77594624=2814377984) displayed by the ipcs command above.
This shows that the Huge Pages pool is not being used for the ramfs shared memory file system. Hence, you do not need to increase the Huge Pages pool if you use the ramfs shared memory file system.
맨 위로 이동
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2026 Red Hat