LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-18-2023, 12:13 PM   #1
christopherlinux
LQ Newbie
 
Registered: Jan 2023
Posts: 15

Rep: Reputation: 3
Very slow Linux


Hello,
I am running an Alienware Aurora R11 and am dual-booted on Windows and POP Os but I am running into issues with just my POP Os. Boot time is very slow (around 2 minutes), it takes around 2 minutes to open applications like chrome, vscode, docker (starting with systemctl), spotify. In addition, file transfer speeds are weirdly slow given that I am on an SSD, but I see around 13mbps transfer speeds when copying files on my SSD. I was wondering if anyone knew what could be causing this or how to fix it?

Other background information which may help:
- On Windows, my computer boots in seconds and applications open nearly instantly.
- After booting to Pop OS and then booting to windows, the time in windows will be set incorrectly.
- I previously tried installing Ubuntu, which failed in its initial installation and once I got it working, black screened.

If anyone knows what may be causing this or how to fix it, please let me know!
 
Old 01-18-2023, 01:08 PM   #2
yvesjv
Member
 
Registered: Sep 2015
Location: Australia
Distribution: Slackware, Devuan, Freebsd
Posts: 581

Rep: Reputation: Disabled
That is actually strange.

Do not know POP OS (wikipedia says Ubuntu) but can you:
1. post your dmesg output after booting into POP OS
2. Boot into a 'Live USB' and compare. For example Devuan Live which is also based on Debian but without the extra baggage:- https://www.devuan.org/get-devuan
3. Check what your system components are meant to be against what dmidecode outputs... never know
4. Check your bios settings to see if there is anything required that is disabled/modified/etc
 
Old 01-18-2023, 03:42 PM   #3
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,346

Rep: Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552
Quote:
Originally Posted by christopherlinux View Post
Hello,
I am running an Alienware Aurora R11 and am dual-booted on Windows and POP Os but I am running into issues with just my POP Os. Boot time is very slow (around 2 minutes), it takes around 2 minutes to open applications like chrome, vscode, docker (starting with systemctl), spotify. In addition, file transfer speeds are weirdly slow given that I am on an SSD, but I see around 13mbps transfer speeds when copying files on my SSD. I was wondering if anyone knew what could be causing this or how to fix it?

Other background information which may help:
- On Windows, my computer boots in seconds and applications open nearly instantly.
- After booting to Pop OS and then booting to windows, the time in windows will be set incorrectly.
- I previously tried installing Ubuntu, which failed in its initial installation and once I got it working, black screened.

If anyone knows what may be causing this or how to fix it, please let me know!
The time problem is caused by Linux keeping time in GMT time and Windows keeping time in local time. There is a way to tell Windows to keep time in GMT but I don't know how to do that in Windows.

Your time delays might be caused by your partition IDs in /etc/fstab not matching the partition IDs on the actual partitions. You can arrive in such a problem state by failed installs being followed by a successful install. Take a look at your /etc/fstab file and if necessary change the UUIDs in /etc/fstab to match what you have on the actual partitions. In particular take a look at your UUID on the swap partition.
 
1 members found this post helpful.
Old 01-18-2023, 05:30 PM   #4
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,148
Blog Entries: 21

Rep: Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483
to find uuid

Code:
harry@scooter:~
$ blkid
/dev/sda1: UUID="A025-F394" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="f0c97e1c-01"
/dev/sda2: UUID="d4674d03-607f-4de9-abd8-a72ea41e4d0a" TYPE="swap" PARTUUID="f0c97e1c-02"
/dev/sda3: LABEL="rootantiX22" UUID="ddec6fb9-cec9-4bd7-b2f7-ae23e7048674" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="f0c97e1c-03"
to find fstab

Code:
harry@scooter:~
$ cat /etc/fstab
# Pluggable devices are handled by uDev, they are not in fstab
UUID=ddec6fb9-cec9-4bd7-b2f7-ae23e7048674 / ext4 discard,noatime 1 1
#-> /dev/sda2
UUID=d4674d03-607f-4de9-abd8-a72ea41e4d0a  swap                                        swap       defaults                        0 0
#-> /dev/sda1
UUID=A025-F394                             /media/A025-F394                            vfat       noauto,uid=1000,gid=users,dmask=002,fmask=113,users  0 0
IF ME. I would unplug any external usb devices when checking slow boot.
I would also look into installing a newer kernel in PopOS also.

https://linux-hardware.org/index.php?probe=a1a72e5448

https://linuxhint.com/update-linux-kernel-pop-os/
 
Old 01-18-2023, 06:51 PM   #5
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Ubuntu based stuff for the most part
Posts: 1,177

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
You can ask systemd to show the time each boot item is taking with:
Code:
systemd-analyze blame
 
1 members found this post helpful.
Old 01-18-2023, 07:26 PM   #6
christopherlinux
LQ Newbie
 
Registered: Jan 2023
Posts: 15

Original Poster
Rep: Reputation: 3
@yvesjv
I have attached my dmesg outupt, it was quite long and filled with many errors so I've put it in 4 text files.
Attached Files
File Type: txt dmesg_1.txt (246.1 KB, 11 views)
File Type: txt dmesg_2.txt (238.4 KB, 3 views)
File Type: txt dmesg_3.txt (225.9 KB, 3 views)
File Type: txt dmesg_4.txt (64.0 KB, 3 views)
 
1 members found this post helpful.
Old 01-18-2023, 07:28 PM   #7
christopherlinux
LQ Newbie
 
Registered: Jan 2023
Posts: 15

Original Poster
Rep: Reputation: 3
@yvesj
Here is my dmidecode output:
Attached Files
File Type: txt dmidecode.txt (35.2 KB, 3 views)
 
1 members found this post helpful.
Old 01-18-2023, 07:31 PM   #8
christopherlinux
LQ Newbie
 
Registered: Jan 2023
Posts: 15

Original Poster
Rep: Reputation: 3
@jailbat
@rokytnji

Code:
blkid
/dev/sda5: UUID="02481f90-b528-4ccf-8e1a-bfd6aaa81aa7" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="419f276c-8856-425d-b477-490191b10cda"
Code:
cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system>  <mount point>  <type>  <options>  <dump>  <pass>
PARTUUID=b5b4c7f0-682a-4bf1-b67d-ac5b6c3bb5d6  /boot/efi  vfat  umask=0077  0  0
UUID=02481f90-b528-4ccf-8e1a-bfd6aaa81aa7  /  ext4  noatime,errors=remount-ro  0  0
/dev/mapper/cryptswap  none  swap  defaults  0  0
 
Old 01-18-2023, 07:38 PM   #9
christopherlinux
LQ Newbie
 
Registered: Jan 2023
Posts: 15

Original Poster
Rep: Reputation: 3
@teck
Code:
systemd-analyze blame
28.311s networkd-dispatcher.service
19.657s plymouth-quit-wait.service
 8.651s NetworkManager-wait-online.service
 8.081s com.system76.Scheduler.service
 7.064s NetworkManager.service
 6.857s accounts-daemon.service
 5.873s dev-sda5.device
 5.487s rsyslog.service
 5.396s gpu-manager.service
 5.227s wpa_supplicant.service
 4.930s udisks2.service
 3.637s com.system76.SystemUpdater.service
 3.402s packagekit.service
 3.398s polkit.service
 3.393s secureboot-db.service
 3.155s systemd-journal-flush.service
 3.060s e2scrub_reap.service
 3.046s pop-default-settings-zram.service
 2.545s grub-common.service
 2.509s thermald.service
 2.474s systemd-udevd.service
 2.183s apport.service
 2.104s tailscaled.service
 2.039s bluetooth.service
 1.999s fwupd-refresh.service
 1.957s avahi-daemon.service
 1.777s ModemManager.service
 1.776s apparmor.service
 1.705s colord.service
 1.487s nvidia-persistenced.service
 1.348s plymouth-start.service
 1.293s systemd-modules-load.service
 1.237s upower.service
 1.148s gdm.service
 1.002s systemd-rfkill.service
  944ms switcheroo-control.service
  799ms systemd-udev-trigger.service
  789ms systemd-cryptsetup@cryptswap.service
  788ms com.system76.PowerDaemon.service
  783ms grub-initrd-fallback.service
  750ms systemd-sysusers.service
  646ms systemd-tmpfiles-setup-dev.service
  640ms systemd-tmpfiles-setup.service
  625ms systemd-journald.service
  614ms networking.service
  595ms fwupd.service
  513ms plymouth-read-write.service
  504ms ufw.service
  504ms console-setup.service
  496ms systemd-resolved.service
  455ms chrony.service
  453ms keyboard-setup.service
  407ms ua-timer.service
  399ms systemd-random-seed.service
  392ms boot-efi.mount
  384ms finalrd.service
  383ms setvtrgb.service
  378ms modprobe@drm.service
 
Old 01-18-2023, 07:48 PM   #10
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Ubuntu based stuff for the most part
Posts: 1,177

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
You can disable networkd-dispatcher.service since desktops use Network Manager, so that will shave off bout 30 seconds from the boot.
Code:
sudo systemctl stop systemd-networkd.service
sudo systemctl disable systemd-networkd.service
If that does cause an issue, then enable it again.
 
Old 01-18-2023, 08:38 PM   #11
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,346

Rep: Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552
I think that you asked for swap to be encrypted but did not specify a swap partition:

Code:
 /dev/mapper/cryptswap  none  swap  defaults  0  0
Then systemd starts the encryption subsytem:

Code:
 789ms systemd-cryptsetup@cryptswap.service
Part of the delay may be systemd waiting for a minute or two to see if swap encryption might actually do something. Are you getting systemd countdown messages at boot?
 
Old 01-18-2023, 10:30 PM   #12
christopherlinux
LQ Newbie
 
Registered: Jan 2023
Posts: 15

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by jailbait View Post
I think that you asked for swap to be encrypted but did not specify a swap partition:

Code:
 /dev/mapper/cryptswap  none  swap  defaults  0  0
Then systemd starts the encryption subsytem:

Code:
 789ms systemd-cryptsetup@cryptswap.service
Part of the delay may be systemd waiting for a minute or two to see if swap encryption might actually do something. Are you getting systemd countdown messages at boot?
As far as I know I see no messages during boot, however my monitor does turn from black to grey several times over.
Not only is boot slow, but I do also get slow performance when its running and its frequent for my computer to entirely freeze.
 
Old 01-18-2023, 10:31 PM   #13
christopherlinux
LQ Newbie
 
Registered: Jan 2023
Posts: 15

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by uteck View Post
You can disable networkd-dispatcher.service since desktops use Network Manager, so that will shave off bout 30 seconds from the boot.
Code:
sudo systemctl stop systemd-networkd.service
sudo systemctl disable systemd-networkd.service
If that does cause an issue, then enable it again.
Thank you, will try this.
Do you know what might be the source of these issues? I'm running Pop Os on my much less powerful laptop and it runs like butter on that.
 
Old 01-19-2023, 06:40 AM   #14
Debian6to11
Member
 
Registered: Jan 2022
Location: Limassol, Cyprus
Distribution: Debian
Posts: 382
Blog Entries: 1

Rep: Reputation: 71
blkid output is incomplete
 
Old 01-19-2023, 07:05 AM   #15
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Ubuntu based stuff for the most part
Posts: 1,177

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
Could the encrypted swap be the problem?
In /etc/fstab comment out the /dev/mapper/cryptswap line and reboot and see if that makes a difference.
If you have enough RAM, swap is not needed, and I think PopOS is enabling zram to compress unused memory rather then sending to swap.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] vobcopy is very very very slow fredak Linux - Software 9 05-03-2013 04:45 PM
Need a very light linux distribution (seriously, very very light) dafrazzman Linux - Distributions 7 08-06-2009 05:46 AM
Squid Server Very Very Very Slow jatender Linux - Server 1 09-28-2007 11:44 PM
A very very very very big problem!! Elbryan Linux - Software 2 09-23-2005 05:56 AM
Lindows very very very slow jfi Linspire/Freespire 15 03-28-2004 09:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration