date
Пт 23 окт 2020 08:11:34 MSK

snap changes
ID   Status  Spawn               Ready               Summary
79   Doing   today at 06:19 MSK  -                   Автоматически обновить 
пакеты "core", "chromium"


snap change 79
Status  Spawn               Ready               Summary
Done    today at 06:19 MSK  today at 06:19 MSK  Проверка доступности 
необходимых компонентов "core"
Doing   today at 06:19 MSK  -                   Загрузить пакет "core" (10185) 
с канала "latest/stable" (0.00%)
Do      today at 06:19 MSK  -                   Получить и проверить 
подтверждение для пакета "core" (10185)
...

skipping the minor "Do"s
...
Do      today at 06:19 MSK  -                   Start snap "chromium" (1362) 
services
Do      today at 06:19 MSK  -                   Remove data for snap "chromium" 
(1328)
Do      today at 06:19 MSK  -                   Remove snap "chromium" (1328) 
from the system
Do      today at 06:19 MSK  -                   Clean up "chromium" (1362) 
install
Do      today at 06:19 MSK  -                   Run configure hook of 
"chromium" snap if present
Do      today at 06:19 MSK  -                   Run health check of "chromium" 
snap
Doing   today at 06:19 MSK  -                   Consider re-refresh of "core", 
"chromium"


snap list
chromium                   86.0.4240.75                1350    latest/stable    
 canonical✓        -
core                       16-2.47                     10126   latest/stable    
 canonical✓        core


snap refresh --list
chromium  86.0.4240.111  1362    canonical✓  -
core      16-2.47.1      10185   canonical✓  core


Using 23% of CPU.
ps aux | grep snap
root        1124 23.0  0.2 2925732 35356 ?       Ssl  06:19  20:18 
/usr/lib/snapd/snapd


The snap using 99% or 65% + 32% (btrfs filesystem) of SSD disk transfer.
sudo atop -D
    PID SYSCPU USRCPU  VGROW  RGROW  RDDSK  WRDSK S CPUNR  DSK CMD            
   1124  0.33s  2.00s     0K     0K     0K 41888K S     4  65% snapd          
    363  0.08s  0.00s     0K     0K     0K 20288K S     6  32% btrfs-transact 


sudo pidstat -d -T ALL -p `pidof snapd` 5
Linux 5.4.0-52-generic (desktop)        23.10.2020      _x86_64_        (12 CPU)
08:15:18      UID       PID   kB_rd/s   kB_wr/s kB_ccwr/s iodelay  Command
08:15:23        0      1124      0,00   4314,57      0,00       0  snapd


How you can see, the snap using: 23% of CPU, ~99% disk transfer, writes 4.3 
Mb/s (by `atop` writes 43-50 Mb per 10 seconds), I don't see any net traffic. 
Download status is "(0.00%)" since for 2 hours I turn on my computer. 
That is, snap written on SSD: 2 hour * 60 min * 60 sec * 4.3 Mb/s = 31 Gb for 2 
hours!!! And such still almost each day non-stop... WTF???

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1839237

Title:
  snapd disk write usage very high on 19.04 with snapd 2.39.3

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1839237/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to