Systemd-swap: Regression with old config. Unable to start "systemd-swap: line 78: read: 1s: invalid timeout specification"

Created on 8 Jun 2020  ·  5Comments  ·  Source: Nefelim4ag/systemd-swap

OS: Arch Linux
Version: 4.1.0-1

/etc/systemd/swap.conf compare to .pacnew conf

< swapfc_frequency=1s         # How often check free swap space
---
> swapfc_frequency=1          # How often to check free swap space

top shows constantly 30++% CPU usage

1662996 root       1 -19    7512   2552   1836 S  32.0   0.0   0:12.29 bash systemd-swap start                                                                                                                  

Systemd Journal flooded infinitely with this message

Jun 08 23:17:32 shingetsu systemd-swap[4191261]: /usr/bin/systemd-swap: line 78: read: 1s: invalid timeout specification
Jun 08 23:17:32 shingetsu systemd-swap[4191261]: /usr/bin/systemd-swap: line 78: read: 1s: invalid timeout specification
Jun 08 23:17:32 shingetsu systemd-swap[4191261]: /usr/bin/systemd-swap: line 78: read: 1s: invalid timeout specification
Jun 08 23:17:32 shingetsu systemd-swap[4191261]: /usr/bin/systemd-swap: line 78: read: 1s: invalid timeout specification
Jun 08 23:17:32 shingetsu systemd-swap[4191261]: /usr/bin/systemd-swap: line 78: read: 1s: invalid timeout specification

Most helpful comment

Took me a couple days of a burning hot laptop before I noticed this.

All 5 comments

As noticed, we now define the timeout frequency in seconds without a suffix

+1 above fix solved my error too

Took me a couple days of a burning hot laptop before I noticed this.

Same - fixed it for me too!

not only burning cpu but also trashing the journal, basically erasing anything useful upon hitting the disk usage limit

Was this page helpful?
0 / 5 - 0 ratings

Related issues

switchpants picture switchpants  ·  16Comments

adrelanos picture adrelanos  ·  3Comments

pheiduck picture pheiduck  ·  16Comments

cerebrux picture cerebrux  ·  4Comments

dou4cc picture dou4cc  ·  7Comments