このコンテンツは選択した言語では利用できません。

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 では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

Theme

© 2025 Red Hat