Skip to content
The Chat Archive
Metallama-4-maverick-17b-128e-instruct· Meta LMArena Human Preference 140K

How to change pagefile size in windows console?

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Claudeclaude-3-7-sonnet-20250219’s answer.
  1. User

    How to change pagefile size in windows console?

  2. Assistant

    To change the pagefile size in Windows using the command line, you can use the wmic command or modify the registry directly. However, using wmic is generally safer and more straightforward for this purpose. Here's how you can do it:

    Using WMIC

    1. Open Command Prompt as Administrator: Right-click on the Start button and select "Command Prompt (Admin)" or "Windows PowerShell (Admin)" depending on your Windows version. In newer versions of Windows 10 and later, you might need to click on "Windows PowerShell (Admin)" or simply search for "cmd" in the Start menu, right-click it, and select "Run as administrator".

    2. Set the Initial and Maximum Pagefile Size: Use the following command to set both the initial and maximum size of the pagefile. Replace C: with the drive letter where your pagefile is located, and replace 1024 and 2048 with your desired initial and maximum sizes in MB, respectively.

      wmic pagefileset where name="C:\\pagefile.sys" set InitialSize=1024,MaximumSize=2048
      

      If you want to set the pagefile on a different drive or create a new one on a different drive, ensure the drive letter and path are correct.

    3. To Create a Pagefile on a Specific Drive: If the pagefile doesn't exist on the specified drive, you might need to create it. You can do this by setting the size as shown above. If it still doesn't work, you might need to enable the pagefile on that drive first using the GUI or by directly editing the registry (more on this below).

    4. Reboot Your System: For the changes to take effect, you'll need to restart your computer.

    Using Registry Edit (Regedit)

    Modifying the registry directly is more complex and riskier, as incorrect changes can cause system instability. Here's a basic outline:

    1. Open Registry Editor: Press Win + R, type regedit, and press Enter.

    2. Navigate to the Pagefile Configuration: Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management.

    3. Modify or Create Pagefile Entries: Look for PagingFiles (REG_MULTI_SZ). If it exists, you can modify it. The format is C:\pagefile.sys 1024 2048, where 1024 is the initial size and 2048 is the maximum size. If it doesn't exist, you can create it by right-clicking in the right pane, selecting New > Multi-String Value, naming it PagingFiles, and then modifying its value.

    4. Restart Your System: After making changes, reboot your computer.

    Caution

    • Be cautious when modifying system settings like the pagefile size, as incorrect settings can lead to system instability.
    • Ensure you have backups or a restore point before making significant changes.

    Using wmic is generally the recommended method because it's more straightforward and less prone to causing unintended system changes.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.