[systemd-devel] systemd-readahead -> stops after 2 minutes

Reindl Harald h.reindl at thelounge.net
Sun Apr 14 10:18:12 PDT 2013



Am 14.04.2013 18:13, schrieb Reindl Harald:
> Am 14.04.2013 06:42, schrieb Kok:
>> You can modify systemd-readahead-done.timer, basically change:
>>
>> OnActiveSec=10s
>>
>> to whatever value you like
> 
> thanks, i give it a try with 3600 seconds what should cover
> also a long coffee and mostly powner on with WOL and sync
> work-data while drive to the office

seems like i covered a bug
the collector stops after exactly 2 minutes

systemd-201-2.fc18.2.x86_64
kernel-3.8.7-201.fc18.x86_64

"/etc/systemd/system/systemd-readahead-done.timer" works and triggers
stop "systemd-readahead-collect.service" which i saw in the syslog
BUT as you see below the switch from "active (running)" to "active (exited)"
happens long before and so most things are not covered in /.readahead
nor i see a chance get them within the configured hour

if i start the collector manually it stops after exactly 2 minutes

[root at rh:~]$ date; /usr/lib/systemd/systemd-readahead collect; date
So 14. Apr 19:12:29 CEST 2013
So 14. Apr 19:14:29 CEST 2013

[root at rh:~]$ date; /usr/lib/systemd/systemd-readahead collect; date
So 14. Apr 19:15:11 CEST 2013
So 14. Apr 19:17:11 CEST 2013
________________________________________________

Apr 14 18:59:31 rh systemd[1]: Starting Stop Read-Ahead Data Collection 3600s After Completed Startup.
Apr 14 18:59:31 rh systemd[1]: Started Stop Read-Ahead Data Collection 3600s After Completed Startup.

[root at rh:~]$ systemctl status systemd-readahead-collect.service
systemd-readahead-collect.service - Collect Read-Ahead Data
   Loaded: loaded (/usr/lib/systemd/system/systemd-readahead-collect.service; enabled)
   Active: active (running) since So 2013-04-14 18:59:19 CEST; 1min 8s ago
     Docs: man:systemd-readahead-replay.service(8)
 Main PID: 407 (systemd-readahe)
   Status: "Collecting readahead data"
   CGroup: name=systemd:/system/systemd-readahead-collect.service
           └─407 /usr/lib/systemd/systemd-readahead collect

[root at rh:~]$ systemctl status systemd-readahead-collect.service
systemd-readahead-collect.service - Collect Read-Ahead Data
   Loaded: loaded (/usr/lib/systemd/system/systemd-readahead-collect.service; enabled)
   Active: active (exited) since So 2013-04-14 18:59:19 CEST; 2min 14s ago
     Docs: man:systemd-readahead-replay.service(8)
  Process: 407 ExecStart=/usr/lib/systemd/systemd-readahead collect (code=exited, status=0/SUCCESS)
   Status: "Collecting readahead data"

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20130414/2c4f147d/attachment.pgp>


More information about the systemd-devel mailing list