Re: wait until swapoff is *actually* finished (it returns too early)?
On Tue, Aug 20, 2024 at 08:18:44PM -0400, Greg Wooledge wrote:
> 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.
>
Yeah, that is not at all unspurising to me.
It seemed somewhat odd and since I couldn't, even after wracking my
brain, come up with a source or even a vaguely plausible reason for that
particular incantation, I figured it either wasn't doing what I thought
I what was doing or (more likley) it was doing something but essentially
as a side-effect.
Regards,
-Roberto
--
Roberto C. Sánchez
Reply to: