Файл подкачки в windows 10
Содержание:
Swapfile.sys Hatalarının Nedenleri
Swapfile.sys mavi ekran hataları, çeşitli donanım, üretici yazılımı, sürücü ya da donanım sorunlarından kaynaklanabilir. Bunlar, Windows yazılımı ya da Microsoft donanımıyla ilişkilendirilebilir; ancak sorunun kaynağı başka bir şey de olabilir.
Daha spesifik olarak, bu swapfile.sys hatalarına şunlar neden olabilir:
- Yanlış yapılandırılmış, eski veya bozulmuş Windows aygıt sürücüleri. (son derece yaygın)
- Son swapfile.sys ile ilişkili yazılım değişikliğinden (yükleme ya da kaldırma) kaynaklanan, Windows kayıt defterinde bozulma.
- Virüs ya da kötü amaçlı yazılım swapfile.sys dosyasını ya da ilişkili Windows program dosyalarını bozmuş.
- Yeni Microsoft donanımının ya da swapfile.sys ile ilişkili donanımın takılmasından sonra donanım çakışması.
- Windows ile ilişkili yazılım ya da sürücü yükledikten sonra hasar görmüş veya kaldırılmış sistem dosyaları.
- swapfile.sys mavi ekranı zarar görmüş bir sabit diskten kaynaklandı.
- Bellek (RAM) bozulması nedeniyle swapfile.sys Durdurma Hatası.
4.1. Copyright
Unless otherwise stated, Linux HOWTO documents are copyrighted by
their respective authors. Linux HOWTO documents may be reproduced and
distributed in whole or in part, in any medium physical or electronic,
as long as this copyright notice is retained on all copies. Commercial
redistribution is allowed and encouraged; however, the author would
like to be notified of any such distributions.
All translations, derivative works, or aggregate works incorporating
any Linux HOWTO documents must be covered under this copyright notice.
That is, you may not produce a derivative work from a HOWTO and impose
additional restrictions on its distribution. Exceptions to these rules
may be granted under certain conditions; please contact the Linux
HOWTO coordinator at the address given below.
In short, we wish to promote dissemination of this information through
as many channels as possible. However, we do wish to retain copyright
on the HOWTO documents, and would like to be notified of any plans to
redistribute the HOWTOs.
Enabling the Swap File
Now that we have a file of the correct size available, we need to actually turn this into swap space.
First, we need to lock down the permissions of the file so that only the users with privileges can read the contents. This prevents normal users from being able to access the file, which would have significant security implications.
Make the file only accessible to by typing:
Verify the permissions change by typing:
As you can see, only the root user has the read and write flags enabled.
We can now mark the file as swap space by typing:
After marking the file, we can enable the swap file, allowing our system to start utilizing it:
We can verify that the swap is available by typing:
We can check the output of the utility again to corroborate our findings:
Our swap has been set up successfully and our operating system will begin to use it as necessary.
Как удалить hiberfil.sys в Windows 10, 8 и Windows 7, отключив гибернацию
Самый быстрый способ отключить гибернацию в Windows состоит из простых шагов:
- Запустите командную строку от имени администратора (как запустить командную строку от имени администратора).
- Введите команду
powercfg -h off
и нажмите Enter
- Каких-то сообщений об успешном выполнении операции вы не увидите, но гибернация будет отключена.
После выполнения команды файл hiberfil.sys будет удален с диска C (перезагрузка обычно не требуется), а пункт «Гибернация» пропадет в меню «Пуск» (Windows 7) или «Выключение» (Windows 8 и Windows 10).
Дополнительный нюанс, который следует учесть пользователям Windows 10 и 8.1: даже если вы не пользуетесь гибернацией, файл hiberfil.sys задействован в системной функции «быстрый запуск», о которой можно подробно прочитать в статье Быстрый запуск Windows 10. Обычно существенной разницы в скорости загрузки не будет, но если вы решите повторно включить гибернацию, используйте описанный выше метод и команду powercfg -h on.
Как отключить гибернацию через панель управления и реестр
Вышеописанный способ хоть и является, на мой взгляд, самым быстрым и удобным, не единственный. Еще один вариант, как отключить гибернацию и удалить тем самым файл hiberfil.sys — через панель управления.
Зайдите в Панель управления Windows 10, 8 или Windows 7 и выберите пункт «Электропитание». В появившемся окошке слева выберите «Настройка перехода в спящий режим», затем — «Изменить дополнительные параметры питания». Откройте «Сон», а потом — «Гибернация после». И установите «Никогда» или 0 (ноль) минут. Примените сделанные изменения.
И последний способ удалить hiberfil.sys. Сделать это можно через редактор реестра Windows. Не знаю, зачем это может понадобиться, но такой способ есть.
- Зайдите в ветку реестра HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power
- Значения параметров HiberFileSizePercent и HibernateEnabled установите равным нулю, после чего закройте редактор реестра и перезагрузите компьютер.
Таким образом, если вы никогда не пользуетесь гибернацией в Windows, вы можете отключить ее и освободить некоторое количество места на жестком диске. Возможно, учитывая сегодняшние объемы жестких дисков, это и не очень актуально, но вполне может пригодиться.
Swapfile.sys file
In earlier versions of Windows, you had Swapfile.sys or the Swap file. The Swap file holds objects which have been ejected from memory and are not expected to be accessed for some time and allow an operating system to use hard disk space to simulate extra memory whenever the system runs low on memory, by swapping section of RAM that an idle program is using onto the hard disk to free up memory for other programs. This combination of RAM and Swap files is known as Virtual Memory. Having a swap file makes your computer’s operating system “have” more RAM than it actually has.
The Swapfile is not used in the fast startup process of Windows 10. It is the Hiberfil.sys file which stores the kernel session and comes into play here.
In Windows 10, you again get to see Swapfile.sys! This latest version of Windows has both – the swapping as well as the paging file at the same time. It is around 256 MB in size – in my case, it is 262 MB.
Why do we need another virtual page file in Windows 10?
The Swapfile.sys in Windows 10/8 is a special type of pagefile used internally by the system to make certain types of paging operations more efficient. It is used to Suspend or Resume UWP Windows apps.
TechNet explains the ‘new’ Swapfile.sys in Windows as follows:
I hope this explains the reason why we see all the three files viz. Hiberfil.sys, Pagefile.sys & Swapfile.sys files in Windows 10/8.
Looking to learn more about other files or file types or file formats in Windows? Check these links:
Windows.edb files | Thumbs.db files | DLL and OCX files | Desktop.ini file | Nvxdsync.exe.
Tags: Files, Tutorials
? Расширение файла .swap часто дается неправильно!
По данным Поиск на нашем сайте эти опечатки были наиболее распространенными в прошлом году:
sap, swa, swp, wap
Это возможно, что расширение имени файла указано неправильно?
Мы нашли следующие аналогичные расширений файлов в нашей базе данных:
.sap
Atari SAP Music
.wap
Wireless Bitmap Image
.sap
Stadium Application
.swa
Shockwave Audio
.swp
General Swap File
.swp
SolidWorks Macro
.swp
Vim Swap Data
Не удается открыть файл .swap?
Если дважды щелкнуть файл, чтобы открыть его, Windows проверяет расширение имени файла. Если Windows распознает расширение имени файла, файл открывается в программе, которая связана с этим расширением имени файла. Когда Windows не распознает расширение имени файла, появляется следующее сообщение:
Windows не удается открыть этот файл: пример.swap Чтобы открыть этот файл, Windows необходимо знать, какую программу вы хотите использовать для его открытия…
Если вы не знаете как настроить сопоставления файлов .swap, проверьте FAQ.
Можно ли изменить расширение файлов?
Изменение имени файла расширение файла не является хорошей идеей. Когда вы меняете расширение файла, вы изменить способ программы на вашем компьютере чтения файла. Проблема заключается в том, что изменение расширения файла не изменяет формат файла.
Если у вас есть полезная информация о расширение файла .swap, напишите нам!
Оцените нашу страницу SWAP
Пожалуйста, помогите нам, оценив нашу страницу SWAP в 5-звездочной рейтинговой системе ниже. (1 звезда плохая, 5 звезд отличная)
<< Расширение файла .swa
Расширение файла .swar >>
Does Your PC Feel Faster?
Swap partitions can make a major difference in your system’s performance—sometimes for better and sometimes for worse. Now that you know what the swap partition is for, hopefully you’re better equipped to make the decision appropriate for your situation.
But before you re-partition your drive, know that there’s more to memory management than the amount of RAM you have and the size of your Linux swap partition. Take a moment to learn how Linux manages RAM.
Got a Smart Bulb? Here’s How to Set It Up
Don’t get stuck setting up a smart bulb. Follow these tips and tricks for pairing your smart bulb and programming it using an app.
About The Author
Bertel is a digital minimalist who writes from a laptop with physical privacy switches and an OS endorsed by the Free Software Foundation. He values ethics over features and helps others take control over their digital lives.
More About Bertel King
Create and Enable the Swap File
Now it’s time to create the swap file itself using the dd command :
sudo dd if=/dev/zero of=/swapfile bs=1024 count=256k
“of=/swapfile” designates the file’s name. In this case the name is swapfile.
Subsequently we are going to prepare the swap file by creating a linux swap area:
sudo mkswap /swapfile
The results display:
Setting up swapspace version 1, size = 262140 KiB no label, UUID=103c4545-5fc5-47f3-a8b3-dfbdb64fd7eb
Finish up by activating the swap file:
sudo swapon /swapfile
You will then be able to see the new swap file when you view the swap summary.
swapon -s Filename Type Size Used Priority /swapfile file 262140 0 -1
This file will last on the virtual private server until the machine reboots. You can ensure that the swap is permanent by adding it to the fstab file.
Open up the file:
sudo nano /etc/fstab
Paste in the following line:
/swapfile none swap sw 0 0
Swappiness in the file should be set to 10. Skipping this step may cause both poor performance, whereas setting it to 10 will cause swap to act as an emergency buffer, preventing out-of-memory crashes.
You can do this with the following commands:
echo 10 | sudo tee /proc/sys/vm/swappiness echo vm.swappiness = 10 | sudo tee -a /etc/sysctl.conf
To prevent the file from being world-readable, you should set up the correct permissions on the swap file:
sudo chown root:root /swapfile sudo chmod 0600 /swapfile
By Etel Sverdlov
Tweaking Swap Settings
There are a number of things to keep in mind when using swap. Because swap space is on a hard drive, it is much slower than RAM. That means that you only want the operating system to use it when it needs to. If pages are being moved to your swap space well before you are out of RAM, you will experience a substantial slowdown in your operations.
The parameter that controls how often a system moves items out of RAM and into a swap space is known as “swappiness”. Its value can be anything between 0 and 100. With values close to zero, the kernel will choose not to swap unless absolutely necessary. With values approaching 100, the system will swap out files much earlier. This can lead to speed issues because the information must be fetched from a hard drive instead of RAM.
We can find out what our current swappiness setting by entering the following command:
cat /proc/sys/vm/swappiness
60
Our system defaults to a swappiness value of 60. This is a good default for a VPS. If we were adjusting the swappiness of a desktop, we would probably want to move it closer to 0. We can try different swappiness values using the “sysctl” command.
sysctl vm.swappiness=10
vm.swappiness = 10
We can see that the system has accepted our new value for the swappiness parameter.
cat /proc/sys/vm/swappiness
10
If we want to default this setting, we can edit the “/etc/sysctl.conf” file.
nano /etc/sysctl.conf
# Search for the vm.swappiness setting. Uncomment and change it as necessary. vm.swappiness=10
This will allow our settings to persist through reboots. Feel free to play with this parameter to achieve optimal swapping for your situation.
Another related parameter that we might want to adjust is the “vm.vfs_cache_pressure” setting. Altering the cache pressure value will change the system’s preference for keeping inode and dentry cached information over other kinds of information. This means that the operating system will retain information about the file system longer, which happens to be very costly to look up and very frequently requested. This will usually lead to a performance gain.
Again, we can check the current value by looking into the /proc directory.
cat /proc/sys/vm/vfs_cache_pressure
100
The current settings move inode information out of cache more quickly than we want it to. A cache pressure of 50 would be much better for our purposes. We can change these settings the same way as we did with swampiness.
sysctl vm.vfs_cache_pressure=50
vm.vfs_cache_pressure = 50
Again, we can make this persist through reboots by adding it to the “/etc/sysctl.conf” file.
nano /etc/sysctl.conf
# Search for the vm.vfs_cache_pressure setting. Uncomment and change it as necessary. vm.vfs_cache_pressure = 50
This makes our cache pressure configuration permanent.
By Justin Ellingwood
Оптимизация файла подкачки
- Если в компьютере используется только один жёсткий диск, то файл подкачки лучше расположить на первом разделе;
- Если используется два или более накопителя, лучше перенести файл на самый скоростной диск;
- Не рекомендуется создавать файл на нескольких логических разделах одного накопителя. Это заметно снизит производительность системы;
- При наличии нескольких накопителей не рекомендуется задействовать для файла подкачки старые модели жестких дисков – это также снизит скорость работы компьютера.
Начиная с Windows 95, операционные системы Windows, основанных на использовании специального файла подкачки, который действует, как своего рода «блокнот» для хранения модифицированных страниц, все еще используют какой-то процесс. В общих чертах, файл подкачки в windows 10, 8, 7 и XP, используется операционной системой для временных данных, которые поменялись в физической памяти для обеспечения большего объема виртуальной памяти. Обычным словом, разгружает отдельные фрагменты памяти с оперативной памяти «ОЗУ» в отдельное место на жестком диске.
Moving Pagefile.sys to another location/drive
Step 1. Open Performance Options by opening the search Ctrl+S and typing adjust the appearance and performance of Windows.

or Step 1.1. Press Ctrl+X, choose System, click Advanced System Settings on the left, click Settings under Performance.
or Step 1.2. Press Win+R (or Win+S), enter SystemPropertiesPerformance.exe, press Enter.
or Step 1.3. Press Win+E (opens Explorer), with the Ribbon active (Ctrl+F1 to toggle the ribbon) click System properties in the Computer tab, click Advanced System Settings on the left, click Settings under Performance.
or Step 1.4. Press Win+R, enter control sysdm.cpl,,3, press Enter, click Settings under Performance.
Step 2. Go to the Advanced tab. You will notice under Virtual memory the paging file size currently allocated.

Step 3. Click on Change and you’ll see the Virtual Memory window from above, right. By default the pagefile is managed by Windows automatically, allocating 30% or 100% (depends on whether you have Hibernation enabled or not) of your RAM’s size to it, under the same partition where your Windows 8 is installed.
You’ll notice in the picture that my setup consist of partition C with Win 8 installed on it, partition F with Win 7 on it, and partition E. C and F are actually on the same disk, since I have Win 8.1 and 7 on dual boot. Partition E is on a different disk and this is where I’ll move the paging file Pagefile.sys.
Step 4. Uncheck Automatically manage paging file size for all drives.
Step 5. Click on the partition with pagefile allocated, click No paging file, click Set. In my case, I do this for partition C. You’ll get the warning below, click Yes.

At this point, paging file is disabled entirely on all drives, and Windows relies on your RAM only. Doing a restart at this point will result in pagefile.sys and swapfile.sys being deleted from your disk. Don’t restart just yet though.
Step 6. While still being inside the Virtual Memory window, click on the partition you want to move the pagefile to and select either System managed or Custom size. Click Set and Ok.
In my case, I selected partition E and set paging to System managed. The end result looked like below.

A new pagefile.sys file appeared on E right away.
Step 7. Save all work in progress and Restart.
You’ll notice the initial pagefile.sys is no longer present on the original partition, in my case partition C. That’s it for Pagefile.sys.
How do I verify swap is activated or not?
Simply use the free command:
total used free shared buffers cached Mem: 1876 1798 77 0 119 1440 -/+ buffers/cache: 237 1638 Swap: 4607 0 4607
How can I display swap usage summary on Linux?
Type the following swapon command: Sample outputs:
Filename Type Size Used Priority /dev/sda6 partition 4194296 0 0 /swapfile1 file 524280 0 -1
Another option is to view /proc/meminfo file: Sample outputs:
SwapCached: 30748 kB SwapTotal: 6291448 kB SwapFree: 6154008 kB
You can also use top command, atop command, and/or htop command to display information about swap usage: Sample outputs from a database server running on a CentOS Linux server:
1 Tasks: 171, 106 thr; 1 running 2 Load average: 0.06 0.12 0.09 3 Uptime: 22 days, 07:07:28 4 5 6 7 8 Mem[||||||||||||||||||2112/11909MB] Swp[| 134/6143MB] PID USER PRI NI VIRT RES SHR S CPU% MEM% TIME+ Command 8523 mysql 20 0 4545M 414M 4816 S 0.0 3.5 0:00.00 /usr/libexec/mysq 8524 mysql 20 0 4545M 414M 4816 S 0.0 3.5 0:02.74 /usr/libexec/mysq 8525 mysql 20 0 4545M 414M 4816 S 0.0 3.5 0:16.17 /usr/libexec/mysq 8526 mysql 20 0 4545M 414M 4816 S 0.0 3.5 0:06.33 /usr/libexec/mysq 8528 mysql 20 0 4545M 414M 4816 S 0.0 3.5 4:02.14 /usr/libexec/mysq 8529 mysql 20 0 4545M 414M 4816 S 0.0 3.5 5:22.00 /usr/libexec/mysq 8530 mysql 20 0 4545M 414M 4816 S 0.0 3.5 0:04.63 /usr/libexec/mysq 8531 mysql 20 0 4545M 414M 4816 S 0.0 3.5 0:50.95 /usr/libexec/mysq 8532 mysql 20 0 4545M 414M 4816 S 0.0 3.5 0:08.10 /usr/libexec/mysq 9359 mysql 20 0 4545M 414M 4816 S 0.0 3.5 22:53.28 /usr/libexec/mysq