to be very busy but in fact achieve very little
chase your (own) tail
Definitions from the Oxford Advanced Learner's Dictionary, 9th edition