lp://staging/~pollinate/pollinate/trunk
- Get this branch:
- bzr branch lp://staging/~pollinate/pollinate/trunk
Branch merges
Related bugs
Related blueprints
Recent revisions
- 373. By Scott Moser
-
pollinate: use systemd-detect-virt if available.
Previously code would use systemd-detect-virt if /run/systemd was
st directory. Testing found that /run/systemd existed in 14.04 environments
but systemd-detect-virt did not.So, a better path is to just check for availability of systemd-
detect- virt,
and use it if it is available. - 372. By Scott Moser
-
pollinate: fix bug on xen when not booted with systemd.
When booted in xen without systemd, user-agent would contain
virt/virt/xen rather than virt/xen. The change here fixes that to now
report virt/xen. - 369. By Scott Moser
-
pollinate: include img/build_
name/server in user-agent. Ubuntu minimal images include build_name as 'minimal', so the
stated reason for not including 'server' is now invalid. - 366. By Scott Moser
-
pollinate: Speedups when collecting information for user-agent.
The primary win here is in reducing the number of calls to dpkg-query
from 3 (1 per package query) to 1. The other change is to reduce
invocations of uname from 3 to 1.The net win depends really on how many packages are in the dpkg database.
Very unscientifically here are some results of 100 runs:
Inside a stock bionic container:
# baseline (run 'sh -c :' instead of pollinate)
# time sh -c 'i=0; while [ $i -lt 100 ] && i=$((i+1)); do sh -c :; done'
real 0m0.067s user 0m0.062s sys 0m0.006s## stock bionic container (~450 packages)
# orig
real 0m4.358s user 0m3.471s sys 0m1.109s
# new
real 0m2.567s user 0m2.126s sys 0m0.652s## desktop system (bionic with ~ 3700 packages)
# orig
real 0m19.709s user 0m17.741s sys 0m2.294s
# new
real 0m7.335s user 0m6.642s sys 0m0.996s
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)