Package Details: uksmd 6.5.1-2

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://codeberg.org/pf-kernel/uksmd
Keywords: dedup deduplication ksm memory ram uksm uksmd
Licenses: GPL3
Submitter: post-factum
Maintainer: post-factum
Last Packager: post-factum
Votes: 9
Popularity: 0.88
First Submitted: 2019-05-22 19:57 (UTC)
Last Updated: 2024-02-25 23:28 (UTC)

Latest Comments

« First ‹ Previous 1 2 3

post-factum commented on 2021-10-16 14:31 (UTC)

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

post-factum commented on 2021-10-16 11:38 (UTC)

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 (UTC)

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

whoami commented on 2021-10-16 10:42 (UTC)

I didn't do anything special.

whoami commented on 2021-10-16 10:37 (UTC) (edited on 2021-10-16 10:40 (UTC) by whoami)

~ > 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 (UTC) (edited on 2021-10-16 10:35 (UTC) by whoami)

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

whoami commented on 2021-10-16 10:33 (UTC)

nothing changes, it not helps

~ > 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
SystemCallFilter=pmadv_ksm

post-factum commented on 2021-10-16 10:25 (UTC)

@whoami,

what happens if you add pmadv_ksm to the SystemCallFilter= list?

I'm surprised I do not encounter this issue on my machines. Have you made any specific changes in the uksmd.service or system-wide systemd configuration?

whoami commented on 2021-10-16 00:39 (UTC) (edited on 2021-10-16 00:46 (UTC) by whoami)

after latest update can't start daemon, reboot not helps. I've using your binary repo on OBS

linux-pf-generic-v2 5.14.5-1
uksmd 0.0.0.r8.865032cc89-1
~ > systemctl status uksmd
× uksmd.service - Userspace KSM helper daemon
     Loaded: loaded (/usr/lib/systemd/system/uksmd.service; enabled; vendor preset: disabled)
     Active: failed (Result: core-dump) since Sat 2021-10-16 03:35:57 MSK; 51s ago
       Docs: https://gitlab.com/post-factum/uksmd
    Process: 444 ExecStart=/usr/bin/uksmd (code=dumped, signal=SYS)
        CPU: 99ms

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