I have equation of form $$ \frac{dx}{dt} = f(x), $$ and know and for some initial value $x_0$ its solution is periodic with unknown period. What can I tell about $f(x)$ apart from non-linearity (or $f(x) \equiv 0$)?
Also, may be I'm wrong but I think that period is somehow related to "non-linearity" of $f(x)$, being longer for "more non-linear" functions. Is there something behind this intuition?
I'm going to assume you mean there exists a periodic function $x(t)$ such that its derivative exists everywhere and equals $f(x(t))$ at time $t$, i.e. $\frac{d}{dt}x(t) = f(x(t))$.
If this is the case, you can conclude that $f(x_0) = 0$. Differentiability implies continuity, and the intermediate value theorem and the fundamental theorem of calculus can give you a quick contradiction.
EDIT: Let $T$ denote the [unknown] first time $x(T) = x_0$ again. Suppose there exists a $t$ such that $x(t) \neq x_0$ and $0 < t < T$. By the intermediate value theorem, there exists times $t_1, t_2$ such that $x(t_1) = x(t_2) = (x(t) + x_0)/2$ and $0 < t_1 < t < t_2 < T$. However, since your dynamics don't depend on time at all, the functions $y(t) = x(t - t_1)$ (A solution to your differential equation starting with initial condition $x(t_1)$) must equal $y'(t) = x(t - t_2)$. This argument, when repeated $T/(t_2 - t_1)$ times, contradicts the periodicity. (There may be a quicker way to prove/state this, but this is what came to mind first.)