Ask Your Question
0

I/O intensive tasks after suspend

asked 2016-10-17 09:22:42 -0600

updated 2016-10-17 10:29:34 -0600

Hi, posting here as I didn't have much time to do a proper research to file a bug report.

I tend to never reboot my laptop (with Fedora 24) and just close the lid and suspend it when I'm not using it. Now, it seems that when it stays suspended for some time (like a couple hours or for the night) it takes quite a while to give me a functional gdm prompt. A quick look at iotop usually shows a disk intensive task hogging everything up, usually updatedb or tracker-something.

Is this the expected behaviour or something wrong with my setup? I guess they are supposed to be scheduled on idle or at night but it they fail they get run as soon as possible. But this way they end up to slow everything when you most would need a responsive system.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-10-20 21:22:08 -0600

snowolfe gravatar image

You are correct, there is a number of jobs that are scheduled to run regularly (usually once a day) to maintain your system. If these jobs do not run because the system is asleep, then anacrond runs them when the system wakes again. You can tune this behaviour by editing the /etc/anacrontab config file - see the man pages referenced in the config file for details.

FYI: updatedb indexes all files on the computer for quick locate lookups, and tracker also indexes file content for quick searches within various search tools.

The updatedb process should be pretty quick, unless you have major file churn, whereas tracker does more in depth indexing, so likely takes longer.

edit flag offensive delete link more

Comments

Thank you, I must have missed your answer. Both processes take just a couple of minutes, but while they do they completely hog the system, at least in a non ssd machine. As far as I can tell they are implemented as systemd timers, not run by anacrond. I wonder if is there a way to just postpone them for a couple of minutes after resume.

fargiolas gravatar imagefargiolas ( 2016-11-08 01:11:28 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-10-17 09:22:42 -0600

Seen: 63 times

Last updated: Oct 20 '16