kmp period