On Sun, May 25, 2008 at 4:39 PM, Shawn Walker <[EMAIL PROTECTED]> wrote: > > The issues with the packagemanager performance have nothing to do with > it being written in Python; as far as I'm aware. > > If you look at defect.opensolaris.org, you'll see a few bugs have been > filed against both the GUI and the CLI itself. Here are just a few of > them: > > http://defect.opensolaris.org/bz/show_bug.cgi?id=1905 > http://defect.opensolaris.org/bz/show_bug.cgi?id=1949 > http://defect.opensolaris.org/bz/show_bug.cgi?id=1721 > > As I understand it, the primary issue is with how the pkg client > performs searches at the moment.
Most pkg operations seem painfully slow. It feels much slower than svr4 packaging - which isn't good, because performance is something where svr4 packaging doesn't shine. The following comparisons aren't scientific: Is a package installed? pkginfo -q SUNWcsr real 0.008 user 0.003 sys 0.003 No direct IPS equivalent. What packages are installed? pkginfo (cold) real 9.785 user 0.281 sys 0.203 pkginfo (warmed up) real 0.305 user 0.247 sys 0.048 pkg list real 1:28.149 user 1:27.812 sys 0.226 Ouch! Just list a package: pkginfo SUNWzsh real 0.007 user 0.003 sys 0.003 pkg list SUNWzsh real 1.115 user 0.927 sys 0.185 And the verbose version: pkginfo -l SUNWzsh real 0.602 user 0.516 sys 0.073 pkg info SUNWzsh real 1.373 user 0.915 sys 0.206 Long listing of all packages: pkginfo -l real 7.512 user 6.428 sys 0.297 pkg info real 11.669 user 8.625 sys 0.698 What files are in a package? pkgchk -l SUNWzsh real 0.806 user 0.519 sys 0.088 pkg contents SUNWzsh real 2.802 user 0.953 sys 0.253 What package is a file in? pkgchk -l -p /usr/bin/ls real 0.430 user 0.348 sys 0.072 pkg search /usr/bin/ls real 10.304 user 1.457 sys 0.457 Now, SVR4 packaging is one of the contributors to the Slowaris moniker. But it is faster - sometimes by two orders of magintude - in the above comparisons. The systems are different, of course. The one running Solaris 10 that I used for the SVR4 numbers is probably a bit quicker overall, but it does have 3 times as many packages installed which is going to even that out, and there are some pretty inefficient bits of code (and lots of weeds that ought to be dug up) in the SVR4 code, so I would expect pkg to win all these as it has a lot less work to do. -- -Peter Tribble http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/ _______________________________________________ indiana-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/indiana-discuss
