There is disclosed a technique for use in managing data storage in a data storage system. A first metric indicative of a specified wear rate for a flash drive is determined where the flash drive has a first portion allocated as logical space and a second portion allocated as over-provisioning space. An allocation ratio indicative of the ratio between the first portion and the second portion is determined. The allocation ration is dynamically adjusted to cause the current wear rate to change.