Poster | Thread |
g01df1sh
| |
Computer shut down Posted on 3-May-2018 9:52:39
| | [ #1 ] |
|
|
|
Super Member |
Joined: 16-Apr-2009 Posts: 1777
From: UK | | |
|
| Hi All
A little debate why do modern OS need to be shut down? Amiga OS can just be turned off as long as there is no disk access. So my main question is why does it take windows and macos time to shut down all it should need to do is check there is no disk access then power off. As for a restart that is no quicker than a shut down and reboot. _________________ A1200 ACA1232 128MB Indivison MkIICr Elbox empty Power Tower RPi3 Emulating C64 ZX Atari PS BBC Wii with Amiga emulation Vampire v4 SA |
|
Status: Offline |
|
|
zipper
| |
Re: Computer shut down Posted on 3-May-2018 10:02:26
| | [ #2 ] |
|
|
|
Regular Member |
Joined: 11-Jul-2005 Posts: 275
From: finland | | |
|
| @g01df1sh
I suppose temporary/cached files must be written down. |
|
Status: Offline |
|
|
g01df1sh
| |
Re: Computer shut down Posted on 3-May-2018 11:25:28
| | [ #3 ] |
|
|
|
Super Member |
Joined: 16-Apr-2009 Posts: 1777
From: UK | | |
|
| @zipper
Temporary files that's another one of windows errors Temp means temporary so why does windows not delete the temp files in the windows/temp folder ??? _________________ A1200 ACA1232 128MB Indivison MkIICr Elbox empty Power Tower RPi3 Emulating C64 ZX Atari PS BBC Wii with Amiga emulation Vampire v4 SA |
|
Status: Offline |
|
|
Raffaele
| |
Re: Computer shut down Posted on 3-May-2018 11:47:22
| | [ #4 ] |
|
|
|
Super Member |
Joined: 7-Dec-2005 Posts: 1906
From: Naples, Italy | | |
|
| @g01df1sh
I will sure appreciate a "safe shutdown" MUI lamp indicating on screen menus there is at the moment no any disk activity pending so the user can directly power off safely his/her machine. _________________ "When the Amiga came out, everyone [at Apple] was scared as hell." (J.L. Gassée, former CEO of Apple France and chief of devs of Mac II-fx, interviewed by Amazing Computing, Nov 1996). |
|
Status: Offline |
|
|
BigD
| |
Re: Computer shut down Posted on 3-May-2018 12:10:17
| | [ #5 ] |
|
|
|
Elite Member |
Joined: 11-Aug-2005 Posts: 7322
From: UK | | |
|
| @g01df1sh
I think it's great you can simply press the power button at a sensible moment to switch off an Amiga. I'm sure I made more than one deadline at Uni because I could just rush out the door rather than wait for a Windows machine to install updates etc. These days laptops etc can enter a sleep mode but back then you really didn't want to leave a computer on all day while you were out at college. _________________ "Art challenges technology. Technology inspires the art." John Lasseter, Co-Founder of Pixar Animation Studios |
|
Status: Offline |
|
|
AdvancedFollower
| |
Re: Computer shut down Posted on 3-May-2018 12:14:48
| | [ #6 ] |
|
|
|
Member |
Joined: 29-Aug-2017 Posts: 79
From: Sweden | | |
|
| -Many modern computers don't even have HDD access lights, so "waiting for disk access to stop" isn't so easy
-Due to write caching and delayed writes, data can be lost if you cut power even when the activity light isn't lit. Windows has its own disk cache, and SSD's/HDD's usually have some DRAM cache
-Modern systems run a lot more background tasks so it's harder to manually keep track of what processes might currently be writing to the disk (indexing service, log files etc.).
-SSD's can even be physically damaged if power is cut while it's erasing cells (though this wouldn't be noticeable to end users as there are plenty of spare cells).
-Amiga systems can also suffer data corruption if you get unlucky and mis-time the shutdown. Shutting down elegantly is just good practice. |
|
Status: Offline |
|
|
broadblues
| |
Re: Computer shut down Posted on 3-May-2018 13:00:20
| | [ #7 ] |
|
|
|
Amiga Developer Team |
Joined: 20-Jul-2004 Posts: 4446
From: Portsmouth England | | |
|
| @g01df1sh
Quote:
Temporary files that's another one of windows errors Temp means temporary so why does windows not delete the temp files in the windows/temp folder ???
|
Well they have to be deleted sometime, some kinds can be deleted when the appliaction has finished with them, some need to persist so another app can use them. The second kind might get removed either at shutdown or startup (or both) at shutdown is better in someways as it means a faster startup.
_________________ BroadBlues On Blues BroadBlues On Amiga Walker Broad |
|
Status: Offline |
|
|
broadblues
| |
Re: Computer shut down Posted on 3-May-2018 13:05:03
| | [ #8 ] |
|
|
|
Amiga Developer Team |
Joined: 20-Jul-2004 Posts: 4446
From: Portsmouth England | | |
|
| @AdvancedFollower
The write behind caching is by far the biggest reason. That combined with the fact that applications an services expect there to be shutdown sequance and so do some house keeping (writing setting changes to disk perhaps) at that point.
The problems occur when apps refuse to shutdown, so delying teh shutdown sequance, I don't use windows for along long time so I'm really not sure how bad a problem that is these days, linux gets more assertive and "kills" any such apps.
The otherone in windows case is the tendency to apply updates on shutdown, which can take ages.
_________________ BroadBlues On Blues BroadBlues On Amiga Walker Broad |
|
Status: Offline |
|
|
Hypex
| |
Re: Computer shut down Posted on 4-May-2018 17:21:24
| | [ #9 ] |
|
|
|
Elite Member |
Joined: 6-May-2007 Posts: 11209
From: Greensborough, Australia | | |
|
| @g01df1sh
Perhaps it is shut down so the modern filesystem doesn't get invalidated.
Amiga OS is a simpler design. It also lacks dependence on virtual memory. On a modern system it is built so that apps will use that virtual memory along with the system itself. As well as holding files open. And modern systems like to log things like system activity so there is a lot of writing going on. And all this going on under a logged in user. I suppose it is a bit convulted and a logistical nightmare. So at the end of the day all apps need to be closed down as well as files and other ties. Log out. Making sure it is a clean exit.
Similar to how on Amiga OS it needs a valid filesystem before can be cleanly shut down. Or you end up with a dirty write protected one. Well that's my guess anyway at what it has to do. In a nut shell, it's complicated.
That said, I don't mind the idea of a shut down procedure for OS4 and the like. I think it's a good idea to ensure a clean break. On a modern system a shut down can be performed by simply pressing the power button and letting it do the rest of the work. More complicated but just as "lazy" as pressing the power switch and forgetting about it. So I would welcome a shutdown on AmigaOS that cleanly closed all my apps and made sure all my files were saved so "I" didn't have to do it. Last edited by Hypex on 04-May-2018 at 05:26 PM.
|
|
Status: Offline |
|
|
Hypex
| |
Re: Computer shut down Posted on 4-May-2018 17:27:57
| | [ #10 ] |
|
|
|
Elite Member |
Joined: 6-May-2007 Posts: 11209
From: Greensborough, Australia | | |
|
| @broadblues
Quote:
I don't use windows for along long time so I'm really not sure how bad a problem that is these days, linux gets more assertive and "kills" any such apps. |
Except when it's FireFox on Linux Mint as it will let that lock up the machine and only in rare circumstances will actually kill it. |
|
Status: Offline |
|
|
Tomppeli
| |
Re: Computer shut down Posted on 4-May-2018 17:38:08
| | [ #11 ] |
|
|
|
Super Member |
Joined: 18-Jun-2004 Posts: 1652
From: Home land of Santa, sauna, sisu and salmiakki | | |
|
| @thread
ElementaryOS (based on Ubuntu) powers off a computer in a second. I don't think recent OS versions keeps any write buffers in memory for that long anymore. Doing so was a 1990s thing when harddrives were slower. _________________ Rock lobster bit me. My Workbench has always preferences. X1000 + AmigaOS4.1 FE "Anyone can build a fast CPU. The trick is to build a fast system." -Seymour Cray |
|
Status: Offline |
|
|
kolla
| |
Re: Computer shut down Posted on 4-May-2018 18:32:24
| | [ #12 ] |
|
|
|
Elite Member |
Joined: 21-Aug-2003 Posts: 2892
From: Trondheim, Norway | | |
|
| @Tomppeli
Yeah they do, but writing cache to disk is much faster now, and systemd speeds up both boot and shutdown by doing all in parallel. You can check yourself, if filesystem is mounted with sync (no write cache) option or not. Last edited by kolla on 04-May-2018 at 06:33 PM.
_________________ B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC |
|
Status: Offline |
|
|
OneTimer1
| |
Re: Computer shut down Posted on 4-May-2018 19:27:03
| | [ #13 ] |
|
|
|
Cult Member |
Joined: 3-Aug-2015 Posts: 980
From: Unknown | | |
|
| @g01df1sh
Quote:
g01df1sh wrote:
A little debate why do modern OS need to be shut down?
|
1. The shutdown process closes all open files, without you could lose the data in not closed files. 2. Caches on the file system are written when you close the files, if you switch of without closing the files you will lose data.
Old OSes do often work without caches and often works with limited number of aplications writing to the file system.
Most modern OSes have variants that could be switched of without shut down, they could be configured to run from Read only media, using Ram Disks for temporary files |
|
Status: Offline |
|
|
Deniil715
| |
Re: Computer shut down Posted on 6-May-2018 19:43:54
| | [ #14 ] |
|
|
|
Elite Member |
Joined: 14-May-2003 Posts: 4236
From: Sweden | | |
|
| @g01df1sh
If you're thinking about Winblows, I suppose it keeps the registry in memory with all settings stored. If you kill power without shut down, you may loose some settings you made, window positions etc. _________________ - Don't get fooled by my avatar, I'm not like that (anymore, mostly... maybe only sometimes) > Amiga Classic and OS4 developer for OnyxSoft. |
|
Status: Offline |
|
|
AdvancedFollower
| |
Re: Computer shut down Posted on 7-May-2018 13:00:08
| | [ #15 ] |
|
|
|
Member |
Joined: 29-Aug-2017 Posts: 79
From: Sweden | | |
|
| @broadblues
Quote:
The problems occur when apps refuse to shutdown, so delying teh shutdown sequance, I don't use windows for along long time so I'm really not sure how bad a problem that is these days, linux gets more assertive and "kills" any such apps. |
It's a lot better nowadays, but if an application refuses to shut down and you don't do anything within maybe 30s, it will still abort the shutdown in my experience. Otherwise, it's as simple as clicking "Yes" when it happens.
Linux is indeed more aggressive, which makes sense. If you're trying to remotely restart a server somewhere and the SSH service is already down for example, you don't want some silly message on the screen like "Are you sure you want to continue shutting down?". |
|
Status: Offline |
|
|
Hypex
| |
Re: Computer shut down Posted on 8-May-2018 15:12:17
| | [ #16 ] |
|
|
|
Elite Member |
Joined: 6-May-2007 Posts: 11209
From: Greensborough, Australia | | |
|
| @Deniil715
Or in the case of OSX, wiping browser logins and wireless passwords, because the battery died while it was sleeping.
Had they not designed it to delete important data before going into suspension that wouldn't happen but this is Apple for you. Last edited by Hypex on 08-May-2018 at 03:45 PM.
|
|
Status: Offline |
|
|
g01df1sh
| |
Re: Computer shut down Posted on 9-May-2018 16:18:44
| | [ #17 ] |
|
|
|
Super Member |
Joined: 16-Apr-2009 Posts: 1777
From: UK | | |
|
| Its not so much the shut down I have a problem with its the amount of time it takes to shut down some times. Should take take no more than 10-15 secs to shut down ? _________________ A1200 ACA1232 128MB Indivison MkIICr Elbox empty Power Tower RPi3 Emulating C64 ZX Atari PS BBC Wii with Amiga emulation Vampire v4 SA |
|
Status: Offline |
|
|
arthoropod
| |
Re: Computer shut down Posted on 9-May-2018 16:41:13
| | [ #18 ] |
|
|
|
Member |
Joined: 14-Feb-2018 Posts: 80
From: Gotham | | |
|
| @Hypex
Quote:
Perhaps it is shut down so the modern filesystem doesn't get invalidated. |
Exactly, and the time to shut down is influenced by how many processes are using the file system that have to be shut down correctly to avoid corruption. |
|
Status: Offline |
|
|
BigD
| |
Re: Computer shut down Posted on 9-May-2018 16:57:18
| | [ #19 ] |
|
|
|
Elite Member |
Joined: 11-Aug-2005 Posts: 7322
From: UK | | |
|
| @arthoropod
Quote:
arthoropod wrote: @Hypex
Quote:
Perhaps it is shut down so the modern filesystem doesn't get invalidated. |
Exactly, and the time to shut down is influenced by how many processes are using the file system that have to be shut down correctly to avoid corruption. |
Nah, close all windows and programs and push the power button; it's the Atari / Amiga way. A Shutdown procedure is just ridiculous. I think we can all tell if Time Machine is running on the Mac or not than that we should be able to do the same on Macs. PeeCees just love to install updates just as you want to go home / go out after we click shut down!! This is unforgivable in the age of iOS and Android on phones that can easily and quickly be shutoff with a power button!_________________ "Art challenges technology. Technology inspires the art." John Lasseter, Co-Founder of Pixar Animation Studios |
|
Status: Offline |
|
|
arthoropod
| |
Re: Computer shut down Posted on 9-May-2018 18:39:58
| | [ #20 ] |
|
|
|
Member |
Joined: 14-Feb-2018 Posts: 80
From: Gotham | | |
|
| @BigD
Quote:
PeeCees just love to install updates just as you want to go home / go out after we click shut down!! |
Worse yet, I've had them shut down while I was working, or install updates when I boot and would prefer to get to work.
But the shut down procedure is still needed with those systems to prevent file system corruption.
And, you know, Amigoid file systems aren't all that and a box of rocks either. |
|
Status: Offline |
|
|