By default KSM is not installed on Fedora.
To install it:
dnf install ksmtuned
Start service:
systemctl start ksm
systemctl start ksmtuned.service
systemctl start ksmtuned.service
enable KSM:
echo 1 > /sys/kernel/mm/ksm/run
checkk KSM status:
cat /sys/kernel/mm/ksm/run
check number of shared memory pages:
cat /sys/kernel/mm/ksm/pages_shared