Is it possible to make Ubuntu 18.04 boot faster (with dual-boot with Windows)?

  boot, linux, ubuntu-18.04, windows

I am new to Ubuntu Linux and just installed version 18.04 on my computer alongside Windows in dual-boot mode. However, after three weeks, Linux started to be very slow, and it will even crash a few times a day when it is not able to run my code efficiently enough.

CPU specs, gotten with lscpu are the following:

Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              8
On-line CPU(s) list: 0-7
Thread(s) per core:  2
Core(s) per socket:  4
Socket(s):           1
NUMA node(s):        1
Vendor ID:           GenuineIntel
CPU family:          6
Model:               94
Model name:          Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
Stepping:            3
CPU MHz:             818.267
CPU max MHz:         3500,0000
CPU min MHz:         800,0000
BogoMIPS:            5199.98
Virtualization:      VT-x
L1d cache:           32K
L1i cache:           32K
L2 cache:            256K
L3 cache:            6144K
NUMA node0 CPU(s):   0-7
Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d

Computer make and model, gotten with the system information part of sudo dmidecode | less:

        System Information
        Manufacturer: HP
        Product Name: HP ZBook Studio G3
        Serial Number: CND6485KZZ
        UUID: CD87AE8C-BAC1-11E6-83D4-42B2BE0C2079
        Wake-up Type: Power Switch
        SKU Number: T7V83ES#ABH
        Family: 103C_5336AN

Things I tried so far are some of the solutions found on the following website: Such as: checking my CPU size (seems okay), examine CPU load with top (no process seems to be abusing my CPU usage) and check if my hard drive is overworking with iotop (it is not). Someone also suggested checking my bios version, which is the following:

N82 Ver. 01.45

I have no idea if this is the newest version, but I have googled a bit on updating my Bios version and with a dual-boot it seems like something that can go wrong easily. Since I do not have a lot of knowledge on this, I didn’t want to take the risk not knowing if this is even causing the problem.

Another thing I found on this forum ( is examining the system with systemd-analyze blame:

          19.606s apt-daily.service
          6.913s NetworkManager-wait-online.service
          4.019s plymouth-quit-wait.service
          3.163s apt-daily-upgrade.service
          2.258s bolt.service
          1.391s snap-gnomex2d3x2d34x2d1804-66.mount
          1.354s snap-onenotex2ddesktop-13.mount
          1.352s snap-gnomex2dcalculator-826.mount
          1.337s dev-sda7.device
          1.332s snap-gnomex2dcharacters-570.mount
          1.241s snap-dub-53.mount
          1.206s snap-gtkx2dcommonx2dthemes-1514.mount
          1.172s snap-snapd-11107.mount
          1.100s snap-gnomex2dcalculator-884.mount
          1.031s snap-gnomex2dsystemx2dmonitor-148.mount
          1.013s snap-gnomex2dlogs-103.mount
           993ms snapd.service
           971ms snap-core-10958.mount
           912ms snap-code-59.mount
           911ms dev-loop4.device
           878ms dev-loop5.device
           857ms fwupd.service
           835ms dev-loop2.device

It seems like the upper lines are taken up a lot of time, so maybe this is a cause of the problem. The final thing that should be noted is that my Ubuntu running slow is mainly caused when I am using Visual Studio Code for too long – when my Ubuntu has just started, it runs fine, but after a while it gets slower and slower. I checked again with the top command the CPU usage when running a code in Visual Studio Code and it seems like maybe this causes a problem: command cc1plus runs at 99-100% of CPU.

I am sorry for not stating a clear question or problem cause, but I do not have any idea what might be the problem. If anything else is needed I’ll provide it.

Source: Windows Questions