Linked by Thom Holwerda on Sun 31st Dec 2006 17:26 UTC, submitted by Charles A Landemaine
PC-BSD Just in time for the new year, the PC-BSD team is pleased to announce the immediate availability of PC-BSD version 1.3 for public download. You may download this release and view the change log. The team is also launching a web design contest for the new web site of 2007.
Thread beginning with comment 197851
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE: PBI and resource usage
by Doc Pain on Tue 2nd Jan 2007 00:10 UTC in reply to "PBI and resource usage"
Doc Pain
Member since:
2006-10-08

"If PBIs contain all a program's dependencies, then won't it waste memory? After all, the run-time advatange to shared libraries is quicker startup and reduced memory consumption."

Correct is: Because PBI packages contail all dependencies, they consume more hard disk space than the respective precompiled package without the dependencies would. Files stored on the hard disk do not consume any memory (RAM).

Correct is: If you install a PBI package, it will install all the needed dependencies (i. e. the libraries) unter a certain path that belongs to this special package. This consumes more hard disk space than simply using system wide available application libraries in /usr/local/lib/ and /usr/X11R6/lib/.

And, as far as I can tell, correct is: If the installed application is run, it loads its libraries as shared libraries. Any other program can access them, as long they are loaded and they are of the needed version. Every library is only loaded once.

So, of course PC-BSD uses shared libraries, especially for the system libraries (libc, libm etc.).

I hope I'm not telling you anything wrong, but that's the way I understood it. Maybe, a more advanced PC-BSD user can tell for sure.

Reply Parent Score: 3

RE[2]: PBI and resource usage
by Joe User on Tue 2nd Jan 2007 00:36 in reply to "RE: PBI and resource usage"
Joe User Member since:
2005-06-29

To tell you the truth, I don't know how the FreeBSD kernel handles duplication of libraries, if it detects they're similar and loads them on the same page, but on a daily usage, you don't feel it's using RAM. My RAM usage has not been bigger than on Ubuntu. Try it yourself.

Reply Parent Score: 2

RE[2]: PBI and resource usage
by jimveta on Tue 2nd Jan 2007 08:50 in reply to "RE: PBI and resource usage"
jimveta Member since:
2006-09-21

Thanks for replies. I guess I'll have to try it myself. I think what would answer the truly-shared or not issue is to run ldd on an application installed from a PBI and determine where its dependecies are. If for example, both program A and program B dependended on libperl.so, but ldd shows that both programs find libperl.so at different locations, then I would think that libperl.so is not actually shared between the two.

Reply Parent Score: 2