dri/i9*5: correctly calculate the amount of system memory