Jump to content

Paging file video - Techquickie

 

Hello everyone!

I recently upgraded my laptop with an 500 GB SSD (NVMe drive) and moved my Windows system files into the SSD.

Following this video, I set a paging file in the drive with the system files which is a SSD and another paging file in the old HDD (both are system managed)

Does that mean that the system crash files and related files will be dumped into the paging file of the SSD, while the overflowing working files into the paging file of the HDD? (just verifying if I understood the above linked video correctly)

System is running with a 16 GB dual channel RAM 2400 MT/s Windows 11.

Link to comment
https://linustechtips.com/topic/1502806-paging-file/
Share on other sites

Link to post
Share on other sites

Don't bother with the HDD on your laptop. 

It can become an external drive but for day to day use it's not worth the battery life hit. 

 

Also keep page file off of hard drives. A 99% overwhelmed SSD (think installing a bunch of programs simultaneously while running PC Mark while moving a folder with tens of thousands of small files in it) will still have more headroom (measured in operations per second) than a completely free HDD. SSDs can do something like 300K-1M operations a second. Harddrives hit around 100-200 operations a second, literally 10,000x slower in the worst case scenario. 

5900XT (16C/32T) | 64 GB DDR4 RAM | RTX 5070 

1.5TB Optane P4800X | 16TB nvme SSD NAS w/ 10Gbe & 96GB DDR5 RAM caching
LG C4 + QN90A | Sony AZ7000ES | Polk R200+R100, ELAC OW4.2, SVS PB12-NSD + 3x SB1000 | HD800

Link to comment
https://linustechtips.com/topic/1502806-paging-file/#findComment-15907549
Share on other sites

Link to post
Share on other sites

22 minutes ago, cmndr said:

Don't bother with the HDD on your laptop. 

It can become an external drive but for day to day use it's not worth the battery life hit. 

 

Also keep page file off of hard drives. A 99% overwhelmed SSD (think installing a bunch of programs simultaneously while running PC Mark while moving a folder with tens of thousands of small files in it) will still have more headroom (measured in operations per second) than a completely free HDD. SSDs can do something like 300K-1M operations a second. Harddrives hit around 100-200 operations a second, literally 10,000x slower in the worst case scenario. 

Yes exactly, I moved all the heavy programs (Autodesk, photoshop and so on) into the SSD and am only using the HDD to store images, docs, one drive local copy, downloads folder and so on. It is inside the laptop but being used like an external HDD to store bulk files (Was thinking of moving it out of the laptop, but didn't want to limit the speed to that of the USB port).

 

As paging file means constant write operations to the drive and that is inversely proportional to the life of an SSD, I wanted to reduce it by making an additional paging file in the HDD.

Link to comment
https://linustechtips.com/topic/1502806-paging-file/#findComment-15907603
Share on other sites

Link to post
Share on other sites

34 minutes ago, Mr.Zixxel said:

If you have 16GB of RAM plus a swap file on your SSD, I would recommend removing the one you put on your HDD.

An HDD is terribly much slower in every conceivable way.

As paging file means constant write operations to the drive and that is inversely proportional to the life of an SSD, I wanted to reduce the strain on the SSD by making an additional paging file in the HDD.

Link to comment
https://linustechtips.com/topic/1502806-paging-file/#findComment-15907608
Share on other sites

Link to post
Share on other sites

25 minutes ago, glasze said:

Yes exactly, I moved all the heavy programs (Autodesk, photoshop and so on) into the SSD and am only using the HDD to store images, docs, one drive local copy, downloads folder and so on. It is inside the laptop but being used like an external HDD to store bulk files (Was thinking of moving it out of the laptop, but didn't want to limit the speed to that of the USB port).

 

As paging file means constant write operations to the drive and that is inversely proportional to the life of an SSD, I wanted to reduce it by making an additional paging file in the HDD.

A USB 3 port (300+ MBPs) is generally going to be faster than a harddrive (100-200MBPs, probably less since it's laptop drive) can operate at. Latency will also be better than a harddrive can provide. There will be some overhead but you SERIOUSLY underestimate how awful harddrive performance is. 

 


Writing to an SSD does wear it out, but in practice NAND wearing out isn't why SSDs die, it's more along the lines of "random failures" - think the controller dying or a chip just dying outright. The main exception to this would be using the SSD as a write log (think SLOG use in ZFS) which is very tough on the chips. You're not doing this. 


This is a case of you being too clever for your own good. Full disclosure I had the same worries and concerns as you back in 2009. They don't matter. 

5900XT (16C/32T) | 64 GB DDR4 RAM | RTX 5070 

1.5TB Optane P4800X | 16TB nvme SSD NAS w/ 10Gbe & 96GB DDR5 RAM caching
LG C4 + QN90A | Sony AZ7000ES | Polk R200+R100, ELAC OW4.2, SVS PB12-NSD + 3x SB1000 | HD800

Link to comment
https://linustechtips.com/topic/1502806-paging-file/#findComment-15907628
Share on other sites

Link to post
Share on other sites

46 minutes ago, cmndr said:

A USB 3 port (300+ MBPs) is generally going to be faster than a harddrive (100-200MBPs, probably less since it's laptop drive) can operate at. Latency will also be better than a harddrive can provide. There will be some overhead but you SERIOUSLY underestimate how awful harddrive performance is. 

 


Writing to an SSD does wear it out, but in practice NAND wearing out isn't why SSDs die, it's more along the lines of "random failures" - think the controller dying or a chip just dying outright. The main exception to this would be using the SSD as a write log (think SLOG use in ZFS) which is very tough on the chips. You're not doing this. 


This is a case of you being too clever for your own good. Full disclosure I had the same worries and concerns as you back in 2009. They don't matter. 

Well, it is my first time using an internal SSD, so I guess I have got a bit more learning to do. Thank you for the advice.

Link to comment
https://linustechtips.com/topic/1502806-paging-file/#findComment-15907751
Share on other sites

Link to post
Share on other sites

47 minutes ago, glasze said:

Well, it is my first time using an internal SSD, so I guess I have got a bit more learning to do. Thank you for the advice.

Not too much learning to do. For the most part it'll just work and modern versions of windows handle it reasonably well. 

Hope you're enjoying your upgrade. 

5900XT (16C/32T) | 64 GB DDR4 RAM | RTX 5070 

1.5TB Optane P4800X | 16TB nvme SSD NAS w/ 10Gbe & 96GB DDR5 RAM caching
LG C4 + QN90A | Sony AZ7000ES | Polk R200+R100, ELAC OW4.2, SVS PB12-NSD + 3x SB1000 | HD800

Link to comment
https://linustechtips.com/topic/1502806-paging-file/#findComment-15907813
Share on other sites

Link to post
Share on other sites

2 hours ago, glasze said:

As paging file means constant write operations to the drive and that is inversely proportional to the life of an SSD, I wanted to reduce it by making an additional paging file in the HDD.

Your not going to wear out an SSD because of paging. 
 

Don’t worry about SSD lifespan. It will outlive the usable life of the laptop, unless you are doing extremely write intensive tasks on the laptop, which would be an extremely rare use case. 

Rig: i7 13700k +Contact Frame - - Asus Z790-P Wifi - - RTX 4080 - - 4x16GB 6000MHz - - Samsung 990 Pro 2TB NVMe Boot + Main Programs - - Crucial P3 2TB NVMe for photo work - - Corsair RM850x - - Sound BlasterX EA-5 - - Corsair XC8 JTC Edition - - Corsair GPU Full Cover GPU Block - - PTM 7950 - - XT45 X-Flow 420 + UT60 280 rads externally mounted - - EK XRES RGB PWM - - Fractal Define S2 - - DellAlienware AW3423DWF 34" -- Logitech Pro X Superlight - - Logitech G710+ - - LTT Northern Lights Deskpad

 

Headphones/amp/dac: Schiit Bifrost Multibit - -  Schiit Lyr 3 - - Fostex TR-X00 - - Sennheiser HD 6xx

 

Homelab/Media Server: Proxmox VE host - - 512 NVMe Samsung 980 RAID Z1 for VM's/Proxmox boot - - Xeon e5 2660 V4- - Supermicro X10SRF-i - - 128 GB ECC 2133 - - 10x8TB WD Red RAID Z2 - - 2x 800 GB SAS SSD’s (1 SLOG, 1 L2Arc) - - 45 HomeLab HL15 15 Drive 4U - - Corsair RM650i - - LSI 9305-16i HBA - - TreuNAS + many other VM’s

 

Unifi UDM Pro in front of full unifi network infrastructure

 

iPhone 17 Pro - - MacBook Air M3

Link to comment
https://linustechtips.com/topic/1502806-paging-file/#findComment-15907853
Share on other sites

Link to post
Share on other sites

On 4/24/2023 at 10:11 PM, glasze said:

As paging file means constant write operations to the drive and that is inversely proportional to the life of an SSD, I wanted to reduce the strain on the SSD by making an additional paging file in the HDD.

No...

 

Its best to leave page file at default settings *especially* for people that don't understand how it works, its a none issue. its only an issue when users think they need to change it for whatever reason. 

The direction tells you... the direction

-Scott Manley, 2021

 

 

Link to comment
https://linustechtips.com/topic/1502806-paging-file/#findComment-15910143
Share on other sites

Link to post
Share on other sites

On 4/24/2023 at 11:11 PM, glasze said:

As paging file means constant write operations to the drive and that is inversely proportional to the life of an SSD, I wanted to reduce the strain on the SSD by making an additional paging file in the HDD.

That video is 9 years old and probably has some information that is no longer relevant or accurate. Including the note about having page file on both drives. Thats from era where 120Gb was most common SSD for OS and it got stuffed fast. Its also from era where it was possible that mobo's could lose SATA connections on boot, so if you had pagefile only on secondary drive, you would have very bad time loading into OS.

 

Today things are better in many ways. Like as already noted, you don't need to worry about SSD. You also don't need more than 8gb of pagefile, so it won't take that much space on your main drive anyway. And if it would be too much still, mobos losing connection to some SATA devices is really, really rare.

^^^^ That's my post ^^^^
<-- This is me --- That's your scrollbar -->
vvvv Who's there? vvvv

Link to comment
https://linustechtips.com/topic/1502806-paging-file/#findComment-15911211
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×