On 09/10/12 10:53, Philip Brown wrote:
I thought I'd look into what would be required to have my utility hook
into the official one, for installing packages.
So I tried a truss on "pkg install pkg://localpublisher/localpkg", and
looked at the results.
It does over 1600 open() calls. (taking 29 seconds of real time)
"only" 592 of the open calls are python related.
This is for a package whose sole purpose is to deliver *one* file.
To put it diplomatically, seems like there is "room for improvement" there.
I'm guessing, this is due to over-dependence on "call the existing
support library functions", without ever going back to analyze what that
library is actually doing.
Maybe it's time to do that?
And what percentage of execution time are those calls actually consuming?
Even if a file contains only one package is installed there is a
significant amount of validation and client functionality that still
happens just for that one package.
I'm certain there are places where it could be improved, it is software
after all, but pkg(5) is not a tarball extractor, and never will be.
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.
Cheers,
-Shawn
_______________________________________________
pkg-discuss mailing list
pkg-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss