Windows Tweaks Logo Microsoft PC-Hilfe - 02 blue red
Windows Tweaks Logo Microsoft PC Help - 09 white 120

Swap file in Windows 10 & Windows 11: How to use it to optimize PC performance (increase, adjust, deactivate swap)?

Updated: April 12, 2025
Published: December 1, 2023
  • Crashes & freezes: The swap file works as virtual RAM in Windows 10 / 11 and can cause problems with your PC performance.
  • Adjust & set size: Get simple instructions on how to increase and set your swap file in the Advanced system settings if the automatic management by Windows 11 or Windows 10 is not sufficient, for example for gaming and video editing.
  • Risky deactivation & downsizing: Prevent a swap file that is too small or deactivated from slowing down or crashing your PC.
  • SSD tips: Benefit from fast SSDs and avoid unnecessary hard disk fragmentation.

Quick overview:

What is the swap file in Windows 10 & Windows 11?

Kein Ruckeln, alles läuft flüssig trotz vieler rechenintensiver Anwendungen: Windows 10 und Windows 11 nutzen die Auslagerungsdatei, um deine PC-Leistung zu verbessern - und Abstürze durch einen überlasteten Arbeitsspeicher zu verhindern.

Set swap file in Windows 10 11 7 8 XP delete resize move disable instructions by Sandro Villinger expert of Windows Tweaks

Diese versteckte Systemdatei ist das "clevere" System des virtuellen Arbeitsspeichers:

Wenn der physische RAM knapp wird oder einfach entlastet werden sollte, entscheidet die Systemverwaltung von Windows 11 und 10 automatisch, welche Dateien und Programme in die Auslagerungsdatei (pagefile.sys) ausgelagert werden.

Dies können zum Beispiel viele gleichzeitig geöffnete komplexe Anwendungen oder Spiele verursachen.

Aber nicht nur wenn dein RAM voll ist und der Systemabsturz droht, jederzeit auch bei nicht ausgelastetem Arbeitsspeicher, springt die Auslagerungsdatei in Windows 11 und 10 zwischendurch ein und speichert überschüssige Daten. Immer auf eine stabile, flüssige Rechenleistung bedacht.

Sie ist die unsichtbare Performance-Heldin von Windows.

Im Hintergrund arbeitet sie, um sicherzustellen, dass alles reibungslos und ohne Verzögerungen läuft.

Wie und wann solltest du die Auslagerungsdatei in Windows 11 und 10 ändern?

Und warum raten wir dir, anders als noch bei früheren Windows-Versionen, unter Win 11 und Win 10 lieber nicht vorschnell eine benutzerdefinierte Größe festzulegen?

Increase and optimize the swap file in Windows 10 / 11

Starten wir gleich mit dem manuellen Einstellen der Auslagerungsdatei:

Das Ändern, Verschieben und Vergrößern der Auslagerungsdatei in Windows 10 und 11 erledigst du einfach und schnell über die erweiterten Systemeinstellungen.

Risky tips in online guides and ChatGPT / AI chatbots

Viele Internet-Ratgeber geben haarsträubende Empfehlungen zur Auslagerungsdatei. Auch ChatGPT 4 riet mir in Tests zu riskanten Änderungen, die vor allem bei Power-Nutzern im Bereichen wie Gaming und Videobearbeitung zu Abstürzen in Windows 11 / 10 führen würden. Siehe Beispiel eines Adobe Premiere-Nutzers unten.

Bitte lies vorab unsere Empfehlungen und die Auswirkungen einer manuellen Konfiguration und Größe.

4-step guide to changing the swap file (size and drive)

Hier ist eine schnelle Anleitung:

  1. Open the Advanced system settings in Windows 11 or 10.
  2. Click on the Advanced tab and then under Performance on Settings.
  3. Go to Advanced again and click Change under Virtual memory.
  4. In the next window, uncheck Manage file size for all drives automatically.

Jetzt kannst du eine benutzerdefinierte Größe der Auslagerungsdatei einstellen und ihren Speicherort bzw. das Laufwerk nach deinen Bedürfnissen anpassen.

Hier alle Schritte zu den Einstellungen als Bildstrecke:

When should I increase the size and manually change the swap file in Windows 11 / 10?

Du denkst darüber nach, die Auslagerungsdatei von Windows 11 / 10 zu vergrößern oder manuell einzustellen?

Das ist möglich, du solltest aber wissen:

Mittlerweile verwaltet Microsofts Betriebssystem den virtuellen Arbeitsspeicher zuverlässig automatisch.

Seit früheren Versionen hat sich da einiges getan: Die Virtual-Ram-Berechnung läuft unter Win 10 erheblich intelligenter als noch unter XP. Mit Windows 11 gab es einen weiteren Sprung nach vorn.

As a Windows expert, I recommend today (as do other specialists and MVPs) that most users use the automatic handling by the system and not “play around” with it.

Jetzt kommt das große "Aber"...

Sometimes a manual adjustment of the size and moving nevertheless be necessary:

  • Optimize storage space: If the Windows installation drive (C:) is too small, move the swap file to a drive with more storage space (select the storage location in the above settings, see images). Otherwise, the file size could cause the system partition or hard disk to "fill up" and lead to system crashes.
  • Increased memory requirements: With high memory usage (such as 4K video editing and 3D games), it may make sense to increase the file size to >100GB or set up an additional swap file on another drive.
  • Acute lack of disk space: If the swap file is too large and the disk space on your system partition is low, you could theoretically set a smaller, user-defined size (Caution: In practice, this can lead to sudden crashes later with memory-intensive applications! Our recommendation: If possible, move them to a larger drive as mentioned above or let Windows 11 / 10 continue to manage them).
  • Error correction: If the error "BSOD PAGE_FAULT_IN_NONPAGED_AREA", "KERNEL_DATA_INPAGE_ERROR" or a memory shortage occurs, it may be necessary to enlarge the swap file. Or a user-defined size is set that is too small - and switching to automatic file size provides a remedy.

Aber welche Auslagerungsdateigröße ist ausreichend und empfehlenswert?

Recommended size of the swap file for 8GB, 16GB, 32GB and 64GB RAM

Du möchtest die Auslagerungsdateigröße nicht von Windows 11 oder Windows 10 verwalten lassen, sondern eine benutzerdefinierte Größe festlegen?

Swap file in Windows 10 and Windows 11 initial size and maximum size Sandro Villinger Windows Tweaks Expert 01

Hier sind ein paar Faustregeln:

  1. Initial size and maximum size: Always set identical values, see image above. Different sizes are not good, as the dynamic enlargement or reduction of the swap file requires more computing time and places an unnecessary load on the hard disk. That is why I have always recommended entering the same values in megabytes in both fields (nothing has changed since Win XP ;).
  2. For less than 8 GB RAM memory: Set the swap file to at least 1.5 - 3 times your RAM. With 6GB RAM, this means 9,000 megabytes or more (the more performance-hungry your processes, the more MB are required). As mentioned, the initial size and the maximum size should be identical to protect the hard disks (especially important for SSDs, see also section below).
  3. With 8 GB RAM, 16 GB RAM, 32GB or more: The virtual RAM should be about the same size as your physical RAM. EXCEPTIONS: For high resource consumption such as video editing, even with 64 GB of RAM it may be useful to increase the size of the swap file in Windows 11 and 10 to 100 GB or more in order to work smoothly.
  4. If you store large amounts of data on your hard disk: Always give it enough space to "breathe". Because once the swap file is fully occupied by the system, there should still be enough free space on the hard disk.
  5. To select the drive on which the swap file should be located: If you have multiple disks in your computer, take the faster and larger one to ensure quick access to the file in case of storage bottlenecks and to avoid problems with file growth.
This video gives a good overview of the configuration of the swap file in Windows 11

Reducing the size of the swap file - at what risk?

Wondering whether you should shrink a large swap file?

Zum Beispiel, weil die pagefile.sys auf gigantische 90 Gigabyte angeschwollen ist? Und sie deine Festplatte oder Windows-Systempartition nahezu zum Platzen bringt?

Dabei hast du satte 32 GB RAM im Rechner?

Mit der obigen Anleitung könntest du nun eine ausreichende benutzerdefinierte Größe festlegen, sagen wir 32 GB (also 32.000 MB), und das Problem in wenigen Sekunden beheben.

Zur Sicherheit könntest du noch ChatGPT um Ratschlag bitten...

I was given the following advice by AI chatbot ChatGPT 4 to downsize:

"Empfehlung: Als Ausgangspunkt wäre eine Auslagerungsdatei von 32 GB eine vernünftige Wahl für Ihr System. Dies stellt sicher, dass Sie genug Speicher für die meisten Anwendungen und für Systemstabilität haben. (...) Für die meisten modernen Systeme mit reichlich RAM (wie in Ihrem Fall) ist es oft ausreichend, die Auslagerungsdatei auf die gleiche Größe wie den physischen Speicher einzustellen. In Ihrem Fall wären das 32 GB." (Dezember 2023)

Aber wäre diese Größe für dich und dein System wirklich ausreichend? Dauerhaft?

Nun, im Fall dieses Adobe Premiere-Nutzers war sie mit 32GB noch zu klein: Er hatte aufgrund von Speicherplatzmangel auf der Systempartition die Auslagerungsdatei von 90 GB auf 16 GB verkleinert.

Nach einiger Zeit traten mysteriöse Windows-Abstürze bei der Videobearbeitung und beim Export eines 4k-Videos auf.

In seinem Anwendungsfall war eine Größe von 90 GB durchaus angemessen: Wie der Nutzer später nachgemessen hat und in seinem lesenswerten Erfahrungsbericht beschreibt, waren sogar 109 GB notwendig.

Microsoft selbst schreibt hier zum Risiko einer zu klein dimensionierten Auslagerungsdateigröße unter Win 10:

"Dieser Zustand kann zu Einfrieren, Absturz und anderen Fehlfunktionen führen."

Dieser offiziellen Dokumentation zufolge werden vom Betriebssystem verwaltete Auslagerungsdateien in Win 10 automatisch bis zu dreimal so groß wie der physische Arbeitsspeicher (verbauter RAM) oder 4 GB (immer der jeweils höhere Wert, aber maximal 12,5 Prozent der Festplattengröße), wenn der reservierte Speicher 90 Prozent des reservierten Speicherlimits erreicht.

Eine Verkleinerung der Auslagerungsdatei durch eine benutzerdefinierte Größe sollte deshalb wohlüberlegt sein.

Deactivate: Should I delete the swap file in Windows 10 / 11?

Das Deaktivieren der Auslagerungsdatei von Windows 10 kann verlockend klingen, besonders wenn du denkst, dass dein PC genug RAM hat.

Aber halt!

Was könnten die Konsequenzen sein?

Disadvantages and advantages of deactivation

Bevor du diesen Schritt machst, lass uns kurz die Nachteile und Vorteile abwägen:

  • Disadvantages: Deactivating the swap file will almost certainly lead to instability: Crashes, freezes of apps or the entire operating system (see example above). Even if it continues to run at first, everything could quickly slow down, as Windows and individual apps rely on the virtual memory, not just when the RAM is full.
  • Advantages: In theory, you could save memory by deactivating it. If you have a large amount of RAM and do not use memory-intensive applications. But the risk of system or app crashes is high - and this benefit is negligible.

Instructions for deactivating the swap file (NOT recommended)

Wir empfehlen strikt, auf das Deaktivieren der Auslagerungsdatei zu verzichten - einige Anwendungen funktionieren nach dem Löschen nicht mehr. Es kann zu Abstürzen kommen.

Falls du dich aus irgendeinem Grund entscheidest, es trotzdem zu versuchen, hier eine Anleitung zum Deaktivieren:

  1. Go to the System settings and select Advanced system settings.
  2. Click on the Advanced tab and then under Performance on Settings.
  3. In the next window, select Advanced and then under Virtual memory > Change.
  4. Uncheck Manage drives automatically, select your drive and set the option to No swap file.
  5. Confirm with OK and restart your PC.

Aber denk daran: Jetzt wurde die Datei gelöscht. Beobachte nach dem Deaktivieren die Leistung deines PCs. Wenn du Probleme bemerkst, ist es besser, die Auslagerungsdatei wieder zu aktivieren.

In den meisten Fällen ist sie ein wichtiger Teil deines Windows 10/11-Systems, der hilft, eine stabile Performance sicherzustellen.

Swap file on SSDs (with less fragmentation and write operations)

Wenn du eine SSD in deinem Windows 10 oder Windows 11-Computer hast, gibt es ein paar Dinge, die du wissen solltest.

Denn die Auslagerungsdatei-Konfiguration kann sich auf die SSD- und Festplatten-Fragmentierung, -Geschwindigkeit und -Haltbarkeit auswirken.

Consider the service life of your SSD

SSDs sind schneller als traditionelle Festplatten, aber sie haben auch ihre Eigenheiten: Bei der Auslagerungsdatei auf einer SSD ist es wichtig, ein Gleichgewicht zwischen Leistung und Langlebigkeit zu finden.

Zu viel Schreib- und Leseaktivität kann die Lebensdauer deiner SSD verkürzen.

Zwar sind SSDs heute sehr viel robuster als noch vor einigen Jahren.

Aber dennoch kannst du mit ein paar Tipps deinen virtuellen Arbeitsspeicher für weniger Fragmentierung und Schreibvorgängen auf deinen SSDs und Festplatten konfigurieren.

Optimization of the swap file for SSD & HDD

Hier sind einige schnelle Tipps, wie du die Auslagerungsdatei auf einer SSD für maximale Performance und Haltbarkeit optimieren kannst:

  1. Set the minimum initial size and maximum size the same: This prevents the swap file from constantly changing its size, which increases fragmentation and can put a strain on the SSD and slow down normal HDD hard disks.
  2. Move swap file to a larger HDD: Is the swap file on your SSD too large and there is a lack of storage space? Then move it to a larger drive (to which Windows 11 / 10 should have continuous access).
  3. Not too big, not too small: A swap file that is too large wastes valuable SSD storage space, one that is too small could affect performance. A good starting point is 1.5 to 3 times your RAM.
  4. Monitoring performance: Observe how your system behaves. If you notice that it is slowing down, it might be time to adjust the swap file size.

Mit diesen einfachen Schritten kannst du sicherstellen, dass deine SSD oder HDD und die Auslagerungsdatei in perfektem Einklang arbeiten.

So holst du das Beste aus deinem Windows 10-Betriebssystem mit schnellen Solid State Drives raus.

Storage location: Here you can find the swap file in Windows 10 and Windows 11

Der Dateiname der Auslagerungsdatei lautet Windows 10 und Windows 11 "pagefile.sys" und ihr Speicherort befindet sich standardmäßig auf dem Laufwerk, auf dem das Betriebssystem installiert ist.

In den meisten Fällen ist dies das Laufwerk "C".

Der vollständige Dateipfad deiner Auslagerungsdatei lautet deshalb wahrscheinlich:

C:\pagefile.sys

Beachte, dass sie eine versteckte Systemdatei ist.

Um sie im Windows-Explorer zu sehen, musst du die Explorer-Anzeigeoptionen so ändern, dass versteckte Dateien und geschützte Systemdateien angezeigt werden.

Dies kann in den Explorer-Optionen unter "Ansicht" oder "Ordneroptionen" eingestellt werden. Sobald diese Optionen aktiviert sind, solltest du die pagefile.sys im Quellverzeichnis des C:-Laufwerks sehen können.

PS: The hiberfil.sys (saves the entire RAM memory during hibernation) and swapfile.sys (for Microsoft apps since Win 8) are also located there, but with different functions.

Differences in swap file management in Windows 11 and Windows 10

Wie unterscheidet sich die Handhabung der Auslagerungsdatei zwischen Windows 11 und Windows 10?

Tatsächlich sind die Grundprinzipien ziemlich ähnlich. Jedoch bringt Windows 11 einige Verbesserungen und intelligentere Verwaltungsstrategien für die Auslagerungsdatei im Vergleich zu früheren Versionen von Windows, einschließlich Windows 10. Für Nutzer mit leistungsstarken Systemen und SSDs kann dies von Vorteil sein.

Hier sind ein paar technische Details und Neuerungen, die in Windows 11 implementiert wurden:

  • Adaptive swap file size: Windows 11 uses a more dynamic system to adjust the size of the swap file. It actively assesses memory requirements and adjusts the size of the swap file to find the best compromise between system performance and available disk space.
  • Improved memory management: The Windows 10 successor has more efficient memory management that interacts better with physical RAM and the swap file. This includes improved memory usage algorithms that help to make the swapping of data between RAM and hard disk more efficient.
  • Optimization for SSDs: Win 11 is optimized to work more efficiently with solid-state drives (SSDs). The swap file management takes into account the faster read and write speeds of SSDs to speed up the swapping of data and at the same time reduce wear and tear on the SSD.
  • Improved memory pressure algorithm: Compared to previous versions, Win 11 uses an improved algorithm to monitor memory pressure. If the system detects that physical RAM is running low, it uses the swap file more efficiently to prevent a drop in performance.
  • Integration with new technologies: Microsoft has geared Win 11 towards integration with newer technologies such as DirectStorage for games and other memory-intensive applications. This integration ensures better utilization of virtual memory in conjunction with physical hardware.

Summary

Wir haben eine Menge besprochen, aber hier sind die wichtigsten Punkte, die du mitnehmen solltest, um deine PC-Performance in Windows 10 zu verbessern:

  • The swap file is your friend: It helps your PC to run smoothly even under heavy load by relieving the RAM.
  • Size is important: The optimal size of the swap file depends on your RAM and your system usage. As a rule of thumb: only change the size if there are problems. It should be at least 1.5 times the size of your RAM, although for compute-intensive processes such as video editing, sizes in excess of 100 GB can also be useful. And: The initial size and maximum size should always have identical values.
  • SSD users beware: With SSDs, you should make sure that the swap file is not too large so as not to shorten the service life of your SSD.
  • Caution when deactivating: Deactivating the swap file involves risks. Check carefully whether deleting it makes sense for your system.

FAQ

Hier beantworten wir einige der häufigsten Fragen zur Auslagerungsdatei in Windows 10, damit du schnell und effektiv deine PC-Performance verbessern kannst.

Bilder oben: Screenshots

Founded Windows Tweaks as a teenager in 2001, his helpful PC tricks made it Germany's most visited Windows site (at the time Sandro looked like this). He then went on to write for international publications such as PC-Praxis, Computerbild, PCWorld in the USA, IMTEST.de and Hifi.de. Sandro's main job is as Global Product Marketing Lead and Consultant for various global tech companies, including Microsoft, AVG, Avast, Nero, TeamViewer, Swiss IT Security Group and now currently in the fintech sector for Gendigital. But he can't get rid of his passion and shares his tweaks here again. Privately, he enjoys traveling the world and loves Asia, especially Japan, Singapore and Korea, but also natural places like Iceland and the Nordics. You can reach Sandro via e-mail.

Leave a Reply

Your email address will not be published. Required fields are marked *

Windows Tweaks Logo Microsoft PC Help - 09 white 120
by Real Tech Experts
Save time and stress with expert knowledge about software, hardware, AI & Microsoft. 
Windows Tweaks Microsoft PC Help - SINCE 1998 - retina 2

Time-saving tips for PCs, laptops, Windows & software?

Subscribe to our newsletter and receive only our best guides & tweaks as well as exclusive tips for our subscribers. 
Newsletter-Form
Unsubscribe at any time. Approximately 1 - 2 emails per month. This consent includes information on revocation, shipping service provider, and statistics according to our Privacy Policy.
© 1998 - 2026 Windows-Tweaks.info
Made in Germany with ❤️ 
For all technology users around the globe.
This website runs on 🌳 GREEN energy
crossmenu