by definition a periodic function is one which repeats itself when some constant value is added to its dependant variable
f(x + nk) = f(x) for all x, n natural number and k the period
sin(1/x) is an oscillatory function but not periodic because the decrements made in x to get same value go on decreasing as we go towards 0
this is a question of functions and not of physics