Very slow system boot with Ubuntu MATE 20.04

Hi @Philippe

Here are the details:

smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.4.0-42-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Samsung SpinPoint M8 (AF)
Device Model:     ST500LM012 HN-M500MBB
Serial Number:    S2RSJ9EC508958
LU WWN Device Id: 5 0004cf 2077868c8
Firmware Version: 2AR10002
User Capacity:    500,107,862,016 bytes [500 GB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5400 rpm
Form Factor:      2.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS T13/1699-D revision 6
SATA Version is:  SATA 3.0, 3.0 Gb/s (current: 3.0 Gb/s)
Local Time is:    Sun Aug  9 17:03:57 2020 IST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART Enabled.

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00)	Offline data collection activity
					was never started.
					Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0)	The previous self-test routine completed
					without error or no self-test has ever 
					been run.
Total time to complete Offline 
data collection: 		( 6480) seconds.
Offline data collection
capabilities: 			 (0x5b) SMART execute Offline immediate.
					Auto Offline data collection on/off support.
					Suspend Offline collection upon new
					command.
					Offline surface scan supported.
					Self-test supported.
					No Conveyance Self-test supported.
					Selective Self-test supported.
SMART capabilities:            (0x0003)	Saves SMART data before entering
					power-saving mode.
					Supports SMART auto save timer.
Error logging capability:        (0x01)	Error logging supported.
					General Purpose Logging supported.
Short self-test routine 
recommended polling time: 	 (   2) minutes.
Extended self-test routine
recommended polling time: 	 ( 108) minutes.
SCT capabilities: 	       (0x003f)	SCT Status supported.
					SCT Error Recovery Control supported.
					SCT Feature Control supported.
					SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x002f   100   100   051    Pre-fail  Always       -       12041
  2 Throughput_Performance  0x0026   048   048   000    Old_age   Always       -       6866
  3 Spin_Up_Time            0x0023   091   091   025    Pre-fail  Always       -       2863
  4 Start_Stop_Count        0x0032   001   001   000    Old_age   Always       -       121255
  5 Reallocated_Sector_Ct   0x0033   252   252   010    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x002e   252   252   051    Old_age   Always       -       0
  8 Seek_Time_Performance   0x0024   252   252   015    Old_age   Offline      -       0
  9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       14090
 10 Spin_Retry_Count        0x0032   252   252   051    Old_age   Always       -       0
 11 Calibration_Retry_Count 0x0032   100   100   000    Old_age   Always       -       510
 12 Power_Cycle_Count       0x0032   094   094   000    Old_age   Always       -       6107
191 G-Sense_Error_Rate      0x0022   100   100   000    Old_age   Always       -       217
192 Power-Off_Retract_Count 0x0022   252   252   000    Old_age   Always       -       0
194 Temperature_Celsius     0x0002   053   035   000    Old_age   Always       -       47 (Min/Max 19/65)
195 Hardware_ECC_Recovered  0x003a   100   100   000    Old_age   Always       -       0
196 Reallocated_Event_Count 0x0032   252   252   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0032   252   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0030   252   252   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x0036   100   100   000    Old_age   Always       -       1
200 Multi_Zone_Error_Rate   0x002a   100   100   000    Old_age   Always       -       13367
223 Load_Retry_Count        0x0032   100   100   000    Old_age   Always       -       510
225 Load_Cycle_Count        0x0032   074   074   000    Old_age   Always       -       267909

SMART Error Log Version: 1
ATA Error Count: 1
	CR = Command Register [HEX]
	FR = Features Register [HEX]
	SC = Sector Count Register [HEX]
	SN = Sector Number Register [HEX]
	CL = Cylinder Low Register [HEX]
	CH = Cylinder High Register [HEX]
	DH = Device/Head Register [HEX]
	DC = Device Command Register [HEX]
	ER = Error register [HEX]
	ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.

Error 1 occurred at disk power-on lifetime: 13274 hours (553 days + 2 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 01 18 4a 00 e0  Error: UNC 1 sectors at LBA = 0x00004a18 = 18968

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  c8 00 01 18 4a 00 e0 00      00:00:00.006  READ DMA
  c8 00 01 c0 49 00 e0 00      00:00:00.006  READ DMA
  c8 00 01 c0 49 00 e0 00      00:00:00.005  READ DMA
  c8 00 40 c0 4f 00 e0 00      00:00:00.005  READ DMA
  c8 00 40 c0 12 01 e0 00      00:00:00.005  READ DMA

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Extended offline    Completed without error       00%     14053         -
# 2  Short offline       Completed: read failure       90%     14032         103096
# 3  Extended offline    Completed: read failure       90%     14017         103096
# 4  Short offline       Completed: read failure       70%     14016         103096
# 5  Short offline       Completed: read failure       90%     14016         103096
# 6  Short offline       Completed: read failure       90%     14016         103096
# 7  Short offline       Completed: read failure       90%     13989         103096
# 8  Short offline       Completed: read failure       90%     13989         103096
# 9  Short offline       Completed: read failure       90%     13989         103096
8 of 8 failed self-tests are outdated by newer successful extended offline self-test # 1

SMART Selective self-test log data structure revision number 0
Note: revision number not 1 implies that no selective self-test has ever been run
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Completed [00% left] (0-65535)
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

sda 8:0 0 465.8G 0 disk

Thanks!

Got it! The value 12041 is high, indicating that the hard drive is failing. I recommend changing it. Choose an SSD to increase the performance of the computer.

1 Like

Thank you for the observation, and I do agree with you that the HDD is getting old by the day and I'm considering back-up solutions. Interestingly, on UM 18.04 the HDD LED indicator hardly remained solid and there were moments of flickering during intense disk activity, however, with UM 20.04 I see that the HDD LED indicator remains solid most of the times, and it is then that the system freezes.

Here's the current data for sudo smartctl -s on -a /dev/sda on the same parameter -

ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x002f   100   100   051    Pre-fail  Always       -       12208

However, I also have some more insights to share with you. A few days ago I changed the swap file size from 2GB to 8GB and it led to some subtle improvements in the system performance even though I doubt it has any impact on the boot time, but I could be wrong.

Since yesterday, I was pleasantly surprised to see that the boot time has reduced significantly, and apart from a few system updates no other changes were made to the system, and here's some data from dmesg and systemd-analyze :

dmesg

[    0.409733] input: Power Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input1
[    0.409773] ACPI: Power Button [PWRB]
[    0.409809] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input2
[    0.409835] ACPI: Power Button [PWRF]
[    0.412267] thermal LNXTHERM:00: registered as thermal_zone0
[    0.412269] ACPI: Thermal Zone [TZ00] (68 C)
[    0.412643] thermal LNXTHERM:01: registered as thermal_zone1
[    0.412645] ACPI: Thermal Zone [TZ01] (30 C)
[    0.412904] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled
[    0.416568] Linux agpgart interface v0.103
[    0.418791] battery: ACPI: Battery Slot [BAT1] (battery present)
[    0.419808] loop: module loaded
[    0.420035] libphy: Fixed MDIO Bus: probed
[    0.420036] tun: Universal TUN/TAP device driver, 1.6
[    0.420064] PPP generic driver version 2.4.2
[    0.420121] VFIO - User Level meta-driver version: 0.3
[    0.420198] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.420201] ehci-pci: EHCI PCI platform driver
[    0.420362] ehci-pci 0000:00:1a.0: EHCI Host Controller
[    0.420370] ehci-pci 0000:00:1a.0: new USB bus registered, assigned bus number 1
[    0.420385] ehci-pci 0000:00:1a.0: debug port 2
[    0.424294] ehci-pci 0000:00:1a.0: cache line size of 64 is not supported
[    0.424309] ehci-pci 0000:00:1a.0: irq 16, io mem 0xf070a000
[    0.438670] ehci-pci 0000:00:1a.0: USB 2.0 started, EHCI 1.00
[    0.438804] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[    0.438806] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.438807] usb usb1: Product: EHCI Host Controller
[    0.438809] usb usb1: Manufacturer: Linux 5.4.0-42-generic ehci_hcd
[    0.438810] usb usb1: SerialNumber: 0000:00:1a.0
[    0.439034] hub 1-0:1.0: USB hub found
[    0.439043] hub 1-0:1.0: 3 ports detected
[    0.439357] ehci-pci 0000:00:1d.0: EHCI Host Controller
[    0.439362] ehci-pci 0000:00:1d.0: new USB bus registered, assigned bus number 2
[    0.439376] ehci-pci 0000:00:1d.0: debug port 2
[    0.443273] ehci-pci 0000:00:1d.0: cache line size of 64 is not supported
[    0.443288] ehci-pci 0000:00:1d.0: irq 23, io mem 0xf0709000
[    0.458670] ehci-pci 0000:00:1d.0: USB 2.0 started, EHCI 1.00
[    0.458780] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[    0.458782] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.458784] usb usb2: Product: EHCI Host Controller
[    0.458785] usb usb2: Manufacturer: Linux 5.4.0-42-generic ehci_hcd
[    0.458786] usb usb2: SerialNumber: 0000:00:1d.0
[    0.459010] hub 2-0:1.0: USB hub found
[    0.459019] hub 2-0:1.0: 3 ports detected
[    0.459177] ehci-platform: EHCI generic platform driver
[    0.459196] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.459201] ohci-pci: OHCI PCI platform driver
[    0.459210] ohci-platform: OHCI generic platform driver
[    0.459218] uhci_hcd: USB Universal Host Controller Interface driver
[    0.459279] i8042: PNP: PS/2 Controller [PNP0303:PS2K,PNP0f13:EPAD] at 0x60,0x64 irq 1,12
[    0.462099] serio: i8042 KBD port at 0x60,0x64 irq 1
[    0.462104] serio: i8042 AUX port at 0x60,0x64 irq 12
[    0.462248] mousedev: PS/2 mouse device common for all mice
[    0.462584] rtc_cmos 00:01: registered as rtc0
[    0.462601] rtc_cmos 00:01: alarms up to one month, y3k, 242 bytes nvram, hpet irqs
[    0.462607] i2c /dev entries driver
[    0.462653] device-mapper: uevent: version 1.0.3
[    0.462714] device-mapper: ioctl: 4.41.0-ioctl (2019-09-16) initialised: [email protected]
[    0.462734] platform eisa.0: Probing EISA bus 0
[    0.462735] platform eisa.0: EISA: Cannot allocate resource for mainboard
[    0.462737] platform eisa.0: Cannot allocate resource for EISA slot 1
[    0.462738] platform eisa.0: Cannot allocate resource for EISA slot 2
[    0.462739] platform eisa.0: Cannot allocate resource for EISA slot 3
[    0.462740] platform eisa.0: Cannot allocate resource for EISA slot 4
[    0.462741] platform eisa.0: Cannot allocate resource for EISA slot 5
[    0.462742] platform eisa.0: Cannot allocate resource for EISA slot 6
[    0.462744] platform eisa.0: Cannot allocate resource for EISA slot 7
[    0.462745] platform eisa.0: Cannot allocate resource for EISA slot 8
[    0.462746] platform eisa.0: EISA: Detected 0 cards
[    0.462751] intel_pstate: Intel P-state driver initializing
[    0.462906] ledtrig-cpu: registered to indicate activity on CPUs
[    0.462971] drop_monitor: Initializing network drop monitor service
[    0.463150] NET: Registered protocol family 10
[    0.473190] Segment Routing with IPv6
[    0.473223] NET: Registered protocol family 17
[    0.473272] Key type dns_resolver registered
[    0.473548] RAS: Correctable Errors collector initialized.
[    0.473589] microcode: sig=0x206a7, pf=0x10, revision=0x2f
[    0.473634] microcode: Microcode Update Driver: v2.2.
[    0.473639] IPI shorthand broadcast: enabled
[    0.473646] sched_clock: Marking stable (473402903, 227179)->(480095288, -6465206)
[    0.473721] registered taskstats version 1
[    0.473730] Loading compiled-in X.509 certificates
[    0.476360] Loaded X.509 cert 'Build time autogenerated kernel key: 9e1aeb581c5145b0cc48f50fdf6e09edec23120f'
[    0.476398] zswap: loaded using pool lzo/zbud
[    0.476487] Key type ._fscrypt registered
[    0.476487] Key type .fscrypt registered
[    0.485866] Key type big_key registered
[    0.490587] Key type encrypted registered
[    0.490592] AppArmor: AppArmor sha1 policy hashing enabled
[    0.490599] ima: No TPM chip found, activating TPM-bypass!
[    0.490606] ima: Allocated hash algorithm: sha1
[    0.490614] ima: No architecture policies found
[    0.490628] evm: Initialising EVM extended attributes:
[    0.490628] evm: security.selinux
[    0.490629] evm: security.SMACK64
[    0.490630] evm: security.SMACK64EXEC
[    0.490630] evm: security.SMACK64TRANSMUTE
[    0.490631] evm: security.SMACK64MMAP
[    0.490631] evm: security.apparmor
[    0.490632] evm: security.ima
[    0.490632] evm: security.capability
[    0.490633] evm: HMAC attrs: 0x1
[    0.491029] PM:   Magic number: 0:188:481
[    0.491160] rtc_cmos 00:01: setting system clock to 2020-08-13T12:27:56 UTC (1597321676)
[    0.492551] Freeing unused decrypted memory: 2040K
[    0.493007] Freeing unused kernel image memory: 2712K
[    0.496328] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input3
[    0.522778] Write protecting the kernel read-only data: 22528k
[    0.523344] Freeing unused kernel image memory: 2008K
[    0.523610] Freeing unused kernel image memory: 1192K
[    0.535705] x86/mm: Checked W+X mappings: passed, no W+X pages found.
[    0.535706] x86/mm: Checking user space page tables
[    0.547471] x86/mm: Checked W+X mappings: passed, no W+X pages found.
[    0.547473] Run /init as init process
[    0.680037] ACPI Warning: SystemIO range 0x0000000000000428-0x000000000000042F conflicts with OpRegion 0x0000000000000400-0x000000000000047F (\PMIO) (20190816/utaddress-204)
[    0.680046] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[    0.680049] ACPI Warning: SystemIO range 0x0000000000000540-0x000000000000054F conflicts with OpRegion 0x0000000000000500-0x0000000000000563 (\GPIO) (20190816/utaddress-204)
[    0.680055] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[    0.680056] ACPI Warning: SystemIO range 0x0000000000000530-0x000000000000053F conflicts with OpRegion 0x0000000000000500-0x0000000000000563 (\GPIO) (20190816/utaddress-204)
[    0.680061] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[    0.680062] ACPI Warning: SystemIO range 0x0000000000000500-0x000000000000052F conflicts with OpRegion 0x0000000000000500-0x0000000000000563 (\GPIO) (20190816/utaddress-204)
[    0.680067] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver
[    0.680068] lpc_ich: Resource conflict(s) found affecting gpio_ich
[    0.682729] i801_smbus 0000:00:1f.3: SMBus using PCI interrupt
[    0.687368] ahci 0000:00:1f.2: version 3.0
[    0.689469] r8169 0000:02:00.0: can't disable ASPM; OS doesn't have ASPM control
[    0.693404] libphy: r8169: probed
[    0.693766] r8169 0000:02:00.0 eth0: RTL8168evl/8111evl, 24:f5:aa:c4:cc:2f, XID 2c9, IRQ 27
[    0.693769] r8169 0000:02:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
[    0.698590] ahci 0000:00:1f.2: AHCI 0001.0300 32 slots 6 ports 3 Gbps 0x5 impl SATA mode
[    0.698594] ahci 0000:00:1f.2: flags: 64bit ncq pm led clo pio slum part ems apst 
[    0.714722] scsi host0: ahci
[    0.717436] scsi host1: ahci
[    0.717793] scsi host2: ahci
[    0.717918] scsi host3: ahci
[    0.718351] scsi host4: ahci
[    0.719068] scsi host5: ahci
[    0.719162] ata1: SATA max UDMA/133 abar m2048@0xf0708000 port 0xf0708100 irq 26
[    0.719163] ata2: DUMMY
[    0.719166] ata3: SATA max UDMA/133 abar m2048@0xf0708000 port 0xf0708200 irq 26
[    0.719167] ata4: DUMMY
[    0.719168] ata5: DUMMY
[    0.719169] ata6: DUMMY
[    0.726680] cryptd: max_cpu_qlen set to 1000
[    0.732078] r8169 0000:02:00.0 enp2s0: renamed from eth0
[    0.778682] usb 1-1: new high-speed USB device number 2 using ehci-pci
[    0.794580] usb 2-1: new high-speed USB device number 2 using ehci-pci
[    0.818076] checking generic (e0000000 410000) vs hw (e0000000 10000000)
[    0.818078] fb0: switching to inteldrmfb from VESA VGA
[    0.818142] i915 0000:00:02.0: vgaarb: deactivate vga console
[    0.826618] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    0.826622] [drm] Driver supports precise vblank timestamp query.
[    0.831585] i915 0000:00:02.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=io+mem:owns=io+mem
[    0.912667] [drm] Initialized i915 1.6.0 20190822 for 0000:00:02.0 on minor 0
[    0.913639] ACPI: Video Device [GFX0] (multi-head: yes  rom: no  post: no)
[    0.913974] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input6
[    0.939086] usb 1-1: New USB device found, idVendor=8087, idProduct=0024, bcdDevice= 0.00
[    0.939088] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    0.939380] hub 1-1:1.0: USB hub found
[    0.939466] hub 1-1:1.0: 6 ports detected
[    0.946753] fbcon: i915drmfb (fb0) is primary device
[    0.946754] fbcon: Deferring console take-over
[    0.946756] i915 0000:00:02.0: fb0: i915drmfb frame buffer device
[    0.951374] usb 2-1: New USB device found, idVendor=8087, idProduct=0024, bcdDevice= 0.00
[    0.951376] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    0.951862] hub 2-1:1.0: USB hub found
[    0.951965] hub 2-1:1.0: 6 ports detected
[    1.034632] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    1.038631] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[    1.040821] ata3.00: ATAPI: TSSTcorp CDDVDW SN-208BB, SC00, max UDMA/100
[    1.040947] ata1.00: ATA-8: ST500LM012 HN-M500MBB, 2AR10002, max UDMA/133
[    1.040953] ata1.00: 976773168 sectors, multi 16: LBA48 NCQ (depth 32), AA
[    1.042544] ata3.00: configured for UDMA/100
[    1.047271] ata1.00: configured for UDMA/133
[    1.047517] scsi 0:0:0:0: Direct-Access     ATA      ST500LM012 HN-M5 0002 PQ: 0 ANSI: 5
[    1.047816] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    1.047869] sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[    1.047871] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    1.047895] sd 0:0:0:0: [sda] Write Protect is off
[    1.047898] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    1.047933] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    1.052229] scsi 2:0:0:0: CD-ROM            TSSTcorp CDDVDW SN-208BB  SC00 PQ: 0 ANSI: 5
[    1.090805]  sda: sda1
[    1.091337] sd 0:0:0:0: [sda] Attached SCSI disk
[    1.134136] sr 2:0:0:0: [sr0] scsi3-mmc drive: 24x/24x writer dvd-ram cd/rw xa/form2 cdda tray
[    1.134142] cdrom: Uniform CD-ROM driver Revision: 3.20
[    1.150978] sr 2:0:0:0: Attached scsi CD-ROM sr0
[    1.151081] sr 2:0:0:0: Attached scsi generic sg1 type 5
[    1.230667] usb 1-1.4: new high-speed USB device number 3 using ehci-pci
[    1.238591] usb 2-1.1: new full-speed USB device number 3 using ehci-pci
[    1.351444] random: fast init done
[    1.355091] usb 2-1.1: New USB device found, idVendor=046d, idProduct=c534, bcdDevice=29.01
[    1.355093] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    1.355095] usb 2-1.1: Product: USB Receiver
[    1.355096] usb 2-1.1: Manufacturer: Logitech
[    1.355319] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    1.355329] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    1.355349] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    1.357530] usb 1-1.4: New USB device found, idVendor=0ac8, idProduct=c349, bcdDevice= 0.15
[    1.357533] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    1.357536] usb 1-1.4: Product: WebCam SC-03FFL11739P
[    1.357538] usb 1-1.4: Manufacturer: Vimicro Corp.
[    1.361067] hidraw: raw HID events driver (C) Jiri Kosina
[    1.366621] usbcore: registered new interface driver usbhid
[    1.366623] usbhid: USB HID core driver
[    1.369707] input: Logitech USB Receiver as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.0/0003:046D:C534.0001/input/input7
[    1.406644] tsc: Refined TSC clocksource calibration: 2394.564 MHz
[    1.406666] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x2284284d7d9, max_idle_ns: 440795247978 ns
[    1.406712] clocksource: Switched to clocksource tsc
[    1.426824] hid-generic 0003:046D:C534.0001: input,hidraw0: USB HID v1.11 Keyboard [Logitech USB Receiver] on usb-0000:00:1d.0-1.1/input0
[    1.427119] input: Logitech USB Receiver Mouse as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.1/0003:046D:C534.0002/input/input8
[    1.427232] input: Logitech USB Receiver Consumer Control as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.1/0003:046D:C534.0002/input/input9
[    1.438569] usb 2-1.4: new full-speed USB device number 4 using ehci-pci
[    1.486849] input: Logitech USB Receiver System Control as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.1/0003:046D:C534.0002/input/input10
[    1.486983] hid-generic 0003:046D:C534.0002: input,hiddev0,hidraw1: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-0000:00:1d.0-1.1/input1
[    1.550003] usb 2-1.4: New USB device found, idVendor=0cf3, idProduct=3004, bcdDevice= 0.01
[    1.550005] usb 2-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    1.550007] usb 2-1.4: Product: Bluetooth USB Host Controller
[    1.550008] usb 2-1.4: Manufacturer: Atheros Communications
[    1.550009] usb 2-1.4: SerialNumber: Alaska Day 2006
[    1.563161] logitech-djreceiver 0003:046D:C534.0001: hidraw0: USB HID v1.11 Keyboard [Logitech USB Receiver] on usb-0000:00:1d.0-1.1/input0
[    1.643149] psmouse serio1: elantech: assuming hardware version 3 (with firmware version 0x350f00)
[    1.658500] psmouse serio1: elantech: Synaptics capabilities query result 0x08, 0x17, 0x0c.
[    1.674326] psmouse serio1: elantech: Elan sample query result 01, 22, 85
[    1.743231] logitech-djreceiver 0003:046D:C534.0002: hiddev0,hidraw1: USB HID v1.11 Mouse [Logitech USB Receiver] on usb-0000:00:1d.0-1.1/input1
[    1.752642] input: ETPS/2 Elantech Touchpad as /devices/platform/i8042/serio1/input/input5
[    1.804521] logitech-djreceiver 0003:046D:C534.0002: device of type eQUAD nano Lite (0x0a) connected on slot 1
[    1.806499] input: Logitech Wireless Keyboard PID:4023 Keyboard as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.1/0003:046D:C534.0002/0003:046D:4023.0003/input/input13
[    1.806516] logitech-djreceiver 0003:046D:C534.0002: device of type eQUAD nano Lite (0x0a) connected on slot 2
[    1.806798] input: Logitech Wireless Keyboard PID:4023 Consumer Control as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.1/0003:046D:C534.0002/0003:046D:4023.0003/input/input14
[    1.807053] input: Logitech Wireless Keyboard PID:4023 System Control as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.1/0003:046D:C534.0002/0003:046D:4023.0003/input/input15
[    1.807614] hid-generic 0003:046D:4023.0003: input,hidraw2: USB HID v1.11 Keyboard [Logitech Wireless Keyboard PID:4023] on usb-0000:00:1d.0-1.1/input1:1
[    1.807891] input: Logitech Wireless Mouse PID:4054 Mouse as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.1/0003:046D:C534.0002/0003:046D:4054.0004/input/input20
[    1.808521] hid-generic 0003:046D:4054.0004: input,hidraw3: USB HID v1.11 Mouse [Logitech Wireless Mouse PID:4054] on usb-0000:00:1d.0-1.1/input1:2
[    1.956961] input: Logitech Wireless Keyboard PID:4023 as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.1/0003:046D:C534.0002/0003:046D:4023.0003/input/input24
[    1.957150] logitech-hidpp-device 0003:046D:4023.0003: input,hidraw2: USB HID v1.11 Keyboard [Logitech Wireless Keyboard PID:4023] on usb-0000:00:1d.0-1.1/input1:1
[    1.996852] input: Logitech Wireless Mouse as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.1/0003:046D:C534.0002/0003:046D:4054.0004/input/input25
[    1.997082] logitech-hidpp-device 0003:046D:4054.0004: input,hidraw3: USB HID v1.11 Mouse [Logitech Wireless Mouse] on usb-0000:00:1d.0-1.1/input1:2
[    2.560056] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[    4.863933] random: crng init done
[    4.863939] random: 7 urandom warning(s) missed due to ratelimiting
[    5.419890] systemd[1]: Inserted module 'autofs4'
[    5.664713] systemd[1]: systemd 245.4-4ubuntu3.2 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=hybrid)
[    5.682826] systemd[1]: Detected architecture x86-64.
[    5.726356] systemd[1]: Set hostname to <saptarshi-300E4C-300E5C-300E7C>.
[    8.776070] systemd[1]: /lib/systemd/system/dbus.socket:5: ListenStream= references a path below legacy directory /var/run/, updating /var/run/dbus/system_bus_socket → /run/dbus/system_bus_socket; please update the unit file accordingly.
[    9.773695] systemd[1]: Created slice system-modprobe.slice.
[    9.773966] systemd[1]: Created slice User and Session Slice.
[    9.774046] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    9.774298] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[    9.774342] systemd[1]: Reached target User and Group Name Lookups.
[    9.774357] systemd[1]: Reached target Remote File Systems.
[    9.774373] systemd[1]: Reached target Slices.
[    9.774536] systemd[1]: Listening on Syslog Socket.
[    9.774666] systemd[1]: Listening on fsck to fsckd communication Socket.
[    9.774733] systemd[1]: Listening on initctl Compatibility Named Pipe.
[    9.774952] systemd[1]: Listening on Journal Audit Socket.
[    9.775049] systemd[1]: Listening on Journal Socket (/dev/log).
[    9.775178] systemd[1]: Listening on Journal Socket.
[    9.775301] systemd[1]: Listening on udev Control Socket.
[    9.775401] systemd[1]: Listening on udev Kernel Socket.
[    9.776429] systemd[1]: Mounting Huge Pages File System...
[    9.777633] systemd[1]: Mounting POSIX Message Queue File System...
[    9.779353] systemd[1]: Mounting Kernel Debug File System...
[    9.780477] systemd[1]: Mounting Kernel Trace File System...
[    9.782162] systemd[1]: Starting Journal Service...
[    9.783431] systemd[1]: Starting Set the console keyboard layout...
[    9.784675] systemd[1]: Starting Create list of static device nodes for the current kernel...
[    9.784785] systemd[1]: Condition check resulted in Load Kernel Module drm being skipped.
[    9.839229] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped.
[    9.839287] systemd[1]: Condition check resulted in File System Check on Root Device being skipped.
[    9.958146] systemd[1]: Starting Load Kernel Modules...
[    9.959188] systemd[1]: Starting Remount Root and Kernel File Systems...
[    9.960299] systemd[1]: Starting udev Coldplug all Devices...
[    9.961404] systemd[1]: Starting Uncomplicated firewall...
[    9.964011] systemd[1]: Mounted Huge Pages File System.
[    9.964194] systemd[1]: Mounted POSIX Message Queue File System.
[    9.964345] systemd[1]: Mounted Kernel Debug File System.
[    9.964488] systemd[1]: Mounted Kernel Trace File System.
[    9.965014] systemd[1]: Finished Create list of static device nodes for the current kernel.
[   10.026883] systemd[1]: Started Journal Service.
[   10.195547] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[   10.811908] systemd-journald[374]: Received client request to flush runtime journal.
[   10.877237] lp: driver loaded but no devices found
[   11.273005] ppdev: user-space parallel port driver
[   11.390244] bpfilter: Loaded bpfilter_umh pid 402
[   11.390554] Started bpfilter
[   11.574605] Adding 8388604k swap on /swapfile.  Priority:-2 extents:44 across:18104316k FS
[   17.458913] audit: type=1400 audit(1597321693.463:2): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe" pid=502 comm="apparmor_parser"
[   17.458918] audit: type=1400 audit(1597321693.463:3): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe//kmod" pid=502 comm="apparmor_parser"
[   17.554157] audit: type=1400 audit(1597321693.555:4): apparmor="STATUS" operation="profile_load" profile="unconfined" name="lsb_release" pid=503 comm="apparmor_parser"
[   17.561838] audit: type=1400 audit(1597321693.563:5): apparmor="STATUS" operation="profile_load" profile="unconfined" name="ippusbxd" pid=505 comm="apparmor_parser"
[   18.033644] audit: type=1400 audit(1597321694.035:6): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/sbin/ntpd" pid=508 comm="apparmor_parser"
[   18.077372] audit: type=1400 audit(1597321694.079:7): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/cups/backend/cups-pdf" pid=504 comm="apparmor_parser"
[   18.077377] audit: type=1400 audit(1597321694.079:8): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/sbin/cupsd" pid=504 comm="apparmor_parser"
[   18.077379] audit: type=1400 audit(1597321694.079:9): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/sbin/cupsd//third_party" pid=504 comm="apparmor_parser"
[   18.117509] audit: type=1400 audit(1597321694.119:10): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/snapd/snap-confine" pid=507 comm="apparmor_parser"
[   18.117513] audit: type=1400 audit(1597321694.119:11): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/snapd/snap-confine//mount-namespace-capture-helper" pid=507 comm="apparmor_parser"
[   22.454872] RAPL PMU: API unit is 2^-32 Joules, 3 fixed counters, 163840 ms ovfl timer
[   22.454875] RAPL PMU: hw unit of domain pp0-core 2^-16 Joules
[   22.454876] RAPL PMU: hw unit of domain package 2^-16 Joules
[   22.454877] RAPL PMU: hw unit of domain pp1-gpu 2^-16 Joules
[   23.960028] samsung_laptop: detected SABI interface: SwSmi@
[   24.520747] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[   24.524961] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[   25.223843] ath: phy0: Set BT/WLAN RX diversity capability
[   25.231351] ath: phy0: ASPM enabled: 0x42
[   25.231355] ath: EEPROM regdomain: 0x65
[   25.231356] ath: EEPROM indicates we should expect a direct regpair map
[   25.231358] ath: Country alpha2 being used: 00
[   25.231359] ath: Regpair used: 0x65
[   25.232244] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   25.232739] ieee80211 phy0: Atheros AR9485 Rev:1 mem=0xffffb7c040a80000, irq=16
[   25.688368] ath9k 0000:01:00.0 wlp1s0: renamed from wlan0
[   27.311239] intel_rapl_common: Found RAPL domain package
[   27.311241] intel_rapl_common: Found RAPL domain core
[   27.311243] intel_rapl_common: Found RAPL domain uncore
[   27.311249] intel_rapl_common: RAPL package-0 domain package locked by BIOS
[   27.839789] snd_hda_intel 0000:00:1b.0: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[   28.623492] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC269VC: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
[   28.623496] snd_hda_codec_realtek hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[   28.623498] snd_hda_codec_realtek hdaudioC0D0:    hp_outs=1 (0x15/0x0/0x0/0x0/0x0)
[   28.623500] snd_hda_codec_realtek hdaudioC0D0:    mono: mono_out=0x0
[   28.623502] snd_hda_codec_realtek hdaudioC0D0:    inputs:
[   28.623504] snd_hda_codec_realtek hdaudioC0D0:      Internal Mic=0x19
[   28.623506] snd_hda_codec_realtek hdaudioC0D0:      Mic=0x18
[   28.744215] input: HDA Intel PCH Mic as /devices/pci0000:00/0000:00:1b.0/sound/card0/input26
[   28.744479] input: HDA Intel PCH Headphone as /devices/pci0000:00/0000:00:1b.0/sound/card0/input27
[   28.744723] input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1b.0/sound/card0/input28
[   35.012243] Bluetooth: Core ver 2.22
[   35.012272] NET: Registered protocol family 31
[   35.012274] Bluetooth: HCI device and connection manager initialized
[   35.012278] Bluetooth: HCI socket layer initialized
[   35.012281] Bluetooth: L2CAP socket layer initialized
[   35.012286] Bluetooth: SCO socket layer initialized
[   35.491496] usbcore: registered new interface driver btusb
[   37.413521] usbcore: registered new interface driver ath3k
[   37.564351] usb 2-1.4: USB disconnect, device number 4
[   37.790686] usb 2-1.4: new full-speed USB device number 5 using ehci-pci
[   39.133119] mc: Linux media interface: v0.10
[   39.505314] videodev: Linux video capture interface: v2.00
[   43.156696] usb 2-1.4: New USB device found, idVendor=0cf3, idProduct=3004, bcdDevice= 0.02
[   43.156704] usb 2-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   43.156709] usb 2-1.4: Product: Bluetooth USB Host Controller
[   43.156712] usb 2-1.4: Manufacturer: Atheros Communications
[   43.156716] usb 2-1.4: SerialNumber: Alaska Day 2006
[   43.511546] uvcvideo: Found UVC 1.00 device WebCam SC-03FFL11739P (0ac8:c349)
[   43.519312] uvcvideo 1-1.4:1.0: Entity type for entity Processing 2 was not initialized!
[   43.519320] uvcvideo 1-1.4:1.0: Entity type for entity Camera 1 was not initialized!
[   43.519326] uvcvideo 1-1.4:1.0: Entity type for entity Extension 4 was not initialized!
[   43.519556] input: WebCam SC-03FFL11739P: WebCam S as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.4/1-1.4:1.0/input/input29
[   43.519859] usbcore: registered new interface driver uvcvideo
[   43.519862] USB Video Class driver (1.1.1)
[   48.962736] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   48.962738] Bluetooth: BNEP filters: protocol multicast
[   48.962744] Bluetooth: BNEP socket layer initialized
[   50.194855] NET: Registered protocol family 38
[   59.879795] RTL8211E Gigabit Ethernet r8169-200:00: attached PHY driver [RTL8211E Gigabit Ethernet] (mii_bus:phy_addr=r8169-200:00, irq=IGNORE)
[   60.056074] r8169 0000:02:00.0 enp2s0: Link is Down
[   61.932385] kauditd_printk_skb: 37 callbacks suppressed
[   61.932387] audit: type=1400 audit(1597321737.935:49): apparmor="DENIED" operation="capable" profile="/usr/sbin/cups-browsed" pid=1189 comm="cups-browsed" capability=23  capname="sys_nice"
[   62.211974] wlp1s0: authenticate with a4:2b:8c:f3:bf:42
[   62.226520] wlp1s0: send auth to a4:2b:8c:f3:bf:42 (try 1/3)
[   62.228559] wlp1s0: authenticated
[   62.230602] wlp1s0: associate with a4:2b:8c:f3:bf:42 (try 1/3)
[   62.235212] wlp1s0: RX AssocResp from a4:2b:8c:f3:bf:42 (capab=0x431 status=0 aid=2)
[   62.235364] wlp1s0: associated
[   62.513267] IPv6: ADDRCONF(NETDEV_CHANGE): wlp1s0: link becomes ready
[   80.432317] [UFW BLOCK] IN=wlp1s0 OUT= MAC=e8:03:9a:c3:b0:fd:a4:2b:8c:f3:bf:42:08:00 SRC=0.0.0.0 DST=224.0.0.1 LEN=32 TOS=0x00 PREC=0xC0 TTL=1 ID=0 DF PROTO=2 
[   95.282137] Bluetooth: RFCOMM TTY layer initialized
[   95.282151] Bluetooth: RFCOMM socket layer initialized
[   95.282165] Bluetooth: RFCOMM ver 1.11
[  173.717099] logitech-hidpp-device 0003:046D:4054.0004: HID++ 4.5 device connected.

[cont...d]

[cont...d]

systemd-analyze

Startup finished in 4.894s (kernel) + 1min 28.762s (userspace) = 1min 33.656s 
graphical.target reached after 1min 28.235s in userspace

systemd-analyze blame

32.056s snapd.service                                      
31.810s dev-sda1.device                                    
28.714s udisks2.service                                    
22.096s networkd-dispatcher.service                        
20.195s ModemManager.service                               
18.700s nmbd.service                                       
18.492s accounts-daemon.service                            
18.311s systemd-journal-flush.service                      
18.070s NetworkManager-wait-online.service                 
16.678s apport-autoreport.service                          
14.964s dev-loop0.device                                   
13.574s polkit.service                                     
13.112s NetworkManager.service                             
12.927s avahi-daemon.service                               
11.675s dev-loop8.device                                   
11.627s dev-loop4.device                                   
11.606s dev-loop12.device                                  
11.353s thermald.service                                   
11.348s systemd-logind.service                             
11.346s wpa_supplicant.service                             
11.015s dev-loop9.device                                   
10.928s dev-loop11.device                                  
10.895s smartmontools.service                              
10.642s dev-loop3.device                                   
 9.648s dev-loop7.device                                   
 9.622s gpu-manager.service                                
 9.445s systemd-resolved.service                           
 9.437s dev-loop10.device                                  
 9.390s grub-initrd-fallback.service                       
 8.610s grub-common.service                                
 8.530s dev-loop1.device                                   
 8.415s dev-loop6.device                                   
 8.266s dev-loop2.device                                   
lines 1-33

systemd-analyze critical-chain The time when unit became active or started is printed after the "@" character. The time the unit took to start is printed after the "+" character.

graphical.target @1min 28.235s
└─multi-user.target @1min 28.235s
  └─smbd.service @1min 20.123s +8.110s
    └─nmbd.service @1min 1.420s +18.700s
      └─network-online.target @1min 1.170s
        └─NetworkManager-wait-online.service @43.099s +18.070s
          └─NetworkManager.service @29.984s +13.112s
            └─dbus.service @29.976s
              └─basic.target @29.816s
                └─sockets.target @29.816s
                  └─snapd.socket @29.808s +4ms
                    └─sysinit.target @29.109s
                      └─systemd-timesyncd.service @27.429s +1.678s
                        └─systemd-tmpfiles-setup.service @24.096s +3.328s
                          └─systemd-journal-flush.service @5.783s +18.311s
                            └─systemd-remount-fs.service @5.064s +238ms
                              └─systemd-journald.socket @4.880s
                                └─-.mount @4.847s
                                  └─system.slice @4.847s
                                    └─-.slice @4.847s

All of this data are from a cold boot.

@SRoyPC: Well done to have investigated more! The swap performance is depend of the performance and the health of the internal drive. While waiting for replace the drive, you can maybe disable the swap. Let me see. Can you show us:

sudo apt install inxi -y && inxi -Fxz # all specs of the machine
swapon -s
cat /proc/sys/vm/swappiness
Reading package lists... Done
Building dependency tree       
Reading state information... Done
inxi is already the newest version (3.0.38-1-0ubuntu1).
0 to upgrade, 0 to newly install, 0 to remove and 11 not to upgrade.
System:    Kernel: 5.4.0-42-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: MATE 1.24.0 
           Distro: Ubuntu 20.04.1 LTS (Focal Fossa) 
Machine:   Type: Laptop System: SAMSUNG product: 300E4C/300E5C/300E7C v: 0.1 serial: <filter> 
           Mobo: SAMSUNG model: SAMSUNG_NP1234567890 v: FAB1 serial: <filter> UEFI [Legacy]: Phoenix v: P07RAC 
           date: 02/20/2013 
Battery:   ID-1: BAT1 charge: 14.4 Wh condition: 26.6/48.8 Wh (55%) model: SAMSUNG Electronics status: Discharging 
CPU:       Topology: Dual Core model: Intel Core i3-2370M bits: 64 type: MT MCP arch: Sandy Bridge rev: 7 L2 cache: 3072 KiB 
           flags: avx lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 19157 
           Speed: 798 MHz min/max: 800/2400 MHz Core speeds (MHz): 1: 800 2: 804 3: 854 4: 798 
Graphics:  Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics 
           vendor: Samsung Co HD 3000 on NP300E5C series laptop driver: i915 v: kernel bus ID: 00:02.0 
           Display: x11 server: X.Org 1.20.8 driver: modesetting unloaded: fbdev,vesa resolution: 1366x768~60Hz 
           OpenGL: renderer: Mesa DRI Intel HD Graphics 3000 (SNB GT2) v: 3.3 Mesa 20.0.8 direct render: Yes 
Audio:     Device-1: Intel 7 Series/C216 Family High Definition Audio vendor: Samsung Co NP300E5C series laptop 
           driver: snd_hda_intel v: kernel bus ID: 00:1b.0 
           Sound Server: ALSA v: k5.4.0-42-generic 
Network:   Device-1: Qualcomm Atheros AR9485 Wireless Network Adapter vendor: Samsung Co driver: ath9k v: kernel port: efa0 
           bus ID: 01:00.0 
           IF: wlp1s0 state: up mac: <filter> 
           Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
           vendor: Samsung Co RTL8168 on a NP300E5C series laptop driver: r8169 v: kernel port: 2000 bus ID: 02:00.0 
           IF: enp2s0 state: down mac: <filter> 
           Device-3: Qualcomm Atheros AR3012 Bluetooth 4.0 type: USB driver: btusb bus ID: 2-1.4:7 
Drives:    Local Storage: total: 465.76 GiB used: 57.86 GiB (12.4%) 
           ID-1: /dev/sda vendor: Seagate model: ST500LM012 HN-M500MBB size: 465.76 GiB temp: 42 C 
Partition: ID-1: / size: 457.45 GiB used: 57.86 GiB (12.6%) fs: ext4 dev: /dev/sda1 
Sensors:   System Temperatures: cpu: 50.0 C mobo: 29.8 C 
           Fan Speeds (RPM): N/A 
Info:      Processes: 260 Uptime: 14h 09m Memory: 3.63 GiB used: 1.87 GiB (51.6%) Init: systemd runlevel: 5 Compilers: 
           gcc: 9.3.0 Shell: bash v: 5.0.17 inxi: 3.0.38
Filename				Type		Size	Used	Priority
/swapfile                              	file    	8388604	898760	-2

60

Thanks @Philippe

AT the moment, I'd prefer to keep the swap file because there's plenty of free space in the HDD.

As you prefer keep swap, and currently set to 60%, so I suggest you to set to 95%. Because your memory is used at 50%, near 60% which is the limit to use swap on your system. I mean, your swap is probably often used, so with a drive in not healthy well or slow, it's not very well. Issue this to set swap limit to 95% RAM usage (so 5% free) then reboot:
echo vm.swappiness=5 | sudo tee /etc/sysctl.conf

2 Likes

Thank you @Philippe and everyone else who helped me with this. :heart: