Why Linux boots and shutdown faster than Windows

Why Linux boots and shutdown faster than Windows

86% Of Critical Vulnerabilities Affecting Windows Could Be Avoided By Removing Admin Rights
Basic Ubuntu commands and Terminal shortcuts every beginner must know
This Simple drag-and-drop feature in Windows explorer can save your time

Do you ever wonder why Linux based operating systems like Ubuntu,Linux Mint,Elementary OS,Kali Linux etc boots and shutdown faster than Windows operating system ?

No!

In this article we are going to break down it for you.

Also Read : How To Uninstall Linux Or Windows From Dual Boot System

Why Linux Boots Faster than Windows ?


First we are going to discuss why Linux boots faster than windows .

A lot factors affect the boot time of both Linux and Windows. Some of the notable reasons are :

Kernel :

Kernel is the nucleus of an operating system. It has complete control over everything that occurs in the system.

Linux Kernel is monolithic — means it holds all functionality,even drivers ,memory management, task scheduler and file system. So while booting Kernel loads all these functions at once.

And Windows NT kernel is like a micro-kernel which only holds basic features during boot process, then loads other functions,drivers and file systems. Which makes Windows to boot a bit slower than Linux.

Services and Programs :

In Windows many services auto-starts during start up along with many programs like Antivirus which makes booting process slow. While in case of Linux it is limited.

Backward compatibility :

Backward compatibility allow software system to successfully use interfaces and data from earlier versions of the system or with other systems.

And Windows have long history and they support old software frameworks, so during boot time Windows have to load these libraries to make the Windows experience smoother.

While Linux distributions doesn’t have backward compatibility feature.

Fragmentation :

Fragmentation means the storing of a file in several separate areas of memory scattered throughout a hard disk.

In Windows files are fragmented. So hard disk takes more time for read and write during start up. And also when you installs more programs in Windows, then system takes more time to load. You can notices these by delay in boot time with new and used Windows system.

And in Linux filesystem used is EXT, which doesn’t requires fragmentation. Because Linux allocates files in a more intelligent way. Instead of placing multiple files near each other on the hard disk, Linux file systems scatter different files all over the disk, leaving a large amount of free space between them. So  read and write during start up is faster.

Desktop Environment :

Another main reason behind faster Linux boot is its Desktop Environment (DE). Which is quite faster than Windows.

Also Read : 5 Things to do before dual booting Linux with Windows

Why Linux Shutdown Faster than Windows ?


Now we are going to discuss why Linux shutdown faster than Windows.

Services in Windows delays shutdown :

During Windows shutdown, most services will generate at least one event on terminating. Sometimes each service may have many events.

Eg “NTP Service terminating”, “Printer Driver got signal to terminate”, “Printer Driver is flushing the queue” “Printer Driver Exiting”. These Events are “objects” and are slow to create and destroy, which adds up to shutdown time.

However, during shutdown on Linux, most processes simply print a line on the console or/var/log/messages and exit. Which makes a smoother shutdown.

Cache :

Windows may cache many things and these caches have to be flushed to filesystem on shutdown. But caches are handled better in Linux, with periodic “fsync” executions, on better filesystems.

GUI :

Graphical User Interface (GUI) in Windows saves a lot of state information most of which is stored as objects. Which affect shutdown time.

While in case of Linux, Command Line Interface (CLI) has almost nothing to save, except for the shell history file. Most state information is in simple text files.

Process & Programs :

Like services, some process and programs in Windows a lot more time to exit during shutdown and it will hung up and sometimes we have to forcibly terminate the task.

And Linux takes less time to each process to exit, and most programs may respond quickly and exit faster during shutdown.

However unlike previous Windows versions, Windows 10 some what improved its boot and shutdown time but still doesn’t faster than Linux.

Also Read : Do you know why real hackers prefer Linux distro over other OS

COMMENTS

WORDPRESS: 4
  • comment-avatar
    Matt 1 month

    You should also mention that Windows loads the entire system registry into memory on login, which significantly slows things down, especially for registry keys from apps that don’t properly uninstall themselves and leave items in the registry, causing bloat.

  • comment-avatar
    Jp 1 month

    What, I can’t remember the last time I saw a Linux desktop load faster than windows. Are we talking about very low end hardware?

    • comment-avatar
      VaryHeavy 1 month

      Really? so what was the last Linux desktop you saw?

      • comment-avatar
        Jp 1 month

        It would have been roughly three months ago, I was removing windows 10 from a latitude e6430 with an i5 and 4gb of ram. Every so often I will load up Ubuntu on that laptop to see what’s new. It ran fairly well, it was kind of battery hungry, but it certainly wasn’t starting as quickly as windows 7 was when I reinstalled it. I’m that’s my dev machine machine so aside from a few ide it doesn’t have much on it. Maybe if it were loaded up with stuff it would be a different story.