I can't help but feel that you will be choking on a dire lack of memory.
Next time you are running a pkg command, take a poke at a vmstat and look at the free memory column and the scanrate... if freemem is close to 0, and scanrate is not, you have likely found your bunny.
Cheers! Nathan. On 10/03/09 09:20 AM, Maarten wrote:
Hi, Because I wanted to use ZFS, I installed OpenSolaris (2008.11)on an old HP Vectra Pentium III with 256mb of RAM. Because I couldn't install using the machine itself (not enough memory), I transplanted the hard drive to another machine with more memory, installed Osol, and then put the hd back in the old box. This worked like a charm and I'm very pleased, except for one thing: every pkg command is excruciatingly slow. The first use I made of it (pkg install IPSnano from the blastwave repository) resulted in it building its index, which took 4 hours(!). Subsequent use of "pkg install" was faster, but "pkg install IPSnmap" still took something like 20-30 minutes. Most of the time it appears stuck at the "Creating plan" phase, during which there is constant disk activity. I'm pretty sure it's not just down to the machine being slow (although it's definitely no speed demon) as all the other software seems to run at reasonable speeds. The network isn't slow (wget works at expected speeds), and the disk perform as expected when using different apps than pkg. Does anyone have any ideas as to why this would be so slow? Or maybe a handy dtrace script that I can use to diagnose the problem (I'm a bit of a dtrace n00b). Thanks in advance, Maarten
-- ////////////////////////////////////////////////////////////////// // Nathan Kroenert nathan.kroen...@sun.com // // Senior Systems Engineer Phone: +61 3 9869 6255 // // Global Systems Engineering Fax: +61 3 9869 6288 // // Level 7, 476 St. Kilda Road // // Melbourne 3004 Victoria Australia // ////////////////////////////////////////////////////////////////// _______________________________________________ dtrace-discuss mailing list dtrace-discuss@opensolaris.org