Smaalders wrote:
Shawn Walker wrote:
Shawn Walker wrote:
I'm going to try out your patch locally and see if I spot anything else.

Some interesting numbers:

build 109 pkg (baseline, peaked at about 273M RSS):
# time pkg -R / info
real    0m23.608s
user    0m21.266s
sys    0m0.690s

uncached performance is about 155% slower than build 109 pkg (no write permissions on /):
pkg-sat/src$ time pkg -R / info
real    0m36.675s
user    0m34.626s
sys    0m0.753s

first privileged run is about 1177% slower than build 109 (peaked at about 375M RSS):
pkg-sat/src$ time pfexec pkg -R / info
real    4m38.246s
user    4m34.787s
sys    0m1.610s

subsequent privileged is about 30% faster than build 109 (peaked at about 127M rss):
pkg-sat/src$ time pfexec pkg -R / info
real    0m16.505s
user    0m14.742s
sys    0m0.554s

subsequent unprivileged is about 30% faster than build 109 (peaked at about 127M rss):
pkg-sat/src$ time pkg -R / info
real    0m16.877s
user    0m15.106s
sys    0m0.786s

Cheers,

That's more of a slow down on initial than I'd expect... but
plausible if you have a lot of pkgs or a slow drive.

I have both; this is an install of build 109 on a laptop :-)

... try
pkg install --no-refresh -nv somepackageyoudon'thaveyet w/ both...

I see 14.3 seconds vs 3.7 ....

gate tip
--------------------
pkg-tip/src$ time pkg -R / install --no-refresh -nv amp
Creating Plan - Before evaluation:
UNEVALUATED:
+pkg:/[email protected],5.11-0.109:20090305T202732Z

After evaluation:
None -> pkg:/[email protected],5.11-0.109:20090305T202732Z
None -> pkg:/[email protected],5.11-0.109:20090305T184604Z
None -> pkg:/[email protected],5.11-0.109:20090305T184619Z
None -> pkg:/[email protected],5.11-0.109:20090305T195136Z
None -> pkg:/[email protected],5.11-0.109:20090305T195134Z
None -> pkg:/[email protected],5.11-0.109:20090305T184602Z
None -> pkg:/[email protected],5.11-0.109:20090305T195958Z
None -> pkg:/[email protected],5.11-0.109:20090305T200021Z
None -> pkg:/[email protected],5.11-0.109:20090305T184607Z
Actuators:
      restart_fmri: svc:/system/manifest-import:default
None

real    0m23.506s
user    0m19.718s

uncached run on 109 clone using pkg-sat patch
--------------------------------------------------
pkg-sat/src$ time pkg -R /mnt install --no-refresh -nv amp
Creating Plan \ Before evaluation:
UNEVALUATED:
+pkg:/[email protected],5.11-0.109:20090305T202732Z

After evaluation:
None -> pkg:/[email protected],5.11-0.109:20090305T202732Z
None -> pkg:/[email protected],5.11-0.109:20090305T184604Z
None -> pkg:/[email protected],5.11-0.109:20090305T184619Z
None -> pkg:/[email protected],5.11-0.109:20090305T195136Z
None -> pkg:/[email protected],5.11-0.109:20090305T195134Z
None -> pkg:/[email protected],5.11-0.109:20090305T184602Z
None -> pkg:/[email protected],5.11-0.109:20090305T195958Z
None -> pkg:/[email protected],5.11-0.109:20090305T200021Z
None -> pkg:/[email protected],5.11-0.109:20090305T184607Z
Actuators:
      restart_fmri: svc:/system/manifest-import:default
None

real    0m33.265s
user    0m29.345s
sys     0m0.746s

pkg-sat initial privileged run on build 109 root clone
--------------------------------------------------
pkg-sat/src$ time pfexec pkg -R /mnt install --no-refresh -nv amp
Creating Plan / Before evaluation:
UNEVALUATED:
+pkg:/[email protected],5.11-0.109:20090305T202732Z

After evaluation:
None -> pkg:/[email protected],5.11-0.109:20090305T202732Z
None -> pkg:/[email protected],5.11-0.109:20090305T184604Z
None -> pkg:/[email protected],5.11-0.109:20090305T184619Z
None -> pkg:/[email protected],5.11-0.109:20090305T195136Z
None -> pkg:/[email protected],5.11-0.109:20090305T195134Z
None -> pkg:/[email protected],5.11-0.109:20090305T184602Z
None -> pkg:/[email protected],5.11-0.109:20090305T195958Z
None -> pkg:/[email protected],5.11-0.109:20090305T200021Z
None -> pkg:/[email protected],5.11-0.109:20090305T184607Z
Actuators:
      restart_fmri: svc:/system/manifest-import:default
None

real    0m12.697s
user    0m5.433s
sys     0m0.704s

pkg-sat cached privileged run on build 109 root clone
--------------------------------------------------
swal...@zorander:~/devel/pkg-sat/src$ time pfexec pkg -R /mnt install --no-refresh -nv amp
Creating Plan / Before evaluation:
UNEVALUATED:
+pkg:/[email protected],5.11-0.109:20090305T202732Z

After evaluation:
None -> pkg:/[email protected],5.11-0.109:20090305T202732Z
None -> pkg:/[email protected],5.11-0.109:20090305T184604Z
None -> pkg:/[email protected],5.11-0.109:20090305T184619Z
None -> pkg:/[email protected],5.11-0.109:20090305T195136Z
None -> pkg:/[email protected],5.11-0.109:20090305T195134Z
None -> pkg:/[email protected],5.11-0.109:20090305T184602Z
None -> pkg:/[email protected],5.11-0.109:20090305T195958Z
None -> pkg:/[email protected],5.11-0.109:20090305T200021Z
None -> pkg:/[email protected],5.11-0.109:20090305T184607Z
Actuators:
      restart_fmri: svc:/system/manifest-import:default
None

real    0m5.578s
user    0m4.437s
sys     0m0.402s

gate tip on build 109 root (baseline)
--------------------------------------------------
pkg-tip/src$ clear; time pkg -R / info
real    0m28.524s
user    0m26.377s
sys     0m0.900s

pkg-sat unprivileged run on build 109 root (130% slower)
------------------------------------------------------------
pkg-sat/src$ clear; time pkg -R / info
real    0m37.206s
user    0m34.854s
sys     0m0.777s

pkg-sat initial privileged run on build 109 root clone (1013% slower)
------------------------------------------------------------
pkg-sat/src$ clear; time pfexec pkg -R /mnt info
real    4m49.685s
user    4m36.498s
sys     0m1.960s

pkg-sat cached privileged run on build 109 root clone (41% faster)
------------------------------------------------------------
pkg-sat/src$ clear; time pfexec pkg -R /mnt info
real    0m16.814s
user    0m14.803s
sys     0m0.604s

Cheers,
--
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to