We have moved to a new Sailfish OS Forum. Please start new discussions there.
5

[Xperia X] [2.1.4] systemd taking up two full CPUs [answered]

asked 2018-04-26 16:27:49 +0200

Giacomo Di Giacomo gravatar image

updated 2018-04-27 13:18:00 +0200

In the latest weeks, on the Xperia X, it's happening that systemd starts using high percentages of two CPUs. One of the offending tasks has PID 1. The only solution I found so far is to reboot the phone. The phenomenon might be related to the use of certain Android apps; in particular, the game Hay Day appears to trigger it. I still have to investigate more about this.

EDIT: The issue is due to a leftover from OSM Scout Server. See answer for the solution.

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by olf
close date 2018-04-29 01:52:39.434272

Comments

1

What do the logs say ( journalctl -f as root) is there some service contantly being restarted? You would see that in logs then. This would eat much cpu, had same Problem on my Xperia after i deinstalled WifiKill3r and the service was still enabled.

jayki ( 2018-04-26 17:58:57 +0200 )edit

@jayki Good point. systemd is continuously trying to spawn osmscout-server.service, which I have removed. I wonder who is trying that and why.

Giacomo Di Giacomo ( 2018-04-26 18:17:18 +0200 )edit

Okay, a workaround is reinstalling OSM Scout Server, which I would rather not do because of the tiny system partition. Any ideas about who might be trying to launch OSM Scout Server, or where might I check for some leftovers from past installations?

Giacomo Di Giacomo ( 2018-04-26 18:32:49 +0200 )edit
2

It sounds like there is something broken in the uninstallation process, worth reporting here: https://github.com/rinigus/osmscout-server/issues

nthn ( 2018-04-26 21:44:00 +0200 )edit

Right @nthn, issue reported.

Giacomo Di Giacomo ( 2018-04-27 10:25:52 +0200 )edit

1 Answer

Sort by » oldest newest most voted
4

answered 2018-04-27 11:29:30 +0200

Giacomo Di Giacomo gravatar image

updated 2018-04-27 11:35:36 +0200

I answer my own question thanks to @rinigus who promptly addressed me to the issue. Remove socket activation by means of

systemctl --user disable osmscout-server.socket

as root. You can find more information about this here.

edit flag offensive delete publish link more

Question tools

Follow
1 follower

Stats

Asked: 2018-04-26 16:27:49 +0200

Seen: 520 times

Last updated: Apr 27 '18