On 9/10/12 11:04 AM, Shawn Walker wrote:

I assure you that a significant amount of time has been spent doing performance analysis and testing on pkg(5) (along with the development resulting from it) on a continual basis. I'm confident that you're not going to find any obvious low-hanging performance fruit.

I would encourage you to wait for the next update release of Solaris 11; you'll find significant performance improvements.


well, thank you for the glimpse into "coming attractions"... that is somewhat encouraging.
That being said: how much of a performance improvement?
Even if you managed to do the extreme, and "cut the time in half", in my opinion, that still needs work, since that would still make it take 15 seconds, to install a package with *one file in it*, and no special actions. It should be under 10 seconds for a trivial case.


Based soley on my further analysis of my truss, I'd say that there is indeed "obvious low-hanging fruit". It would appear to spend the majority of its time, going through individual files under /var/pkg/publisher/solaris/pkg
Timestampwise, from the 6-second mark , all the way through 23 seconds.
This is not scalable. Both in theory, and clearly not in practice, either.
I thought pkg was supposed to use some kind of internal "database" ?
Cross-referencing with the manpage, I guess it only uses one for *search*, but not for actual pkg operation? This is backwards. Priority should be on speed of normal operation, not on esoteric searches.


For a comparison, "yum install rxvt" takes 7 seconds.
That's WITH pulling in a dependency, AND dealing with a "continue(y/N)" prompt. Not to mention a cross-internet download, rather than local package, which is what my above test was.



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

Reply via email to