Page file

In storage, a page file is a reserved portion of a hard disk that is used as an extension of random access memory (RAM) for data in RAM that hasn't been used recently. A page file can be read from the hard disk as one contiguous chunk of data and thus faster than re-reading data from many different original locations. Windows NT administrators or users can reset the system-provided default size value of the page file to meet their particular needs.

In other operating systems, the page file is called a swap file or a swap partition


RAM is a limited resource, whereas virtual memory is, for most practical purposes, unlimited. There can be a large number of processes each with its own 2 GB of private virtual address space. When the memory in use by all the existing processes exceeds the amount of RAM available, the operating system will move pages (4 KB pieces) of one or more virtual address spaces to the computer’s hard disk, thus freeing that RAM frame for other uses. In Windows systems, these “paged out” pages are stored in one or more files called pagefile.sys in the root of a partition. There can be one such file in each disk partition. The location and size of the page file is configured in System Properties, Advanced, Performance (click the Settings button).

A frequently asked question is how big should I make the page file? There is no single answer to this question, because it depends on the amount of installed RAM and how much virtual memory that workload requires. If there is no other information available, the normal recommendation of 1.5 times the amount of RAM in the computer is a good place to start. On server systems, a common objective is to have enough RAM so that there is never a shortage and the page file is essentially, not used. On these systems, having a really large page file may serve no useful purpose. On the other hand, disk space is usually plentiful, so having a large page file (e.g. 1.5 times the installed RAM) does not cause a problem and eliminates the need to fuss over how large to make it.


0 Responses