On 01/ 8/10 05:54 PM, Danek Duvall wrote:
Shawn Walker wrote:
The dtrace profile of a 'pkg refresh --full' for the /dev repository
seems to indicate that vast majority of the time spent is in JSON
encode/decode.

Hm, okay.  That's what I'd understood, but writing the object I'd just
loaded in takes a second and a half on my x86 box, while an image create
takes about a minute, most of which is spent with "Caching catalog ..." as
the status.  Perhaps encoding the catalog as a JSON object is the slowdown,
or perhaps I'm timing the wrong thing, but somewhere the two don't compare
properly, which is confusing.

I'm mystified by image-create taking a minute for you, since on my system, this is the result I get with gate tip:

$ ptime pkg image-create -p opensolaris.org=http://ipkg.sfbay/dev /tmp/image

real       15.087369854
user       12.176858676
sys         0.356875532

A pkg refresh --full is comparable:

$ ptime pkg -R /tmp/image refresh --full

real       18.121138142
user       12.110212651
sys         0.357763138

And the /tmp isn't the reason for the fast times, using my ~/ instead for the image gives me only slightly increased execution times (.3s roughly).

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

Reply via email to