| Windows 7: Why do even small updates require a system restart |
25 May 2011
|
#1 | | W7 X-64 RTM,SUSE 11.1, XP PRO SP3 as a VM, VMware ESXi Hafnarfjörður IS |
Why do even small updates require a system restart Hi all.
I've often wondered why so many Windows Updates require a System Restart including often quite small updates.
This is akin to having your Mobile Phone provider shut down the network every time for example they want to add new a new suscriber or make an app available.
I remember back many many years ago a popular IBM mainframe application C.I.C.S was a bit like that -- even a small change meant stopping and restarting that application -- In those days there wasn't an Internet so that really was one of the very few "Online" applications available. Of course this was a nuisance to the users and meant that the I.T dept usually had to do their maintenance at night or other times when users weren't on the system.
However technology and programming techniques have surely moved on from the Dinosaur age. I know that sometimes files are locked by a running application but surely these can by a decent bit of programming be moved to a Cache by the OS, the data areas flushed and the application updated without requiring a restart.
These days of 24 hour multi country / Global operation re-starts are a BIG NO NO or a hideous inconvenience.
I've used many Linux systems and its very RARE indeed -- in fact almost NEVER - especially with a Linux server that you need to reboot / restart after routine maintenance.
I'd say that a production type system NEVER needs a re-boot - unless of course changing MAJOR pieces of hardware like a Motherboard or doing a complete OS or Kernel upgrade.
Normal day to day maintenance / software upgrades certainly don't require a re-start.
OK on a home computer not too much of a big deal but in 21 st century it just seems to me that updates etc should be almost painless and run with minimal user interaction - unless as before like Linux you are changing a MOBO / equivalent or re-installing / upgrading the OS.
I'm referring here to typical systems -- of course not those where people are tinkering about with them -- adding / removing hardware etc etc. but normal "Mom / Pop / small office" type systems.
Cheers
jimbo | My System Specs |
| System Manufacturer/Model Number Custom built OS W7 X-64 RTM,SUSE 11.1, XP PRO SP3 as a VM, VMware ESXi CPU Q9400 QUAD Motherboard P5QL-CM Memory 8GB Graphics Card On Motherborad Sound Card Realtek HD audio Monitor(s) Displays Apple Cinema display Mouse Toshiba wireless laser Hard Drives 4 X 1TB SATA Internet Speed > 20MB up |
25 May 2011
|
#2 | | Windows 7 Ultimate x64 SP1 |
"I know that sometimes files are locked by a running application"
Or a required reinitialization of related processes/services. Just the way some updates - Windows is. Maybe in the future it will be different. | My System Specs | | System Manufacturer/Model Number Airbot 2.0 OS Windows 7 Ultimate x64 SP1 CPU Core i7 920 (D0) @ 4Ghz, *26c idle *65c full load on air Motherboard Asus P6X58D Premium - Sata 6Gb/s - USB 3.0 Memory 12GB DDR3 Corsair Dominator -CMD12GX3M6A1600C8 at 1600MHz Graphics Card EVGA GeForce GTX 480 -Aftermaket Accelero Xtreme Plus cooler Sound Card ASUS Xonar D2X Monitor(s) Displays 1 LG 24" Flatron W2453V-PF 1 Samsung 24" P2450H both 2ms RT Screen Resolution 1920x1080@60hz Keyboard Logitech Wireless MK700 Mouse Logitech Wireless MK700 PSU Corsair HX1000W Case Cooler Master HAF 932 Cooling Case Fans *3 230mm, *1 140mm/CPU - *Tuniq Tower 120 Extreme Hard Drives 1 OCZ Vertex2 180GB SSD
1 TB Samsung Spinpoint F1 7200RPM 32MB cache
2 500GB WD Caviar Blacks 7200RPM 32MB cache (WD5001AALS)
Pioneer DVD Burner DVR-S18M Internet Speed DL 15 Mbps UL 0.98 Mbps Antivirus None Browser Firefox Nightly Other Info Processor-7.7 *RAM- 7.9 *Graphics-7.9 *Gaming Graphics- 7.9 *SSD- 7.8 W.E.I final score= 7.7
*Phone- Samsung Galaxy Nexus |
25 May 2011
|
#3 | | Windows 7 Ultimate X64 SP1 Mt. Crumpit/Whoville |
Hmm, no restarts after updates. Be a good new "feature" for Windows 8, huh? | My System Specs | | Computer type PC/Desktop System Manufacturer/Model Number Home Built Desktop By DataTech OS Windows 7 Ultimate X64 SP1 CPU Intel i5-2550K, Differing ~4.4-4.8GHz No built in GPU Motherboard ASUS P8Z68-V PRO/GEN3 Memory 16GB G.Skill Sniper 2133MHz 4x4GB Graphics Card ASUS ENGTX460 DirectCU/2DI/1GD5 GeForce GTX 460 Sound Card Onboard Realtek 5-1 Monitor(s) Displays Samsung P2570HD Screen Resolution 1920x1080 Keyboard Old, beat-up Dell USB From 10 yrs Ago Mouse Gigabyte m6900 wired PSU Corsair HX650W Case Inwin Dragon Rider Cooling Hyper 212 EVO w/two Noctua fans, push-pull, @1300 RPM Hard Drives Crucial M4 128GB for OS, 750GB Seagate MomentusXT for data, 500GB Seagate Constellation for storage Internet Speed 8-19 Mbs down, 3-4 Mbs up Comcast Cable Antivirus Norton Internet Security Browser IE 9, Opera when needed Other Info 4 case fans, LG BluRay-RE, ASUS DVD-RW, Mr. Fusion power generator with flux capacitor, 1.21 gigawatts. |
25 May 2011
|
#4 | | Windows 7 Ultimate x64 Service Pack 1 Doncaster, UK |
It all depends on what the vulnerability is that the update addresses. All updates address vulnerabilities by making changes to various files/programs. Some programs are automatically started when the computer is booted, and some explicitly by the user when s/he wishes to use that program. Examples of programs that automatically start include services and the shell (explorer.exe). In these cases, because the program is in use, the computer needs to restart in order to fully apply the update. In some cases, the update needs exclusive access to the file system in order to make the required changes, in much the same way as chkdsk requires a reboot to carry out its operation. Other applications, such as Notepad and Wordpad, etc, don't generally need a system restart after being updated (although the application may need to be closed and reopened).
Generally speaking, even if a restart isn't required, it is a good idea to reboot after updates have been applied, particularly if there is a large number of them.
As regards Linux (and its various different implementations) and other OSes, the issue about needing to restart depends on the architecture of the OS. | My System Specs | | System Manufacturer/Model Number Dwarf Dwf/11/2012 OS Windows 7 Ultimate x64 Service Pack 1 CPU Intel Core-i5-3570K 4-core @ 3.4GHz (Ivy Bridge) (OC 4.2GHz) Motherboard ASRock Z77 Extreme4-M Memory 4 x 4GB DDR3-1600 Corsair Vengeance CMZ8GX3M2A1600C9B (16GB) Graphics Card 2 x AMD Radeon HD7770 1GB CrossFired (OC 1100MHz/1250MHz) Sound Card Realtek High Definition on board solution (ALC 898) Monitor(s) Displays ViewSonic VA1912w Widescreen (VGA) Screen Resolution 1440x900 Keyboard Microsoft Comfort Curve Keyboard 3000 (USB) Mouse Microsoft Comfort Mouse 3000 for Business (USB) PSU XFX Pro Series 850W Semi-Modular Case Gigabyte IF233 Cooling 1 x 120mm Front Inlet 1 x 120mm Rear Exhaust Hard Drives OCZ Agility 3 SSD 120GB SATA III x2 (RAID 0)
Samsung HD501LJ 500GB SATA II x2
Hitachi HDS721010CLA332 1TB SATA II
Iomega 1.5TB Ext USB 2.0
WD 2.0TB Ext USB 3.0 Internet Speed NetGear DG834Gv3 ADSL Modem/Router (Ethernet) ~4.0 Mb/s (O2) Antivirus Avast! 7.0.1474 Browser IE 9 Other Info Optical Drive: HL-DT-ST BD-RE BH10LS30 SATA Bluray
Lexmark S305 Printer/Scanner/Copier (USB)
CTF-430 Tablet & Pen
WEI Score: 7.7/7.9/7.4/7.4/7.9
Asus Eee PC 1011PX Netbook (Windows 7 x86 Starter) |
25 May 2011
|
#5 | | Windows 7 x64 pro/ Windows 7 x86 Pro/ XP SP3 x86 |
Its a bit wierd though. Sometimes Windows Update says I can keep using Windows while it installs updates, then afterwards it says Restart to finish installing. Huh? Sometimes theres a you "may" need to restart, in other words its not predictable till windows actually tries to patch the respective files and discovers they are locked. At least when the kernel is updated, the update can be clearly flagged as needing a reboot, there should be no "may" about it. | My System Specs | | System Manufacturer/Model Number Too many to describe... OS Windows 7 x64 pro/ Windows 7 x86 Pro/ XP SP3 x86 |
25 May 2011
|
#6 | | Vista Home Premium x86 SP2 |
Hello! Quote: but surely these can by a decent bit of programming be moved to a Cache by the OS, the data areas flushed and the application updated without requiring a restart. The infrastructure to do this already exists (pretty much; it would need a few additional methods to be added, but all of the "cache" which you talk about, required filter drivers etc. etc. are already written)
Look up the Volume Shadow Copy Service. This has existed prior to Vista, but I am mainly talking about the overhauled Vista/7 one. Knowledge of how VSS works down to the very deepest level will help you immensely. I cannot go into full depth here. Also, remember that (simplistically put) an .exe is copied into memory, and not executed off the hard disk itself. (the actual process is a bit more involved than that)
But there is a reason that it is not used for the purpose you speak of.
Look at these code snippets:
for (int i = 1; i < 6; i++)
{
// Do some magic with array[i];
}
Corrected code:
for (int i = 0; i < 6; i++)
{
// Do some more, better, magic with array[i];
}
OK. Let's imagine that the application's memory has been frozen, and that the code has been switched in and out. Changing code in this way will always be a bit dangerous.
But in the above example, it shouldn't be too dangerous.
But it could, and would have been a lot more drastic. And if pointers become involved, things could become very dodgy, and even create a security vulnerability after an update, but before a restart.
Microsoft could implement an out from under our very own feet policy, and modify the files while the image is in memory, and then leave the image in memory until that image is restarted, but then you have programs with maybe the .exe updated, but a shared .dll not, and the very involved process of updating becomes confused, things get lost, bugs appear, etc. etc.
I personally like things as they are.
And the ones which sometimes require a restart are purely based on whether the target program, for example notepad.exe was in use at that time.
Richard | My System Specs | | System Manufacturer/Model Number Dell XPS 420 OS Vista Home Premium x86 SP2 CPU Intel Core 2 Quad Q9300 2.50GHz Motherboard Stock Dell 0TP406 Memory 4 gb (DDR2 800) 400MHz Graphics Card ATI Radeon HD 3870 (512 MBytes) Monitor(s) Displays 1 x Dell 2007FP and 1 x (old) Sonic flat screen Screen Resolution 1600 x 1200 and 1280 x 1204 Keyboard Dell Bluetooth Mouse Advent Optical ADE-WG01 (colour change light up) Case Dell XPS 420 Cooling Stock Fan Hard Drives 1 x 640Gb (SATA 300) Western Digital: WDC WD6400AAKS-75A7B0 1 x 1Tb (SATA 600) Western Digital: Caviar Black, SATA 6GB/S, 64Mb cache, 8ms Western Digital: WDC WD1002FAEX-00Z3A0 ATA Device Internet Speed Varies from 10kb/s to 170kb/s. So unreliable it is not funny Other Info ASUS USB 3.0 5Gbps/SATA 6Gbps - PCI-Express Combo Controller Card (U3S6) |
25 May 2011
|
#7 | | Windows 7 Ultimate x64 SP1 Philadelphia, PA |
You already answered your question. Sometimes it is needed to access files that are in use. Would you try to change your oil or do any maintenance on your car while driving it?
Besides, I have two OSX systems in my company and two Ubuntu systems, and both often need to be restarted after updates, so it isn't just a Windows thing. | My System Specs | | OS Windows 7 Ultimate x64 SP1 CPU Intel Core i7-2600 Motherboard Gigabyte GA-P67A-UD3P-B3 Memory 12 GB Patriot Extreme DDR3-1333 Graphics Card Nvidia GTX 470 Monitor(s) Displays Dell UltraSharp 2209WA PSU OCZ ModStream 700W Case CoolerMaster HAF 912 Advanced Cooling CoolerMaster Hyper 212 Plus Hard Drives OCZ Agility3 240 GB, WD5001AALS, WD7501AALS |
25 May 2011
|
#8 | | Vista Home Premium x86 SP2 |
I mean, if some code gets changed, then the initialisation routines may also be changed. And if the initialisation routines have already run, with the old version, and then the new code executes, all sorts of odd things could go on in memory, with pointers pointing all over the place, uninitialised variables etc. etc. etc.
That was why I suggested the method of replacement of the file but not of the memory image. This solves the initialisation routine problem by not having the new code run yet.
But it also introduces a few new problems:
1) Things could become really messy, and problems galore! But it could be done. Assuming Microsoft perfected it .... (read point two)
2) The image would not actually be updated until it is dropped and restarted in memory. You point to a production server environment. Some applications there never stop until a system restart. And therefore they are not updated until a system restart. But if you then provide the illusion that they have been updated without a restart, then the server may never be restarted, and so fully updated servers would be full of already patched security vulnerabilities!
Richard | My System Specs | | System Manufacturer/Model Number Dell XPS 420 OS Vista Home Premium x86 SP2 CPU Intel Core 2 Quad Q9300 2.50GHz Motherboard Stock Dell 0TP406 Memory 4 gb (DDR2 800) 400MHz Graphics Card ATI Radeon HD 3870 (512 MBytes) Monitor(s) Displays 1 x Dell 2007FP and 1 x (old) Sonic flat screen Screen Resolution 1600 x 1200 and 1280 x 1204 Keyboard Dell Bluetooth Mouse Advent Optical ADE-WG01 (colour change light up) Case Dell XPS 420 Cooling Stock Fan Hard Drives 1 x 640Gb (SATA 300) Western Digital: WDC WD6400AAKS-75A7B0 1 x 1Tb (SATA 600) Western Digital: Caviar Black, SATA 6GB/S, 64Mb cache, 8ms Western Digital: WDC WD1002FAEX-00Z3A0 ATA Device Internet Speed Varies from 10kb/s to 170kb/s. So unreliable it is not funny Other Info ASUS USB 3.0 5Gbps/SATA 6Gbps - PCI-Express Combo Controller Card (U3S6) |
26 May 2011
|
#9 | | Windows 7 Ultimate x64 SP1 |
There you go. Looks like Win 8 will give you the option to at least dismiss the Restart Notification.
Or maybe that's just an auto restart checkbox, and the Notification will still be there checked/unchecked regardless? Haven't checked it out myself yet.
Still will be required for some, though. Unless it changes at some point. Most likely not. Update Restart | My System Specs | | System Manufacturer/Model Number Airbot 2.0 OS Windows 7 Ultimate x64 SP1 CPU Core i7 920 (D0) @ 4Ghz, *26c idle *65c full load on air Motherboard Asus P6X58D Premium - Sata 6Gb/s - USB 3.0 Memory 12GB DDR3 Corsair Dominator -CMD12GX3M6A1600C8 at 1600MHz Graphics Card EVGA GeForce GTX 480 -Aftermaket Accelero Xtreme Plus cooler Sound Card ASUS Xonar D2X Monitor(s) Displays 1 LG 24" Flatron W2453V-PF 1 Samsung 24" P2450H both 2ms RT Screen Resolution 1920x1080@60hz Keyboard Logitech Wireless MK700 Mouse Logitech Wireless MK700 PSU Corsair HX1000W Case Cooler Master HAF 932 Cooling Case Fans *3 230mm, *1 140mm/CPU - *Tuniq Tower 120 Extreme Hard Drives 1 OCZ Vertex2 180GB SSD
1 TB Samsung Spinpoint F1 7200RPM 32MB cache
2 500GB WD Caviar Blacks 7200RPM 32MB cache (WD5001AALS)
Pioneer DVD Burner DVR-S18M Internet Speed DL 15 Mbps UL 0.98 Mbps Antivirus None Browser Firefox Nightly Other Info Processor-7.7 *RAM- 7.9 *Graphics-7.9 *Gaming Graphics- 7.9 *SSD- 7.8 W.E.I final score= 7.7
*Phone- Samsung Galaxy Nexus Why do even small updates require a system restart problems? All times are GMT -5. The time now is 10:17 PM. | |