You are not logged in.

#26 2021-02-12 20:04:25

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,687

Re: [SOLVED] Arch boot is too slow. Windows 10 boots faster.

# Static information about the filesystems.
# See fstab(5) for details.

# <file system> <dir> <type> <options> <dump> <pass>
# /dev/sda3
UUID=ac89ab0d-4661-49e0-9974-d4ce498f4501       /               ext4            rw,relatime     0 1

Don't you need an entry for the /efi partition as well?
What's the bootloader?

Offline

#27 2021-02-13 05:31:35

vero2513
Banned
Registered: 2021-02-12
Posts: 55

Re: [SOLVED] Arch boot is too slow. Windows 10 boots faster.

loqs wrote:

The link seth pointed you to How to upload textfiles covers piping to a pastebin.  Remember to filter the journal to a single boot.

The last systemd analyze critical chain showed 13 seconds to graphical.target,  from the original systemd analyze an additional 8 seconds was spent in graphical.target,  is 21 seconds roughly accurate for current boot time?

Ok thanks..this is my journactl -b output: http://ix.io/2PeQ

Offline

#28 2021-02-13 05:32:10

vero2513
Banned
Registered: 2021-02-12
Posts: 55

Re: [SOLVED] Arch boot is too slow. Windows 10 boots faster.

d_fajardo wrote:

# Static information about the filesystems.
# See fstab(5) for details.

# <file system> <dir> <type> <options> <dump> <pass>
# /dev/sda3
UUID=ac89ab0d-4661-49e0-9974-d4ce498f4501       /               ext4            rw,relatime     0 1

Don't you need an entry for the /efi partition as well?
What's the bootloader?

I have grub..and how do I reput efi partition and swap partition on fstab?

Offline

#29 2021-02-13 05:33:09

vero2513
Banned
Registered: 2021-02-12
Posts: 55

Re: [SOLVED] Arch boot is too slow. Windows 10 boots faster.

euromatlox wrote:

Have you installed/enabled microcode updates ?
Possibly slow boot might be SATA related somehow ?
For me personally Arch has always booted much faster than Windows.

Yes I've installed intel-ucode and the iucode-tool too

Offline

#30 2021-02-13 05:36:51

vero2513
Banned
Registered: 2021-02-12
Posts: 55

Re: [SOLVED] Arch boot is too slow. Windows 10 boots faster.

vero2513 wrote:
euromatlox wrote:

Have you installed/enabled microcode updates ?
Possibly slow boot might be SATA related somehow ?
For me personally Arch has always booted much faster than Windows.

Yes I've installed intel-ucode and the iucode-tool too

I gave the "bsdtar -Oxf /boot/intel-ucode.img | iucode_tool -tb -lS -" command to see if there's un update and here's the output:

iucode_tool: system has processor(s) with signature 0x000306a9
microcode bundle 1: (stdin)
selected microcodes:
  001/145: sig 0x000306a9, pf_mask 0x12, 2019-02-13, rev 0x0021, size 14336

Last edited by vero2513 (2021-02-13 05:52:05)

Offline

#31 2021-02-13 09:52:00

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,596

Re: [SOLVED] Arch boot is too slow. Windows 10 boots faster.

how do I reput efi partition and swap partition on fstab?

Preferably with a text editor…

There're no apparent errors or stalls in the journal, the system just moves at rather glacial pace.

feb 13 06:14:56 Arch-Linux kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=ac89ab0d-4661-49e0-9974-d4ce498f4501 rw loglevel=3 quiet i915.i915_enable_rc6=7 i915.i915_enable_fbc=1 i915.lvds_downclock=1 i915.semaphores=1 drm.vblankoffdelay=1

Where does that nonsense come from? How did you install archlinux? Which tutorial did you follow?

Yes I've installed intel-ucode and the iucode-tool too

https://wiki.archlinux.org/index.php/Mi … ly_loading

Offline

#32 2021-02-13 10:28:09

vero2513
Banned
Registered: 2021-02-12
Posts: 55

Re: [SOLVED] Arch boot is too slow. Windows 10 boots faster.

seth wrote:

how do I reput efi partition and swap partition on fstab?

Preferably with a text editor…

There're no apparent errors or stalls in the journal, the system just moves at rather glacial pace.

feb 13 06:14:56 Arch-Linux kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=ac89ab0d-4661-49e0-9974-d4ce498f4501 rw loglevel=3 quiet i915.i915_enable_rc6=7 i915.i915_enable_fbc=1 i915.lvds_downclock=1 i915.semaphores=1 drm.vblankoffdelay=1

Where does that nonsense come from? How did you install archlinux? Which tutorial did you follow?

Yes I've installed intel-ucode and the iucode-tool too

https://wiki.archlinux.org/index.php/Mi … ly_loading

I've followed the instruction from archwiki for my laptop

https://wiki.archlinux.org/index.php/HP_EliteBook_2570p

I followed this one as well

Last edited by vero2513 (2021-02-13 10:29:39)

Offline

#33 2021-02-13 11:42:19

finoderi
Member
Registered: 2020-06-12
Posts: 76

Re: [SOLVED] Arch boot is too slow. Windows 10 boots faster.

I think seth was impressed by this bit:

 BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=ac89ab0d-4661-49e0-9974-d4ce498f4501

smile
That's not something you really need to have in your /etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet"
GRUB_CMDLINE_LINUX="i915.i915_enable_rc6=7 i915.i915_enable_fbc=1 i915.lvds_downclock=1 i915.semaphores=1 drm.vblankoffdelay=1"

And that's pretty much it. Maybe 'rootflags=rw' as well.

Offline

#34 2021-02-13 12:14:07

loqs
Member
Registered: 2014-03-06
Posts: 19,023

Re: [SOLVED] Arch boot is too slow. Windows 10 boots faster.

i915.i915_enable_rc6=7

Removed in 4.16 https://github.com/torvalds/linux/commi … 95221ec5b8 as unsafe.

i915.lvds_downclock=1

Removed in 4.3 https://github.com/torvalds/linux/commi … 29b74a4205 for never being bug free.

i915.semaphores=1

Removed in 4.16 https://github.com/torvalds/linux/commi … 06f811587b as no longer needed.

Leaving two which are still valid:

drm.vblankoffdelay=1 i915.i915_enable_fbc=1

Offline

#35 2021-02-13 13:22:20

vero2513
Banned
Registered: 2021-02-12
Posts: 55

Re: [SOLVED] Arch boot is too slow. Windows 10 boots faster.

loqs wrote:
i915.i915_enable_rc6=7

Removed in 4.16 https://github.com/torvalds/linux/commi … 95221ec5b8 as unsafe.

i915.lvds_downclock=1

Removed in 4.3 https://github.com/torvalds/linux/commi … 29b74a4205 for never being bug free.

i915.semaphores=1

Removed in 4.16 https://github.com/torvalds/linux/commi … 06f811587b as no longer needed.

Leaving two which are still valid:

drm.vblankoffdelay=1 i915.i915_enable_fbc=1

Removed them from grub and regenerated the configuration of it

Offline

#36 2021-02-13 13:30:30

vero2513
Banned
Registered: 2021-02-12
Posts: 55

Re: [SOLVED] Arch boot is too slow. Windows 10 boots faster.

finoderi wrote:

I think seth was impressed by this bit:

 BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=ac89ab0d-4661-49e0-9974-d4ce498f4501

smile
That's not something you really need to have in your /etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet"
GRUB_CMDLINE_LINUX="i915.i915_enable_rc6=7 i915.i915_enable_fbc=1 i915.lvds_downclock=1 i915.semaphores=1 drm.vblankoffdelay=1"

And that's pretty much it. Maybe 'rootflags=rw' as well.

That's not something you really need to have in your /etc/default/grub

What should I do then?


...

GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet"
GRUB_CMDLINE_LINUX="i915.i915_enable_rc6=7 i915.i915_enable_fbc=1 i915.lvds_downclock=1 i915.semaphores=1 drm.vblankoffdelay=1"

And that's pretty much it. Maybe 'rootflags=rw' as well.

Where should I put it?

Offline

#37 2021-02-13 13:44:45

vero2513
Banned
Registered: 2021-02-12
Posts: 55

Re: [SOLVED] Arch boot is too slow. Windows 10 boots faster.

I've added swap partition on fstab

# Static information about the filesystems.
# See fstab(5) for details.

# <file system> <dir> <type> <options> <dump> <pass>
# /dev/sda3
UUID=ac89ab0d-4661-49e0-9974-d4ce498f4501       /               ext4            rw,relatime     0 1
# /dev/sda2
UUID="50030b78-9dd7-4cda-91c4-deb0e467793a"     none            swap            sw              0 0

I rebooted the system and gave again the systemd-analyze critical-chain..Swap partition is loaded in 9s

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 @15.319s
└─sddm.service @15.318s
  └─systemd-user-sessions.service @15.284s +32ms
    └─network.target @15.281s
      └─wpa_supplicant.service @19.655s +426ms
        └─dbus.service @13.022s
          └─basic.target @12.917s
            └─sockets.target @12.917s
              └─pcscd.socket @12.917s
                └─sysinit.target @12.811s
                  └─systemd-update-done.service @12.764s +47ms
                    └─ldconfig.service @9.707s +3.054s
                      └─local-fs.target @9.705s
                        └─tmp.mount @9.701s +4ms
                          └─swap.target @9.598s
                            └─dev-disk-by\x2duuid-50030b78\x2d9dd7\x2d4cda\x2d91c4\x2ddeb0e467793a.swap @9.160s +437ms
                              └─dev-disk-by\x2duuid-50030b78\x2d9dd7\x2d4cda\x2d91c4\x2ddeb0e467793a.device @9.159s

Offline

#38 2021-02-13 14:29:05

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,596

Re: [SOLVED] Arch boot is too slow. Windows 10 boots faster.

It's also "i915.enable_fbc=1" (but that's indeed wrong in the wiki and idk. whether the module is maybe indeed smart enough to ignore the leading "i915_")

The system still seems to take its time - it looks like either the HDD or the CPU is just slow.
Please post an updated journal w/ the early µcode load and you may also want to measure the performance of the HDD and the CPU.

Offline

#39 2021-02-13 14:54:02

finoderi
Member
Registered: 2020-06-12
Posts: 76

Re: [SOLVED] Arch boot is too slow. Windows 10 boots faster.

vero2513 wrote:

Where should I put it?

Edit /etc/default/grub with your favourite text editor and then regenerate grub.cfg
Something like that:

sudo nano /etc/default/grub

- delete everything in GRUB_CMDLINE_LINUX_DEFAULT="" but two parameters:

GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet"

Then edit GRUB_CMDLINE_LINUX="" to look like this:

GRUB_CMDLINE_LINUX="i915.i915_enable_fbc=1 drm.vblankoffdelay=1"

Then Ctrl+O, Ctrl+X.

sudo grub-mkconfig -o /boot/grub/grub.cfg

Offline

#40 2021-02-13 14:57:41

euromatlox
Member
Registered: 2017-02-10
Posts: 153

Re: [SOLVED] Arch boot is too slow. Windows 10 boots faster.

You could check your mkinitcpio configuration ?
If you change something, remember to regenerate images...and have Arch Live CD available if some problems (not booting) occurs.

Here's what I have in my desktop computer (Intel Xeon L5420, Asus P5K).
I guess some differences might occur, depending on computer system/configuration.
But perhaps there is something extra, which is not needed.

/etc/mkinitcpio.conf
-----
MODULES="crc32_generic crc32_pclmul libcrc32c crc32c_generic crc32c-intel"
BINARIES=""
FILES=""
HOOKS="base udev autodetect modconf block filesystems keyboard fsck"

No compression (entries disabled by #).

Last edited by euromatlox (2021-02-13 15:02:04)

Offline

#41 2021-02-13 15:01:29

vero2513
Banned
Registered: 2021-02-12
Posts: 55

Re: [SOLVED] Arch boot is too slow. Windows 10 boots faster.

euromatlox wrote:

You could check your mkinitcpio configuration ?
If you change something, remember to regenerate images...and have Arch Live CD available if some problems (not booting) occurs.

Here's what I have in my desktop computer (Intel Xeon L5420, Asus P5K).

/etc/mkinitcpio.conf
-----
MODULES="crc32_generic crc32_pclmul libcrc32c crc32c_generic crc32c-intel"
BINARIES=""
FILES=""
HOOKS="base udev autodetect modconf block filesystems keyboard fsck"

No compression (entries disabled by #).

I followed the wiki and the only thing I put on mkinitcpio.conf is "intel_agp i915" in modules. And I also regenerated the image

Last edited by vero2513 (2021-02-13 15:06:20)

Offline

#42 2021-02-13 15:01:59

vero2513
Banned
Registered: 2021-02-12
Posts: 55

Re: [SOLVED] Arch boot is too slow. Windows 10 boots faster.

finoderi wrote:
vero2513 wrote:

Where should I put it?

Edit /etc/default/grub with your favourite text editor and then regenerate grub.cfg
Something like that:

sudo nano /etc/default/grub

- delete everything in GRUB_CMDLINE_LINUX_DEFAULT="" but two parameters:

GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet"

Then edit GRUB_CMDLINE_LINUX="" to look like this:

GRUB_CMDLINE_LINUX="i915.i915_enable_fbc=1 drm.vblankoffdelay=1"

Then Ctrl+O, Ctrl+X.

sudo grub-mkconfig -o /boot/grub/grub.cfg

I already did it

Offline

#43 2021-02-13 15:04:26

vero2513
Banned
Registered: 2021-02-12
Posts: 55

Re: [SOLVED] Arch boot is too slow. Windows 10 boots faster.

seth wrote:

It's also "i915.enable_fbc=1" (but that's indeed wrong in the wiki and idk. whether the module is maybe indeed smart enough to ignore the leading "i915_")

The system still seems to take its time - it looks like either the HDD or the CPU is just slow.
Please post an updated journal w/ the early µcode load and you may also want to measure the performance of the HDD and the CPU.

Journalctl -b output:
http://ix.io/2PhH

How do I measure HDD and CPU performance?

Last edited by vero2513 (2021-02-13 15:05:20)

Offline

#44 2021-02-13 15:20:01

finoderi
Member
Registered: 2020-06-12
Posts: 76

Re: [SOLVED] Arch boot is too slow. Windows 10 boots faster.

vero2513 wrote:

I already did it

feb 13 14:39:27 Arch-Linux kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=ac89ab0d-4661-49e0-9974-d4ce498f4501 rw i915.i915_enable_fbc=1 drm.vblankoffdelay=1 loglevel=3 quiet

You didn't.

Offline

#45 2021-02-13 15:23:48

vero2513
Banned
Registered: 2021-02-12
Posts: 55

Re: [SOLVED] Arch boot is too slow. Windows 10 boots faster.

finoderi wrote:
vero2513 wrote:

I already did it

feb 13 14:39:27 Arch-Linux kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=ac89ab0d-4661-49e0-9974-d4ce498f4501 rw i915.i915_enable_fbc=1 drm.vblankoffdelay=1 loglevel=3 quiet

You didn't.

I should remove the bold command?

Offline

#46 2021-02-13 15:26:14

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,346

Re: [SOLVED] Arch boot is too slow. Windows 10 boots faster.

He did that's exactly the output I'd expect to see when changing these options including the incorrect i915.i915 from your initial suggestion.

You can't remove the bolded part that defines which linux image and which root device to load

Offline

#47 2021-02-13 15:26:58

vero2513
Banned
Registered: 2021-02-12
Posts: 55

Re: [SOLVED] Arch boot is too slow. Windows 10 boots faster.

vero2513 wrote:
finoderi wrote:
vero2513 wrote:

I already did it

feb 13 14:39:27 Arch-Linux kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=ac89ab0d-4661-49e0-9974-d4ce498f4501 rw i915.i915_enable_fbc=1 drm.vblankoffdelay=1 loglevel=3 quiet

You didn't.

I should remove the bold command?

This is my grub configuration

/etc/default/grub                                                                           
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet"
GRUB_CMDLINE_LINUX="i915.i915_enable_fbc=1 drm.vblankoffdelay=1"

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK=y

# Set to 'countdown' or 'hidden' to change timeout behavior,
# press ESC key to display menu.
GRUB_TIMEOUT_STYLE=menu

# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console

# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'

GRUB_GFXMODE=auto

# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper
# modes only.  Entries specified as foreground/background.
#GRUB_COLOR_NORMAL="light-blue/black"
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"

# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
#GRUB_THEME="/path/to/gfxtheme"

# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"

# Uncomment to make GRUB remember the last selection. This requires
# setting 'GRUB_DEFAULT=saved' above.
#GRUB_SAVEDEFAULT="true"

Last edited by vero2513 (2021-02-13 15:28:09)

Offline

#48 2021-02-13 15:33:35

finoderi
Member
Registered: 2020-06-12
Posts: 76

Re: [SOLVED] Arch boot is too slow. Windows 10 boots faster.

OK, sorry then.

Offline

#49 2021-02-13 15:34:07

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,596

Re: [SOLVED] Arch boot is too slow. Windows 10 boots faster.

You can use dd to measure the disk performance (read/write from /dev/zero and into /dev/null) and for a start "cpupower frequency-info" to see whether your CPU hangs in a low frequency.
https://wiki.archlinux.org/index.php/CP … g#cpupower

Edit: the updated journal does not suggest an early microcode load.

Last edited by seth (2021-02-13 15:35:30)

Offline

#50 2021-02-13 15:41:21

vero2513
Banned
Registered: 2021-02-12
Posts: 55

Re: [SOLVED] Arch boot is too slow. Windows 10 boots faster.

seth wrote:

You can use dd to measure the disk performance (read/write from /dev/zero and into /dev/null) and for a start "cpupower frequency-info" to see whether your CPU hangs in a low frequency.
https://wiki.archlinux.org/index.php/CP … g#cpupower

Edit: the updated journal does not suggest an early microcode load.

This is the grub.cfg file:

  GNU nano 5.5                                                             /boot/grub/grub.cfg                                                                          
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-ac89ab0d-4661-49e0-9974-d4ce498f4501' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_gpt
        insmod ext2
        set root='hd0,gpt3'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3  ac89ab0d-4661-49e0-9974-d4ce498f4501
        else
          search --no-floppy --fs-uuid --set=root ac89ab0d-4661-49e0-9974-d4ce498f4501
        fi
        echo    'Loading Linux linux ...'
        linux   /boot/vmlinuz-linux root=UUID=ac89ab0d-4661-49e0-9974-d4ce498f4501 rw i915.i915_enable_fbc=1 drm.vblankoffdelay=1 loglevel=3 quiet
        echo    'Loading initial ramdisk ...'
        initrd  /boot/intel-ucode.img /boot/initramfs-linux.img
}
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-ac89ab0d-4661-49e0-9974-d4ce498f4501' {
        menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-ac89ab0d-4661-49e0>
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod ext2
                set root='hd0,gpt3'

Should I remove this highlighted?
/boot/vmlinuz-linux root=UUID=ac89ab0d-4661-49e0-9974-d4ce498f4501 rw i915.i915_enable_fbc=1 drm.vblankoffdelay=1 loglevel=3 quiet

Last edited by vero2513 (2021-02-13 15:42:08)

Offline

Board footer

Powered by FluxBB