If you have been a PR for more than 5 years at the time you apply to renew, then it is the last 5 years that they look at.
If you have not yet been a PR for 5 years by the time you apply, they will look at if you already have or still can meet the residency requirements in your first 5 years, counting from your landing date.