Some failed services KDE lite

Hey all,

I have these failed services, related to swap mostly.

memavaild.service    loaded failed failed Improve responsiveness during heavy swapping: keep amount of available memory
prelockd.service     loaded failed failed Daemon that prevents eviction of executables/libraries from memory            
systemd-swap.service loaded failed failed Manage swap spaces on zram, files and partitions.

systemctl status memavaild.service:

memavaild.service - Improve responsiveness during heavy swapping: keep amount of available memory
Loaded: loaded (/usr/lib/systemd/system/memavaild.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2020-10-22 12:18:19 BST; 19min left
Docs: https://github.com/hakavlad/memavaild
Main PID: 884 (code=exited, status=217/USER)

Oct 22 12:18:19 lam-T440p systemd[1]: memavaild.service: Scheduled restart job, restart counter is at 13.
Oct 22 12:18:19 lam-T440p systemd[1]: Stopped Improve responsiveness during heavy swapping: keep amount of available memory.
Oct 22 12:18:19 lam-T440p systemd[1]: memavaild.service: Start request repeated too quickly.
Oct 22 12:18:19 lam-T440p systemd[1]: memavaild.service: Failed with result 'exit-code'.
Oct 22 12:18:19 lam-T440p systemd[1]: Failed to start Improve responsiveness during heavy swapping: keep amount of available memory.

systemctl status prelockd.service:

prelockd.service - Daemon that prevents eviction of executables/libraries from memory
Loaded: loaded (/usr/lib/systemd/system/prelockd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2020-10-22 12:18:17 BST; 13min left
Docs: https://github.com/hakavlad/prelockd
Main PID: 476 (code=exited, status=217/USER)

Oct 22 12:18:17 lam-T440p systemd[1]: Started Daemon that prevents eviction of executables/libraries from memory.
Oct 22 12:18:17 lam-T440p systemd[476]: prelockd.service: Failed to determine user credentials: No such process
Oct 22 12:18:17 lam-T440p systemd[476]: prelockd.service: Failed at step USER spawning /usr/bin/prelockd: No such process
Oct 22 12:18:17 lam-T440p systemd[1]: prelockd.service: Main process exited, code=exited, status=217/USER
Oct 22 12:18:17 lam-T440p systemd[1]: prelockd.service: Failed with result 'exit-code'.

systemctl status systemd-swap.service:

systemd-swap.service - Manage swap spaces on zram, files and partitions.
Loaded: loaded (/usr/lib/systemd/system/systemd-swap.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2020-10-22 12:18:19 BST; 13min left
Main PID: 479 (code=exited, status=1/FAILURE)
Status: "Setting up Zram..."

Oct 22 12:18:19 lam-T440p systemd-swap[479]:   File "/usr/bin/systemd-swap", line 904, in <module>
Oct 22 12:18:19 lam-T440p systemd-swap[479]:     main()
Oct 22 12:18:19 lam-T440p systemd-swap[479]:   File "/usr/bin/systemd-swap", line 892, in main
Oct 22 12:18:19 lam-T440p systemd-swap[479]:     start()
Oct 22 12:18:19 lam-T440p systemd-swap[479]:   File "/usr/bin/systemd-swap", line 666, in start
Oct 22 12:18:19 lam-T440p systemd-swap[479]:     mode = os.stat(zram_dev).st_mode
Oct 22 12:18:19 lam-T440p systemd-swap[479]: TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType
Oct 22 12:18:19 lam-T440p systemd[1]: systemd-swap.service: Main process exited, code=exited, status=1/FAILURE
Oct 22 12:18:19 lam-T440p systemd[1]: systemd-swap.service: Failed with result 'exit-code'.
Oct 22 12:18:19 lam-T440p systemd[1]: Failed to start Manage swap spaces on zram, files and partitions..

Any idea?

Thanks.

1 Like

For memavaild to work you need to pass systemd.unified_cgroup_hierarchy=1 in the kernel boot cmdline.

You can do this via
garuda-boot-options
And check the cgroup box

5 Likes

for prelockd

/usr/bin/prelockd -c /etc/prelockd.conf                                                                                                                                                                                                 ─╯
Starting prelockd with the config: /etc/prelockd.conf
currently locked 0.0M, 0 files
[Errno 13] Permission denied: '/var/lib/prelockd/dump.json'
Traceback (most recent call last):
  File "/usr/bin/prelockd", line 890, in <module>
    current_set = get_current_set()
  File "/usr/bin/prelockd", line 195, in get_current_set
    lines_list = f.read().decode('utf-8', 'ignore').split('\n')
MemoryError
3 Likes
T440p

2 Likes

Wow, Thanks for the help.

Im gonna poke around and if i have something else ill post here.

Thanks again.

PS. < T470 are the best. Unfortunately Lenovo is going the wrong way

1 Like

for now edit
/usr/lib/systemd/system/memavaild.service

and remove
user=memavild

same for
/usr/lib/systemd/system/prelockd.service

remove
user=prelockd

then reboot

3 Likes

Ok, only memavaild failed after reboot.

I tried to not remove the user and just use systemd.unified_cgroup_hierarchy=1 to see if its going to work, but didnt.

Edit: Actually, i did systemctl daemon-reload and start it again its running now.. So maybe its all fine.

3 Likes

Im running the exaxt same model as you, so yeah I agree :clap::slight_smile:

1 Like

Adding the user prelockd was fixed. See here.
Will this be incorporated into package performance-tweaks?

Well if the git repo updates
Then those packages will update automatically

Its just time issue

Or you can reinstall
prelockd-git and memavaild-git packages

3 Likes

I have the same problem with systemd.swap-service. How did you solve it?

Welcome to Garuda.

It is unlikely your issue is exactly the same as this thread is relating to an old bug that was resolved many moons ago.

Please do not necrobump technical help threads that are very old.

Please open your own help request thread that includes any error messages you recieved and your system inxi output.

4 Likes