Services to Disable

Hi,
My new laptop is:

[limo@asus ~]$ inxi -Fxz
System:
  Kernel: 5.15.72-1-lts arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    Desktop: KDE Plasma v: 5.25.5 Distro: EndeavourOS base: Arch Linux
Machine:
  Type: Laptop System: ASUSTeK product: VivoBook_ASUSLaptop X415FAC_X415FA
    v: 1.0 serial: <superuser required>
  Mobo: ASUSTeK model: X415FAC v: 1.0 serial: <superuser required>
    UEFI: American Megatrends v: X415FAC.202 date: 07/08/2021
Battery:
  ID-1: BAT0 charge: 37.4 Wh (100.0%) condition: 37.4/37.1 Wh (100.6%)
    volts: 7.8 min: 7.8 model: ASUSTeK ASUS Battery status: not charging
CPU:
  Info: dual core model: Intel Core i3-10110U bits: 64 type: MT MCP
    arch: Comet/Whiskey Lake note: check rev: C cache: L1: 128 KiB L2: 512 KiB
    L3: 4 MiB
  Speed (MHz): avg: 900 min/max: 400/4100 cores: 1: 900 2: 900 3: 900
    4: 900 bogomips: 20799
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel CometLake-U GT2 [UHD Graphics] vendor: ASUSTeK driver: i915
    v: kernel arch: Gen-9.5 bus-ID: 00:02.0
  Device-2: IMC Networks USB2.0 HD UVC WebCam type: USB driver: uvcvideo
    bus-ID: 1-5:3
  Display: x11 server: X.Org v: 21.1.4 driver: X: loaded: intel
    unloaded: modesetting gpu: i915 resolution: 1366x768~60Hz
  OpenGL: renderer: Mesa Intel UHD Graphics (CML GT2) v: 4.6 Mesa 22.1.7
    direct render: Yes
Audio:
  Device-1: Intel Comet Lake PCH-LP cAVS vendor: ASUSTeK
    driver: snd_hda_intel v: kernel bus-ID: 00:1f.3
  Sound Server-1: ALSA v: k5.15.72-1-lts running: yes
  Sound Server-2: PulseAudio v: 16.1 running: no
  Sound Server-3: PipeWire v: 0.3.58 running: yes
Network:
  Device-1: Intel Comet Lake PCH-LP CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3
  IF: wlan0 state: up mac: <filter>
Bluetooth:
  Device-1: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) type: USB
    driver: btusb v: 0.8 bus-ID: 1-10:5
  Report: rfkill ID: hci0 rfk-id: 3 state: down bt-service: disabled
    rfk-block: hardware: no software: no address: see --recommends
Drives:
  Local Storage: total: 704.24 GiB used: 125.72 GiB (17.9%)
  ID-1: /dev/nvme0n1 vendor: Western Digital model: PC SN530
    SDBPNPZ-256G-1002 size: 238.47 GiB temp: 32.9 C
  ID-2: /dev/sda type: USB vendor: Fujitsu model: HDD size: 465.76 GiB
Partition:
  ID-1: / size: 238.17 GiB used: 40.62 GiB (17.1%) fs: btrfs
    dev: /dev/nvme0n1p2
  ID-2: /boot/efi size: 299.4 MiB used: 608 KiB (0.2%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-3: /home size: 238.17 GiB used: 40.62 GiB (17.1%) fs: btrfs
    dev: /dev/nvme0n1p2
  ID-4: /var/log size: 238.17 GiB used: 40.62 GiB (17.1%) fs: btrfs
    dev: /dev/nvme0n1p2
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 48.0 C pch: 41.0 C mobo: N/A
  Fan Speeds (RPM): cpu: 0
Info:
  Processes: 222 Uptime: 2h 46m Memory: 3.67 GiB used: 1.76 GiB (47.9%)
  Init: systemd Compilers: gcc: 12.2.0 Packages: 1019 Shell: Bash v: 5.1.16
  inxi: 3.3.21
[limo@asus ~]$ 


It is working fine -almost. But it froze a few times when it seems I am ā€œsqueezingā€ it, like having many browser tabs open and burning an ISO to USB flash with dd

I read about ā€œoptimisingā€ my system and I changed swappiness from default 60 down to 10.

I have disabled Baloo as I am on BTRFS and using Recoll instead.
I read that I could disable some services that might be not needed, like:
1- Joystick (any other similar?)
2- Email client
3- RSS feeds
4- I do not have keyboard light, no finger print reader.
5- I do not have Ethernet cable socket.
6- I do not have SD card reader.
7- I do not use or care about ā€˜sleepā€™ or ā€˜hibernateā€™

FYI

[limo@asus ~]$ free -h
               total        used        free      shared  buff/cache   available
Mem:           3.7Gi       1.4Gi       564Mi       315Mi       1.7Gi       1.7Gi
Swap:             0B          0B          0B

[limo@asus ~]$ systemd-analyze blame
393ms dev-nvme0n1p2.device
326ms firewalld.service
225ms boot-efi.mount
222ms systemd-journal-flush.service
195ms snapper-boot.service
189ms ldconfig.service
159ms lvm2-monitor.service
140ms systemd-rfkill.service
127ms user@1000.service
117ms systemd-remount-fs.service
 89ms upower.service
 84ms systemd-udev-trigger.service
 80ms power-profiles-daemon.service
 79ms systemd-tmpfiles-clean.service
 73ms systemd-journald.service
 52ms udisks2.service
 47ms systemd-logind.service
 44ms systemd-modules-load.service
 41ms avahi-daemon.service
 38ms systemd-timesyncd.service
 34ms sys-kernel-debug.mount
 33ms systemd-udevd.service
 33ms NetworkManager.service
 30ms dbus.service
 30ms var-log.mount
 26ms modprobe@fuse.service
 26ms polkit.service

I have BTRFS Assistant, Snapperā€¦ etc. installed.
My system is installed on SSD, so I do not think it is a good idea to create a swap file. Should I?

My questions in this regard:
1- What services I can safely disable. How to?
2- Should I upgrade RAM from current 4GB to 8GB, would 16GB be more than needed? Or this 4GB is OK?
3- Anything you suggest to improve performance?

P.S.: I am back on Grub.

Thanks for your feed back and assistance.
I always believe it is better to ask the experts!

Yes. Just running Firefox and a couple of tabs uses almost that 2-4 ram, after that it take more apps to get to 8. If you are a heavy multitasker like me, I always go with 16 Gb RAM. 32 is generally too much.

I3wm uses about 750 MB ram. Then running Firefox or other web browser bumps it up immediately. And you are using KDE. Minimum 8 is standard to my opinion.

2 Likes

Thanks a lot @Zircon34 for your prompt feedback.
So, I better upgrade to 8GB at least.

Not really, but sometimes I multitask as I said dd an ISO while browsing (Chromium browser) maybe watching a youtube video in browser and having some multi tabs open, sometimes a PDF as well.

Sure, it is my favourite.

You can also monitor you ram usage with htop or there are some KDE visual widgets or similar for the desktop.

1 Like

Honestly I do not feel I like widgets (old school/old man) who started in 2000. I do not know of widgets at that time! I am OK with

free -h

SO I better upgrade to 8/16GB RAM and thats it.
No need then to disable unnecessary services (though I would love to as it would be using CPU, RAM,ā€¦ anyway)

It just uses more RAM than a tiling window manager like i3. 8 Gb should be sufficient in your case.

I feel desktop widgets are old school :sweat_smile:

1 Like
lvm2-monitor.service

is the only service you can mask if you do not use lvm and do not plan to need to use.

Most drivers are inside kernel so ā€œdisableā€ them is not really something to benefit fromā€¦

1- Joystick (any other similar?)4- I do not have keyboard light, no finger print reader.
5- I do not have Ethernet cable socket.
6- I do not have SD card reader.

And if you take plasma ISO install optionā€¦ you will not have an email client or RSS feed appm installed or service runningā€¦

2- Email client
3- RSS feeds

Sleep and hibernate ? if you do not use it do not use it :wink:
And settings are in Plasma settings for it.
Possible to mask them all system wide:
# sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
what will be the hard way to not use themā€¦ because Desktop (plasma) will not be able to use them anymore all togetherā€¦ the will link to /dev/null. :eight_pointed_black_star:

1 Like

There are many, and I tried during my distrohoping as well XFCE, LXDE, LXQTā€¦
But I feel more at home with KDE Plasma. It would be OK after I upgrade RAM to 8GB or 16GB.
(I am just worried that 16GB would be extra/a waste - I hate wasting anything, it is a matter of principle and not about money I assure you.)

Old school?! Maybe my ageing brain is defeating me.

I googled lvm and found LVM stands for *Logical Volume Management* ., I donā€™t know If I need it, I am on BTRFS by the way, snapshotting system and /home.
I canā€™t tellā€¦ so Iā€™d better leave it.

This is another good thing about Linux then.

OKā€¦ so I will just leave them.

I wonder what are these guys allover the internet writing about such things if the defaults are OK.

8GB is standard.
Would a 16GB for such a system really worth it? (inxi -Fxz in first post).
Would it make a difference from 8GB with such processor? i3 10th Gen I believe!
So, can I say that the freezing I experienced was because of RAM shortage? not the graphic card/processorā€¦ whatever?

They may not us EndeavourOS :wink: we do not enable anything that is not barely needed for basic system to workā€¦ network audio and update timer, and if you choose print socket.

Same for package selection we try to install the minimum amount of needed packages for the Desktops.

2 Likes

I remember I could count 1004 and for reasons to love EndeavourOS in particular.
So, now 1005

Still 1005 because I counted this before.

@Zircon34 and @joekamprad

I will appreciate your opinion before I go upgrade.
Again, I do not care about money but I care not to waste.

i would say in most cases normal user without the need to burn the house down on Gaming or the need to run VMs in a regular base you will be fine with 8GB.
For me it would not fit:
2022-10-06_10-55
This is my base load when starting my Desktop (i3) and not start anything aside from what i start automaticallyā€¦ Browser Mailapp Telegram Filebrowser Editor some Terminals RSS IRC ā€¦
When i start some VMS i am over 8GB very fast.

Bit 32 GB ? i do not know how i would be able to use it allā€¦ i can run 10 VMs at the same time without reaching itā€¦

1 Like

I am not into gaming. I never was even when I was a kid or teen. I preferred ā€œphysicalā€ games, table tennis, chess, socialising ā€¦

32 GB! Thatā€™s an ocean where you use just a cup at most!

OKā€¦ so for me I guess 8GB would me enough as I will never do even 1/4 of what you do!

Thank you very much @Zircon34 and @joekamprad
Your inputs are very valuable to me and I learned even more about EndeavourOS and discovered more reasons to love.

Thank you very much!

2 Likes

You really should consider some swap space to keep your system from freezing when you run out of ram.

I hope after upgrading to 8GB or perhaps 16GB I wonā€™t need swap!
My old laptop that died a few days ago had 8GB and it was running fine though it was a 10 year old machine.

Allow me to ask you again because I trust your opinion, would be a 16GB RAM a waste? More than enough/required? (just to make it easier for you, this machine is i3, 10th generation.) Is it worth it?

Where I am the difference in cost between 8GB and 16GB is ~$20 USD. I would absolutely pay that much for the privilege of not having to worry about RAM usage as much.

Of course, we all have different budgets and the cost may also be different in various parts of the world so it is a hard question to answer for someone else.

2 Likes