I perceive staying competitive as being paid fairly for your work (within some reasonable margin). If you are becoming less and less useful to the company/industry, but your salary is getting higher over the years, your risk of being laid off increases significantly. However, I can't help but mention that if you nurture certain political skills and you are already have some management responsibilities, you can stay "forever" in some big corp even though you are not very useful...