On Fri, May 22, 2009 at 5:28 PM, Shawn Walker <swalker at opensolaris.org>
wrote:
> Martin Bochnig wrote:
>>
>> It is not possible that it really ran out of memory, as more than
>> enough swap is available, so it must be a bug, which is the reason why
>> I write this follow-up message.
>
> As you showed later, it really did run out of memory.
>
> You're installing a significant number of packages and you only have:
>
> Filesystem ? ? ? ? ? ?Size ?Used Avail Use% Mounted on
> swap ? ? ? ? ? ? ? ? ?369M ? 24K ?369M ? 1% /tmp
>
> ...that's not quite enough.
>
> Please increase your available swap space.
>
> We're still working on reducing memory usage for these scenarios, but at the
> moment, I have no other workaround for you.
Ok, you are right that it is not enough swap space.
Did you notice that it is a 2TB disk?
I wonder why the installer didn't allocate a higher value for swap,
based on the low RAM size plus huge hdd size.
That's probably an easy hack, but I must look up where to insert it.
You certainly know it better already, from memory.
I is not the user's fault, as he doesn't have much choices at installation time.
Here is my df -h output:
martin at opensolaris:~$ df -h
Filesystem Size Used Avail Use% Mounted on
rpool/ROOT/opensolaris
2.0T 6.2G 2.0T 1% /
swap 342M 384K 342M 1% /etc/svc/volatile
/usr/lib/libc/libc_hwcap2.so.1
2.0T 6.2G 2.0T 1% /lib/libc.so.1
swap 342M 24K 342M 1% /tmp
swap 342M 72K 342M 1% /var/run
rpool/export 2.0T 21K 2.0T 1% /export
rpool/export/home 2.0T 21K 2.0T 1% /export/home
rpool/export/home/martin
2.0T 47M 2.0T 1% /export/home/martin
rpool 2.0T 78K 2.0T 1% /rpool
/dev/dsk/c8t0d0s2 660M 660M 0 100% /media/OpenSolaris
martin at opensolaris:~$ uname -a
SunOS opensolaris 5.11 snv_111 i86pc i386 i86pc Solaris
martin at opensolaris:~$ isainfo -k
amd64
martin at opensolaris:~$
Of course it is easy to add swap afterwards, but I guess many users
still don't know how to do it on ZFS, when they notice that they
cannot do it like previously on UFS with "mkfile 5G /path/to/foo &&
swap -a /path/to/foo".
This FAQ http://blogs.sun.com/jimlaurent/entry/faq_using_zfs_for_swap,
is something like that already high at the top and well-visible in the
OpenSolaris.com docs? Maybe it could be linked to from the Release
Notes (sure, it is not a bug, but anyway)?
--
%martin