System start up slow

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
Gonzalo_VC
Posts: 3
Joined: 2021-09-24 12:38
Has thanked: 3 times

System start up slow

#1 Post by Gonzalo_VC »

Dear friends, I am running Debian GNU/Linux 10 (buster) with Gnome 3.30.2 in a Core i7 Positivo-Vaio from Brazil (not the best hardware). This machine also has some special drivers for screen and touchpad (pudre Debian or any other friendly distro won't suffice, out of the box; I've tried). The problem is that Debian takes a long time after boot to get really ready for work. Partially because it has a physical hard drive (not an SSD), the HD light keeps blinking for minutes after start-up, and the processor busy for that matter. I don't know if it is something about indexing files, and if it is Debian or Gnome's fault.
I have run htop to try to understand what application or service is causing the CPU and HD usage the first 2 to 3 minutes after the graphic mode is displayed. See attachment.
Any clues on how to "solve" this?
Thank you!
Captura de tela de 2024-06-22 15-17-38.png

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1523
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 61 times
Been thanked: 88 times

Re: System start up slow

#2 Post by None1975 »

Hello.

The reason for high CPU load is tracker. It is gnome nonsense, for metadata database, indexer and searching. You can disable it with simple command

Code: Select all

gsettings set org.freedesktop.Tracker.Miner.Files index-recursive-directories "[]"'
Keep in mind that Gnome is not the best solution if you are using Gnome on an old computer....of course it is possible to remove some Gnome components (for example gnome-software) and it will free up about 200 megabytes of RAM, but if I were you, I'd look for a lighter desktop environment (or window manager).
CPU and HD usage the first 2 to 3 minutes
The culprit is Tracker Miner Files and gnome-software. In my opinion you can disable Tracker Miner and remove gnome-software from your system.
OS: Debian 12.4 Bookworm / DE: XFCE
Debian Wiki | DontBreakDebian, My config files on github

Bulkley
Posts: 6405
Joined: 2006-02-11 18:35
Has thanked: 5 times
Been thanked: 46 times

Re: System start up slow

#3 Post by Bulkley »

Look for a startup file. You should be able to choose what starts immediately and what can wait until you need it.

My suspicion is that Gnome is a problem on an older machine; it is rather bloated. You might try replacing Gnome with Xfce which is a light desktop or a window manager like Openbox. I'm running Debian 10 with Openbox on an old machine and don't have long boot times.

lindi
Debian Developer
Debian Developer
Posts: 556
Joined: 2022-07-12 14:10
Has thanked: 2 times
Been thanked: 110 times

Re: System start up slow

#4 Post by lindi »

https://lindi.iki.fi/lindi/tune-debian12-desktop.bash has some recipes for reducing desktop resource usage. This version is for debian 12 but I have the old version for debian 10 available as well: https://lindi.iki.fi/lindi/tune-debian10-desktop.bash

Post Reply