> What about moving choice_fastest_hash() to run_store()? > KSM anyway starts with ksm_run = KSM_RUN_STOP and does not scan until > userspace writes !0 to /sys/kernel/mm/ksm/run. > Selection of the hash function when KSM is actually enabled seems quite > appropriate... Hi Mike, This is a good idea to select hash function from run_store() when (flags & KSM_RUN_MERGE) is set for the first time. Pavel