How can I improve I/O performance?

John Savill

June 28, 1999

2 Min Read
ITPro Today logo in a gray background | ITPro Today

A. If your system is fairly I/O intensive, you may benefit from raising the I/O Page Lock Limit, which can increase the effective rate the OS reads or writes data to the hard disks.

First, benchmark your common tasks. See how long it takes to load and save large files, how long it takes to search a database or run a common program; just do your normal tasks, timing them to record how fast they are. Then follow these steps:

  1. Start the registry editor (regedit.exe)

  2. Move to HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSession ManagerMemory Management

  3. Double click IoPageLockLimit

  4. Enter a new value.
    This value is the maximum bytes you can lock for I/O operations. A value of 0 defaults to 512KB. Raise this value by 512KB increments (enter "512", "1024", etc.), then exit regedit.exe and benchmark your system after each adjustment. When an increase does not give you a significant performance boost, go back and undo the last increment.
    Caution: There is a limit to this. Do not set this value (in bytes) beyond the number of megabytes of RAM times 128. That is, if you have 16 MB RAM, do not set IoPageLockLimit over 2048 bytes; for 32MB RAM, do not exceed 4096 bytes, and so on.
    Click OK.

  5. Close the registry editor

Unless you do little I/O, this should give you a significant boost inperformance.

I have recently learned that this value specifies the maximum amount ofapplication memory that can be locked into physical memory at any given point intime. Device drivers typically lock user buffers in order to transmit them to ahardware device. If the limit is exceeded an I/O operation will simply return aSTATUS_QUOTA_EXCEEDED error to the application. Thus, the value should only beraised if I/O operations begin returning this error, and it has absolutely noeffect on performance.

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like