Computation of a near-optimal service policy for a single-server queue with homogeneous jobs