I learned this the hard way, and went through burnout before I understood that I needed to take it easy. Exercising regularly, eating well, proper sleeping habits, friends and family time, all of these make me more productive, effective and happier.
I still work long hours and finding this balance is hard. It's something you do every day and some discipline is needed, just like diet or quit smoking.