On 12/04/2021 09.50, Carlos E. R. wrote:
On 12/04/2021 03.47, David Haller wrote:
Hello,
On Mon, 12 Apr 2021, Carlos E. R. wrote:
It is just a fact, it can not.
Situation.
...
If you are curious, I have been investigating a problem I have with hibernation: sometimes it does not succeed, it stalls. When this happens, I can not poweroff the machine, in the end I have to switch the power off.
What I have found, is that the machine is, those times, is trying to sync the filesystem and failing, precisely because texpire is running. Probably leaving the machine there for half an hour would succeed - but obviously, sometimes one is in a hurry to hibernate of poweroff (battery running out, say), and I had no idea that waiting for half an hour might work.
I have found out more. In my case, there is a dedicated partition to /var/spool/news/ (formatted as reiserfs), and this partition goes 100% busy during texpire. If I run "sync" fifteen minutes after texpire finishes, it takes a minute to complete. A sync at other point in the day, takes about half a minute.
The partition was mounted "relatime,lazytime". If I take out the "lazytime" parameter, the sync completes in a second (except if texpire is running).
My conclusion is that lazytime is broken in the case of reiserfs (or in the case of news). The writing to disk is not delayed to an appropriate time, it is delayed for ever.
leafnode, texpire, do a lot of timestamp changing, compared to other tools.
More data points: if the partition is mounted "nolazytime", texpire takes 45 minutes to run instead of 30. The impact of "lazytime" in performance is huge, with this particular load (/var/spool/news). Next question. As "lazytime" current implementation delays write for 24 hours (or up to), I wonder if I can "sync" just a partition. I know I have asked this before, I just can't remember what we found out about it in the past... (if you have better memory than me, or better google foo skills, and know the link to the thread, just post it ;-) ) -- Cheers / Saludos, Carlos E. R. (from 15.2 x86_64 at Telcontar)