Linux Lite Forums

Software - Support => Other => Topic started by: ejc on June 12, 2019, 07:10:22 AM

Title: SystemD
Post by: ejc on June 12, 2019, 07:10:22 AM
Hello, I use an Asus eeebox 1501b with 2 go ram and i notice that the unity gets warm quickly after boot and stays so.
Is there anything I can fix here:
The disk is 5400 rpm

Memory Usage: 1330/1993MB (66.73%)
Disk Usage: 12/293GB (5%)
with just the default pdf reader open and firefox

  17.567s dev-sda1.device
         16.051s ufw.service
         15.079s keyboard-setup.service
         15.027s lvm2-monitor.service
         14.793s systemd-journal-flush.service
         14.598s systemd-modules-load.service
         14.516s systemd-tmpfiles-setup-dev.service
          6.590s NetworkManager-wait-online.service
          3.413s swapfile.swap
          3.169s udisks2.service
          2.718s NetworkManager.service
          2.682s networkd-dispatcher.service
          2.498s accounts-daemon.service
          2.289s ModemManager.service
          2.126s grub-common.service
          2.029s fstrim.service
          2.017s nmbd.service
          1.983s systemd-random-seed.service
          1.878s preload.service
          1.833s motd-news.service
          1.804s plymouth-quit-wait.service
          1.801s lightdm.service
          1.747s wpa_supplicant.service
Title: Re: SystemD
Post by: Moltke on June 12, 2019, 09:47:29 AM
Hello, I use an Asus eeebox 1501b with 2 go ram and i notice that the unity gets warm quickly after boot and stays so.
Is there anything I can fix here:
The disk is 5400 rpm

Memory Usage: 1330/1993MB (66.73%)
Disk Usage: 12/293GB (5%)
with just the default pdf reader open and firefox

  17.567s dev-sda1.device
         16.051s ufw.service
         15.079s keyboard-setup.service
         15.027s lvm2-monitor.service
         14.793s systemd-journal-flush.service
         14.598s systemd-modules-load.service
         14.516s systemd-tmpfiles-setup-dev.service
          6.590s NetworkManager-wait-online.service
          3.413s swapfile.swap
          3.169s udisks2.service
          2.718s NetworkManager.service
          2.682s networkd-dispatcher.service
          2.498s accounts-daemon.service
          2.289s ModemManager.service
          2.126s grub-common.service
          2.029s fstrim.service
          2.017s nmbd.service
          1.983s systemd-random-seed.service
          1.878s preload.service
          1.833s motd-news.service
          1.804s plymouth-quit-wait.service
          1.801s lightdm.service
          1.747s wpa_supplicant.service

Hi @ejc  First of all, your post's title "SystemD" tells nothing about what you want since then you pasted some system statistics and asked "what can I fix here" so if I may ask, what is it exactly you're looking to fix? If I understand correctly, it seems to me you're asking for help/guidance on how to improve memory management, is that correct? And there might be a number of answrs for that question, in any case, since your post asks for SystemD I think you should read here https://www.linuxliteos.com/forums/installing-software/systemd-linux-lite-3-0/msg23516/#msg23516 try some of the commands like
Code: [Select]
systemd-analyze blame as well as the rest of them, analize its output, search on google on how to read them so you know what they're telling you. 

Hope this helps! :)
Title: Re: SystemD
Post by: ejc on June 14, 2019, 04:39:44 AM
Hello
My goal was to reduce the disk memory so that it does not get warm so quickly.
Title: Re: SystemD
Post by: TheDead on June 14, 2019, 08:11:27 AM
Hi,

Maybe deactivating the swap would help (i.e. forcing Linux to use RAM and less HDD usage).
I have never tried it and maybe it's a bad idea, Linux Mentors could confirm, but... :)

Coming from the Widnows world I would sometimes deactivated swap (pagefile.sys) to "force" Widnows to use RAM (idea came with first SSD generation a few years back).
Some stupid Widnows programs "NEED" the swap though, so I had to install a RAMDisk program which makes a virtual harddisk in RAM and put the Windows Swap there (I put it at 1024MB).
Yes, I know this defeated the whole purpose of a swap ;) but never had problems "then" and probably saved a few years usage on that old-school SSD.
Note : Was on W7 and this trick stopped working in W10. I didn't check if possible anymore.

Warning  / disclaimer or whatever ;) : Maybe Linux also "needs" the swap so, I don't know if this will prevent the OS from booting. Try on unimportant machine, virtual machine first. If reallly stuck with one PC, tell me I'll try this on the week-end.
Title: Re: SystemD
Post by: Moltke on June 19, 2019, 01:01:27 PM
Hello
My goal was to reduce the disk memory so that it does not get warm so quickly.

"reduce disk memory" Don't you mean disk usage? Type this in a terminal and report back the output
Code: [Select]
cat /proc/sys/vm/swappiness From what I see, your main issue seems to be RAM, your first post shows this
Quote
Memory Usage: 1330/1993MB (66.73%)
while your disk usage is reported
Quote
Disk Usage: 12/293GB (5%)
so maybe what you need is improve your memory usage not your disk's.