file size estimation for SAM