Twice I was out of the country for more than 6 months, once for 7 months and other time for 9 months or so. If you have more frequent trips but not longer than 6 months, still IO can ask you to show the proof that you didn't abandon your residency, ie., show that you paid taxes for last 5 years...