On Wed, Aug 21, 2024 at 02:18:44AM CEST, Greg Wooledge <g...@wooledge.org> said:
> On Tue, Aug 20, 2024 at 20:04:11 -0400, Roberto C. Sánchez wrote:
> > sync && sync && sync && swapoff
> > 
> > I couldn't tell why I have sync 3 times, but I know that it's how I've
> > called swapoff since as far back as I can remember.
> 
> Cargo cult.  It was never useful to the best of my knowledge.

Once upon a time, the sync command would return before the actual
syscall where completed. Doing 3 times sync gave you a very high
probability that the first one indeed completed all its writes.

But it was already false in SunOS 4 (~1990)

-- 
Erwan David

Reply via email to