Question Which is more likely to corrupt the OS, a force shutdown or BSOD?

Page 2 - Seeking answers? Join the Tom's Hardware community: where nearly two million members share solutions and discuss the latest tech.

ShangWang

Reputable
Mar 26, 2021
617
2
4,885
Now that I have a new SSD I don't think I'll be getting any BSOD anytime soon, but I'd like to know how it could corrupt the OS.

Here are my two described scenarios for either a possible BSOD or force shutdown in my previous experiences with a HDD:

BSOD
- A game that is too graphically intensive giving me an orange screen of death. I'm not overclocking here, the game was apparently too intense for my graphics card, it was Ori and the blind forest. Apparently GTA is fine though. Will this damage my GPU or corrupt the OS?

- I run into under volting my CPU way too much and get a BSOD from lack of power, will this corrupt the OS or damage the CPU?

- Any other possible reason that can cause BSOD, will this generally corrupt the OS or any files if I wasn't saving, or writing anything? What if I was just downloading windows updates? (Not updating, downloading from the update tab)

Force shutdown
- Alt tabbing a game causes it to freeze my whole screen, I can't ctrl + alt + delete or do anything at all. I am forced to shutdown. The game wasn't saving or anything at this time. Can a force shutdown corrupt the OS or any of my game files if no saving was happening?

If I wanted to do a force shutdown, how would I safely do so other than holding the power button?

Would a BSOD or force shutdown more likely cause the OS to corrupt, and why?
 

ShangWang

Reputable
Mar 26, 2021
617
2
4,885
No, it's impossible to guard against corruption 100% of the time. Assuming you're an average home user, even if you take all the precautions of shutting down properly, etc. the universe really hates us and likes to belch out high energy particles at times. If any of these hit your computer, there's a chance it'll flip a bit.


Yes, but there's a very small chance that it could happen because there are many layers of hoops to go through (or should go through) before a driver gets updated.
  • The driver setup is verified for integrity
  • The driver gets copied in a driver pool
  • The file system makes sure the driver is copied more or less correctly (i.e., it won't commit something was written to it unless it passes various checks)
  • The OS's driver configuration gets updated
  • Refer to the file system doing its thing again
Thanks! Usually when a driver is updated, are the old driver files mostly completely replaced without DDU or does it actually just "update" some files and retain some of the old ones?

Do you know what most commonly causes a graphics driver corruption or drivers in general?
 
Thanks! Usually when a driver is updated, are the old driver files mostly completely replaced without DDU or does it actually just "update" some files and retain some of the old ones?
Drivers in Windows are stored in a pool by version. Sometimes the old version is removed when you update them, sometimes it's not. However, the OS has a configuration file to know which specific version to use.

Do you know what most commonly causes a graphics driver corruption or drivers in general?
The same thing that causes any file on a drive to become corrupted. The chances of it being a driver are the same as any other file, more or less.
 
  • Like
Reactions: ShangWang

ShangWang

Reputable
Mar 26, 2021
617
2
4,885
Anything that affects the electrical properties of the storage media or data while in transit. There's no single common cause and even if there were, you can't completely prevent it.
Thank you, though specifically alt f4 or using any overlay settings with MSI after burner is unlikely to cause issues if I'm just using it regularly?
 

Colif

Win 11 Master
Moderator
You can't avoid corruption, if its going to happen.

As to why? So many reasons. Every time you think you seen all the reasons something new shows up.
the Nvidia installer keeps a copy of every driver its installed on the PC, I found that yesterday in another answer. Its all in the Nvidia folder.

the 2 biggest reasons I see are bad ram or old drivers. The drivers might have been fine when released but other changes in system have resulted in them not working as well. Its why updating drivers can help.
 
  • Like
Reactions: ShangWang

ShangWang

Reputable
Mar 26, 2021
617
2
4,885
You can't avoid corruption, if its going to happen.

As to why? So many reasons. Every time you think you seen all the reasons something new shows up.
the Nvidia installer keeps a copy of every driver its installed on the PC, I found that yesterday in another answer. Its all in the Nvidia folder.

the 2 biggest reasons I see are bad ram or old drivers. The drivers might have been fine when released but other changes in system have resulted in them not working as well. Its why updating drivers can help.
I see, thanks!
 

ShangWang

Reputable
Mar 26, 2021
617
2
4,885
You can't avoid corruption, if its going to happen.

As to why? So many reasons. Every time you think you seen all the reasons something new shows up.
the Nvidia installer keeps a copy of every driver its installed on the PC, I found that yesterday in another answer. Its all in the Nvidia folder.

the 2 biggest reasons I see are bad ram or old drivers. The drivers might have been fine when released but other changes in system have resulted in them not working as well. Its why updating drivers can help.
Hello again, I was just wondering if you know how big of a page file would be needed for these kind of memory dumps. I'm assuming since you and others were able to read all the information needed for any issues, 4096mb is plenty for automatic memory dumps?

What would be the general range for automatic ones? I'm asking this because I don't want to set my page file to automatic.

Do complete memory dumps actually require a page file to be half the size of your current RAM, or does it actually just use the physical RAM plus a few mb of page file?
 

Colif

Win 11 Master
Moderator
Why restrict page file size? If you run out of ram at any stage and then if page file is restricted , and windows needs more... you will get out of memory errors. Better to just leave it as as.

You better off with getting more ram than to restrict page file. I have 32gb of ram but my page file is only 4.8gb in size. Windows 10 won't use page file unless it absolutely needs to.

We generally ask for minidumps which are only a few MB at most. But there are the occasional BSOD where Kernel dumps are needed and they are bigger. I don't know the factors that go into how big a dump is apart from its type.

Why don't you want a page file? Only PC that should/could get away without one have more than 8gb of ram.
 

ShangWang

Reputable
Mar 26, 2021
617
2
4,885
Why restrict page file size? If you run out of ram at any stage and then if page file is restricted , and windows needs more... you will get out of memory errors. Better to just leave it as as.

You better off with getting more ram than to restrict page file. I have 32gb of ram but my page file is only 4.8gb in size. Windows 10 won't use page file unless it absolutely needs to.

We generally ask for minidumps which are only a few MB at most. But there are the occasional BSOD where Kernel dumps are needed and they are bigger. I don't know the factors that go into how big a dump is apart from its type.

Why don't you want a page file? Only PC that should/could get away without one have more than 8gb of ram.
Not saying that I don't want a page file, I'm just keeping it a static size because I like it that way. No logical reason.

I have 16GB of RAM, I was just curious as to how big of a page file you actually need for automatic memory dumps.

You mentioned a minidump so I'm assuming 4096mb is only capable of making those to read.
 

Colif

Win 11 Master
Moderator
An Automatic Memory Dump contains the same information as a Kernel Memory Dump. The difference between the two is not in the dump file itself, but in the way that Windows sets the size of the system paging file.

If the system paging file size is set to System managed size, and the kernel-mode crash dump is set to Automatic Memory Dump, then Windows can set the size of the paging file to less than the size of RAM. In this case, Windows sets the size of the paging file large enough to ensure that a kernel memory dump can be captured most of the time.

If the computer crashes and the paging file is not large enough to capture a kernel memory dump, Windows increases the size of the paging file to at least the size of RAM. The time of this event is recorded here in the Registry:

HKLM\SYSTEM\CurrentControlSet\Control\CrashControl\LastCrashTime

The increased paging file size stays in place for 4 weeks and then returns to the smaller size. If you want to return to the smaller paging file before 4 weeks, you can delete the Registry entry.

https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/automatic-memory-dump

Microsoft don't give specific sizes for any dumps except Small which are 64kb
The difference between these dump files is one of size. The Complete Memory Dump is the largest and contains the most information, including some User-Mode memory. The Active Memory Dump is somewhat smaller but contains similar information for most purposes. The Kernel Memory Dump is smaller still and typically omits User-Mode memory, and the Small Memory Dump is only 64 KB in size.
https://docs.microsoft.com/en-us/wi.../debugger/varieties-of-kernel-mode-dump-files
 
  • Like
Reactions: ShangWang

ShangWang

Reputable
Mar 26, 2021
617
2
4,885
I see, my settings are on automatic memory dump but I set a min and max page file of 4096mb.

It doesn't indicate what happens if it's not system managed, if by "small" you mean the mini dump file that I shared with you, I'm going to assume this is fine.
 

Colif

Win 11 Master
Moderator
if you don't get bsod it doesn't matter.
my pf max size is 4.8gb but generally I use... 391mb in a day. and I don't ask why windows wants to use paged pool when its got 18gb free (not in standby, totally free)
using 8gb
modified 500mb
standby 5.3gb
free 18.8gb
 
  • Like
Reactions: ShangWang

ShangWang

Reputable
Mar 26, 2021
617
2
4,885
if you don't get bsod it doesn't matter.
my pf max size is 4.8gb but generally I use... 391mb in a day. and I don't ask why windows wants to use paged pool when its got 18gb free (not in standby, totally free)
using 8gb
modified 500mb
standby 5.3gb
free 18.8gb
Thank you, but I was wondering what kind of crash dump mine is considered. Is it a "minidump" or some other category?
 

Colif

Win 11 Master
Moderator
Guess we blame Microsoft as Small = Mini
Small memory dump
A small memory dump (Minidump) is a C:\Windows\Minidump dump file that contains the stop code, parameters, list of loaded device drivers, information about the current process and thread, and the kernel stack for the thread that caused the crash.

If they stuck to one description, you would know.
 
  • Like
Reactions: ShangWang

Colif

Win 11 Master
Moderator
As far as I can tell, the only one that needs a specific amount of page file size is a complete memory dump and you can't make windows create that from the same menus you set up the other dump sizes.
The complete memory dump will require that there is a page file set to at least the size of physical memory installed plus 1MB (for the header).
https://www.tenforums.com/tutorials/5560-configure-windows-10-create-minidump-bsod.html

everything else needs less as they don't collect as much info. I can't be specific as Microsoft aren't being either.
 
  • Like
Reactions: ShangWang

ShangWang

Reputable
Mar 26, 2021
617
2
4,885