Hi,
I have filed a bug against snapd but it seems it would be more appropriate to discuss the problem here, first.
I have built a new snap (bsrally) based on another one (fcbtest). Both snaps are slow in their execution, compared to the same software (rally + rally-openstack plugin + tempest verifier) running on a virtual env.
nagiososc@juju-b6ff74-29:~$ time bsrally.rally --config-file /home/nagiososc/rally.conf verify list-verifiers
+--------------------------------------+-----------------+---------+-----------+---------------------+---------------------+-----------+-------------+-------------+--------+
| UUID | Name | Type | Platform | Created at | Updated at | Status | Version | System-wide | Active |
+--------------------------------------+-----------------+---------+-----------+---------------------+---------------------+-----------+-------------+-------------+--------+
| 045ffc5e-e915-4f13-a30c-2ca43745ae81 | tempestverifier | tempest | openstack | 2019-09-18T14:41:51 | 2019-09-18T14:41:55 | installed | tags/21.0.0 | True | :-) |
+--------------------------------------+-----------------+---------+-----------+---------------------+---------------------+-----------+-------------+-------------+--------+
real 0m20.989s
user 0m8.801s
sys 0m0.843s
The difference with the virtual environment (no snap) is:
(rally) nagiososc@juju-b6ff74-23:~$ time rally verify list-verifiers
+--------------------------------------+-----------------+---------+-----------+---------------------+---------------------+-----------+---------+-------------+--------+
| UUID | Name | Type | Platform | Created at | Updated at | Status | Version | System-wide | Active |
+--------------------------------------+-----------------+---------+-----------+---------------------+---------------------+-----------+---------+-------------+--------+
| 47cbeeb6-e1e5-4e35-bf34-b8aa883ebadc | tempestverifier | tempest | openstack | 2019-09-17T14:35:46 | 2019-09-17T14:36:22 | installed | 21.0.0 | False | :-) |
+--------------------------------------+-----------------+---------+-----------+---------------------+---------------------+-----------+---------+-------------+--------+
real 0m4.781s
user 0m3.599s
sys 0m0.628s
On the other hand, I’ve been suggested to use snap run --trace-exec
or snap run --strace=--raw
, but they both fail due to permission issues (snap runs on a privileges and nested lxd container, with apparmor enforced).
What could I do to track the reason behind such slowness in execution?
Thank you.