Package Details: uksmd 0.0.0.r9.ee0bf4ede4-1

Git Clone URL: https://aur.archlinux.org/uksmd.git (read-only, click to copy)
Package Base: uksmd
Description: Userspace KSM helper daemon
Upstream URL: https://gitlab.com/post-factum/uksmd
Licenses: GPL3
Submitter: post-factum
Maintainer: post-factum
Last Packager: post-factum
Votes: 7
Popularity: 1.66
First Submitted: 2019-05-22 19:57
Last Updated: 2021-10-16 14:43

Latest Comments

1 2 Next › Last »

whoami commented on 2021-10-17 02:22

now it works after reboot. But I doing it before, some hours ago, and it not worked. Strange.

whoami commented on 2021-10-17 02:17

very strange, now it's running, after 5 hours uptime. Maybe this error occurs randomly. Or maybe works after some systemd hook pacman.log:

[2021-10-17T01:56:54+0300] [PACMAN] Running 'pacman --upgrade --color=always --noconfirm -- /home/user/.cache/paru/clone/uksmd/uksmd-0.0.0.r9.ee0bf4ede4-1-x86_64.pkg.tar.zst'
[2021-10-17T01:56:54+0300] [ALPM] transaction started
[2021-10-17T01:56:54+0300] [ALPM] upgraded uksmd (0.0.0.r8.865032cc89-1 -> 0.0.0.r9.ee0bf4ede4-1)
[2021-10-17T01:56:54+0300] [ALPM] transaction completed
[2021-10-17T01:56:54+0300] [ALPM] running '30-systemd-daemon-reload.hook'...
[2021-10-17T01:56:54+0300] [ALPM] running '30-systemd-update.hook'...
[2021-10-17T02:01:26+0300] [PACMAN] Running 'pacman --sync --color=always -- extra/strace'
[2021-10-17T02:01:29+0300] [ALPM] transaction started
[2021-10-17T02:01:29+0300] [ALPM] installed strace (5.14-1)
[2021-10-17T02:01:29+0300] [ALPM] transaction completed
[2021-10-17T02:01:29+0300] [ALPM] running '30-systemd-update.hook'...
[2021-10-17T04:21:10+0300] [PACMAN] Running 'pacman --sync -y -u --'
[2021-10-17T04:21:10+0300] [PACMAN] synchronizing package lists
[2021-10-17T04:21:14+0300] [PACMAN] starting full system upgrade
[2021-10-17T04:21:37+0300] [ALPM] transaction started
[2021-10-17T04:21:40+0300] [ALPM] upgraded dart (2.14.3-1 -> 2.14.4-1)
[2021-10-17T04:21:40+0300] [ALPM] transaction completed
[2021-10-17T04:21:40+0300] [ALPM] running '30-systemd-update.hook'...
[2021-10-17T04:26:32+0300] [PACMAN] Running 'pacman --sync --color=always -- community/croc'
[2021-10-17T04:26:37+0300] [ALPM] transaction started
[2021-10-17T04:26:37+0300] [ALPM] installed croc (9.4.2-1)
[2021-10-17T04:26:37+0300] [ALPM] transaction completed
[2021-10-17T04:26:37+0300] [ALPM] running '30-systemd-daemon-reload.hook'...
[2021-10-17T04:26:38+0300] [ALPM] running '30-systemd-update.hook'...

whoami commented on 2021-10-16 23:47

still same. Also I can't find uksmd.strace file

~ > p -Q systemd linux-pf uksmd
systemd 249.5-1
linux-pf-generic-v2 5.14.5-1
uksmd 0.0.0.r9.ee0bf4ede4-1
~ > s status uksmd
× uksmd.service - Userspace KSM helper daemon
     Loaded: loaded (/etc/systemd/system/uksmd.service; enabled; vendor preset: disabled)
     Active: failed (Result: core-dump) since Sun 2021-10-17 02:50:07 MSK; 6s ago
       Docs: https://gitlab.com/post-factum/uksmd
    Process: 19764 ExecStart=strace -o /tmp/uksmd.strace -ff /usr/bin/uksmd (code=dumped, signal=SYS)
        CPU: 69ms

Oct 17 02:50:07 archlinux systemd[1]: Starting Userspace KSM helper daemon...
Oct 17 02:50:07 archlinux systemd[1]: uksmd.service: Control process exited, code=dumped, status=31/SYS
Oct 17 02:50:07 archlinux systemd[1]: uksmd.service: Failed with result 'core-dump'.
Oct 17 02:50:07 archlinux systemd[1]: Failed to start Userspace KSM helper daemon.

post-factum commented on 2021-10-16 14:44

Should be fixed in r9 now. Please check.

post-factum commented on 2021-10-16 14:31

OK, after the recent systemd upgrade I can reproduce the issue. Will check ASAP.

post-factum commented on 2021-10-16 11:38

Please install strace, then replace ExecStart=/usr/bin/uksmd with ExecStart=strace -ff /usr/bin/uksmd and check what syscall it fails on.

whoami commented on 2021-10-16 10:55

downgrading to r6 and r7 and removing overrides and reboot - not helps, same status

whoami commented on 2021-10-16 10:42

I didn't do anything special.

whoami commented on 2021-10-16 10:37

~ > s status --no-pager -l uksmd
× uksmd.service - Userspace KSM helper daemon
     Loaded: loaded (/etc/systemd/system/uksmd.service; enabled; vendor preset: disabled)
    Drop-In: /etc/systemd/system/uksmd.service.d
             └─override.conf
     Active: failed (Result: core-dump) since Sat 2021-10-16 13:36:22 MSK; 3min 45s ago
       Docs: https://gitlab.com/post-factum/uksmd
    Process: 199599 ExecStart=/usr/bin/uksmd (code=dumped, signal=SYS)
        CPU: 78ms

Oct 16 13:36:22 archlinux systemd[1]: Starting Userspace KSM helper daemon...
Oct 16 13:36:22 archlinux systemd[1]: uksmd.service: Control process exited, code=dumped, status=31/SYS
Oct 16 13:36:22 archlinux systemd[1]: uksmd.service: Failed with result 'core-dump'.
Oct 16 13:36:22 archlinux systemd[1]: Failed to start Userspace KSM helper daemon.
~ > s cat uksmd
# /etc/systemd/system/uksmd.service
[Unit]
Description=Userspace KSM helper daemon
Documentation=https://gitlab.com/post-factum/uksmd
ConditionPathExists=/sys/kernel/pmadv/ksm

[Service]
Type=forking
DynamicUser=true
User=uksmd
Group=uksmd
CapabilityBoundingSet=CAP_SYS_PTRACE CAP_DAC_OVERRIDE CAP_SYS_NICE
AmbientCapabilities=CAP_SYS_PTRACE CAP_DAC_OVERRIDE CAP_SYS_NICE
PrivateNetwork=yes
RestrictAddressFamilies=none
RestrictNamespaces=true
PrivateDevices=true
NoNewPrivileges=true
PrivateTmp=true
ProtectClock=true
ProtectControlGroups=true
ProtectHome=true
ProtectKernelLogs=true
ProtectKernelModules=true
ProtectKernelTunables=true
ReadWritePaths=/sys/kernel/mm/ksm/run
ProtectSystem=strict
RestrictSUIDSGID=true
SystemCallArchitectures=native
RestrictRealtime=true
LockPersonality=true
MemoryDenyWriteExecute=true
RemoveIPC=true
TasksMax=2
UMask=0066
ProtectHostname=true
IPAddressDeny=any
SystemCallFilter=@system-service
SystemCallFilter=~@privileged @resources
ExecStart=/usr/bin/uksmd

[Install]
WantedBy=multi-user.target

# /etc/systemd/system/uksmd.service.d/override.conf
[Service]
SystemCallFilter=pmadv_ksm

whoami commented on 2021-10-16 10:34

Oct 16 13:31:53 archlinux systemd[1]: /etc/systemd/system/uksmd.service.d/override.conf:1: Assignment outside of section. Ignoring.