On 12/22/11 06:53, Ervin Yan wrote:
Hi,
Recently, we are moving to support Solaris 11 GA release. But we met one
performance issue and really need your help to improve it.
To be compatible with our previous releases, we decided not to use package
repository, but build our packages with archive format (p5p) which is similar
with the .pkg format on Solaris 10.
Ideally, you should be providing a network repository for distribution
of your software. That provides the best end user experience for
Solaris 11 users.
Thus we run 'pkg install -g Pkgxxx.p5p Pkgxxx' to install packages, but the
command usually take 2+ minutes to finish installation for each package. Our
product have 25+ packages, so it always take 1 hour to install our stack on
Solaris 11.
It is really much worse than we do on Solaris 10.
So I really appreciate if you could provide some suggestions or ideas so that
we can improve the performance.
On Solaris 10, the pkgadd didn't do much more than extract a tarball
onto the system for install purposes.
The pkg(1) command however actually verifies the dependencies of the
entire system are correct and that installing the new package will not
cause any conflicts for each package operation performed. That does
mean there is significantly more overhead per operation.
As a result, as Alan mentioned, you should be installing all of the
packages you need at the same time.
A .p5p file (pkg(5) package archive) can contain one or more packages.
So in this case, you should be placing all of your packages into a
single .p5p file and then performing the install like this:
pkg install -g /path/to/my.p5p pkg1 pkg2 pkg3 pkg4 pkg5 ...
I would note that the old SVr4 package system supported similar
functionality.
pkgrecv(1) contains instructions about how to do this.
-Shawn
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss