← Back to team overview

ubuntu-phone team mailing list archive

Nice to see you, to see you Nice.

 

We have a bunch of processes running on the phone, rtkit-daemon (which isn't actually a rootkit, rt stands for real time and it has something to do with pulse audio) runs at a nice level of 1, which means it has a low priority. Then we have a heap of things with nice of 0, and finally some super priority important things listed here:

63 root 10 -10 0 0 0 S 0.0 0.0 0:00.00 krfcommd 2320 phablet 9 -11 303028 9968 8084 S 0.0 1.0 0:57.88 pulseaudio
   16 root       0 -20       0      0      0 S  0.0  0.0   0:00.00 khelper
   18 root       0 -20       0      0      0 S  0.0  0.0   0:00.00 netns
   19 root       0 -20       0      0      0 S  0.0  0.0   0:00.00 fs_sync
   20 root       0 -20       0      0      0 S  0.0  0.0   0:00.38 suspend
   23 root       0 -20       0      0      0 S  0.0  0.0   0:00.00 kblockd
26 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 cfg80211
   28 root       0 -20       0      0      0 S  0.0  0.0   0:00.00 emi_mpu
   32 root       0 -20       0      0      0 S  0.0  0.0   0:00.00 crypto
   53 root       0 -20       0      0      0 S  0.0  0.0   0:00.00 uether
   54 root       0 -20       0      0      0 S  0.0  0.0   0:00.00 binder
62 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 mtk_vibrator
   75 root       0 -20       0      0      0 S  0.0  0.0   0:00.00 accdet
77 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 accdet_eint 78 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 accdet_disable 79 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 sensor_polling
   95 root       0 -20       0      0      0 S  0.0  0.0   0:00.00 deferwq
   96 root       0 -20       0      0      0 S  0.0  0.0   0:00.00 f_mtp
199 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 ext4-dio-unwrit 207 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 ext4-dio-unwrit
  223 root       0 -20       0      0      0 S  0.0  0.0   0:00.25 loop0
227 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 ext4-dio-unwrit 367 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 ext4-dio-unwrit 903 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 ext4-dio-unwrit 911 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 ext4-dio-unwrit
 1087 root       0 -20       0      0      0 S  0.0  0.0   0:00.00 hci0
 1093 root       0 -20       0      0      0 S  0.0  0.0   0:00.00 hci0
1120 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 fm_timer_wq 1123 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 fm_eint_wq

I have no idea what most of those do, but some will be system processes that do indeed deserve to be given some priority. What I don't appear to see in the important stuff list is the user interface of the operating system, the dash, the alt-tab switcher, the launcher side panel. This seems to me to be likely to allow apps to starve things like the switcher, leading to apps locking up the screen to the point that you can't get to the switcher to swipe the broken app away. This looks like fate of the tablet at the end of the review here http://www.omgubuntu.co.uk/2016/05/bq-m10-ubuntu-tablet-review-crazy-slow when the reviewer has a ton of apps loaded and pathwind finally kills it all, and locks up the UI.

Am I right in my thinking here? Can nice values fix this kind of problem - having apps at a lower priority than the operating system bits of the UI?


Follow ups