Since you are not feeding 4Gb of data down the pipe, but just the output of
md5sum
for a plurality of files, changing the -s 4g
option such that it reflects an estimate of the size of md5sum
's output, e.g. -s 512
, should be a step in the right direction.