correct a bug for file id, and use only half core on server max(nb_cpu, 4)