仮想メモリ - 設定と推奨事項
仮想メモリ(ページファイルとも呼ぶ)は、本質的にはプログラムをアクティブに実行するための物理RAMが不足している場合にOSがハードドライブまたはSSD上に割り当ててRAMとして機能させるブロック領域です。仮想メモリはプログラムが動作を続行できるようにするために追加の「疑似」RAMを提供しますが、HDDおよびSSDのアクセス速度とパフォーマンスは物理RAMよりはるかに低速なため、仮想メモリを多用すると通常は顕著なパフォーマンスの低下が見られます。
Windows®システムの仮想メモリの管理は比較的簡単ですが、たいていの場合は不要です。Windowsはデフォルトで、ユーザーの要件と搭載されているRAMに基づいて応急的に仮想メモリを調整します。搭載されているRAMに基づいてユーザーのニーズを想定し、使用状況が一時的に高負荷になったときは自動調整します。この自動調整により、大量のRAMを実行している状況では占有領域が大きくなります(たとえば、8GBのRAMを搭載したシステムでは、多くの場合、デフォルトで8GBの仮想メモリが設定され、これが16GBにまで増えていく可能性があります)。搭載されているRAM要領で十分足りているのでOSの仮想メモリの機能は不要と思ったユーザーが、ハードドライブやSSD上のOSが使用する容量を減らすために仮想メモリの設定を変更する場合もあります。未使用で「無駄」になっている仮想メモリの容量があれば、特に高コストなSSDストレージの場合には、ユーザーが再利用したいと思うこともあります。ところが、仮想メモリを削減またはゼロにしてドライブの領域を解放すると、仮想メモリを増やす必要が生じた場合にシステムが使用できる容量が制限され、エラーを引き起こしたり、システムが不安定になったりするリスクが生じます。
このメモリの設定は、通常は増やす必要もありません。仮想メモリを増やすことによってプログラムが機能するかどうかが左右されるような場合には、RAMを換装するのが最善の策です。RAMの速度は仮想メモリのパフォーマンスをはるかに上回るからです。専用ハードウェアの向上がもたらすこのメリットに比べれば、仮想メモリではシステムのパフォーマンスは低下します。
この設定を手動で調整する場合はユーザー自身の責任となります。具体的な要件についての確実なガイドラインがある場合に限り行ってください。仮想メモリの割り当て領域が不足していると、プログラムまたはシステム全体に不具合が生じる可能性があります。さらに、古いプログラムはページファイルが存在し、それを使用することを前提に設計されており、構成ミスにより十分な仮想メモリが使用できない場合、個々のプログラムの不具合が生じる可能性があります。
以上の調整の詳細な手順を以下に示します。旧バージョンのWindowsでは多少異なる点がありますが、この機能はWindows XP以降大きく変わっていないので、大部分は適用できます。
- [コントロール パネル]の[システムとセキュリティ]サブメニューの[システム]リンクをクリックするか、スタートメニューで[コンピューター]を右クリックし、[プロパティ]を選択します(Windows 7以前の場合のみ)。下図のようなウィンドウが開きます。
- Select Advanced System Settings (link outlined in red numbered 1 in the above screen). This will open a window titled System Properties.
- Click the "Settings" button in the performance category (outlined button labeled 2 in the screenshot above). This opens the performance options window.
- Navigate to the advanced tab (outlined and labeled 3) then click the change button (outlined and labeled 4). This will open the virtual memory window (outlined and labeled 5), from which any adjustments can be made.
If you disable the 'automatically manage paging file size for all drives', this window will allow you to manually set sizes or size ranges, specify which drive this space is placed on if you have more than one (to free up space on an SSD by moving the page file to a secondary platter hard drive), or disable the feature entirely.
While some users do shut off automatic management, or virtual memory features as a whole, our official recommendation is to leave it in place. If you are comfortable reducing the size based on your usage that can be done safely, but disabling this entirely is not necessarily safe. Even if you feel you have sufficient RAM to go without this, that change does put you at risk of poorly optimized software, particularly something with a memory leak issue ballooning it's RAM footprint, causing malfunctions later.
©2019 Micron Technology, Inc. All rights reserved. Information, products, and/or specifications are subject to change without notice. Neither Crucial nor Micron Technology, Inc. is responsible for omissions or errors in typography or photography. Micron, the Micron logo, Crucial, and the Crucial logo are trademarks or registered trademarks of Micron Technology, Inc. Windows is a trademark of Microsoft Corporation in the U.S. and/or other countries. All other trademarks and service marks are the property of their respective owners.