Hi Dave! On Wed, 11 Jan 2023 09:49:06 +1100, Dave Chinner wrote: > From: Dave Chinner <dchinner@xxxxxxxxxx> > > This creates a bunch of files in a dir, then deletes 97% of them > attempting to leave 1 allocated inode per inode chunk so that they > aren't freed. Performance is badly limited by task creation and > destruction for each inode created. Fix this by using "echo -n > > file" rather than touch so that the shell creates the empty files > without needing to fork/exec a separate task for each creation. > > This reduces runtime from 45s down to 15s. I see >7x improvement on a zram device, be it from a lower baseline :) Reviewed-by: David Disseldorp <ddiss@xxxxxxx> Cheers, David