snap refresh is slow with lots of snaps installed

Bug #1782112 reported by Alan Pope 🍺🐧🐱 🦄
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snap Store Server
Fix Released
Low
Unassigned
snapd
Fix Released
Medium
Samuele Pedroni

Bug Description

alan@hal:~$ time snap refresh
All snaps up to date.

real 0m13.751s
user 0m0.035s
sys 0m0.019s

alan@hal:~$ snap list | wc -l
205

So with 200+ snaps installed, the refresh (which doesn't actually need to refresh any) takes a long time.

Debug log attached.

Tags: performance
Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :
Revision history for this message
Bret Barker (noise) wrote :

This is largely due to assertion fetching. We have some plans to batch those but it has not been a priority yet as most devices don't have such a large number of snaps installed nor is a full refresh usually done interactively.

Changed in snapstore:
status: New → Confirmed
importance: Undecided → Low
Michael Vogt (mvo)
Changed in snapd:
importance: Undecided → Medium
status: New → Confirmed
summary: - snap refreh is slow with lots of snaps installed
+ snap refresh is slow with lots of snaps installed
William Grant (wgrant)
tags: added: performance
Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :

This is still quite a problem. I was giving a demo to a customer today, and it's quite embarrassing to have everyone staring at the projector display waiting for "snap refresh (snapname)" from inside a corporate network with a super fast Internet connection.

Revision history for this message
Paweł Stołowski (stolowski) wrote :

Bulk assert refreshes are in progress (close to become available) in snapd.

Changed in snapd:
assignee: nobody → Samuele Pedroni (pedronis)
status: Confirmed → In Progress
Changed in snapd:
status: In Progress → Fix Released
Revision history for this message
William Grant (wgrant) wrote :

Bulk assertion refreshes indeed work well. With 25 snaps installed, from Australia:

wgrant@vanth:~$ time sudo snap refresh
All snaps up to date.

real 0m1.853s
user 0m0.012s
sys 0m0.025s

Changed in snapstore-server:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.