Re: [osol-discuss] Memory requirements of Solaris/OpenSolaris... /was: Re: [tools-discuss] Project Proposal -- Port toMIPSarchitecture

2009-01-01 Thread Roland Mainz
ken mays wrote:
[snip]
  Mark Martin wrote:
[snip]
  Assuming you only use UFS and cut-down some system
  tuneables Solaris can
  run on a 64MB machine (my Ultra5 only has 128MB now after
  one of the
  DIMMs failed and it still works fine with CDE). The
  problems start if
  you want to run some of the memory-hogs, e.g. ZFS, JAVA or
  a X11 server
  - then you either need a swap device or much more memory.
 
 You should take to the 32MB of RAM level. How about playback of MPEG-2 
 streams or MP3 audio using OpenSolaris in a 32 MB RAM embedded environment 
 solution.

Booting plain OpenSolaris with a 32MB machine may be possible (remember
original versions of Solaris 2.x had no problems with that) ... but
MPEG-2 video stream playback will itself consume lots of memory since
you have to do buffering, including I frames, data for the P/B frames
etc. ... and system stream playback (system stream == interleaved
video+audio streams) will require even more memory. I don't know whether
this is possible...



Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) roland.ma...@nrubsig.org
  \__\/\/__/  MPEG specialist, CJAVASunUnix programmer
  /O /==\ O\  TEL +49 641 3992797
 (;O/ \/ \O;)
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] Memory requirements of Solaris/OpenSolaris... /was: Re: [tools-discuss] Project Proposal -- Port toMIPSarchitecture

2009-01-01 Thread Dennis Clarke

 ken mays wrote:
 [snip]
  Mark Martin wrote:
 [snip]
  Assuming you only use UFS and cut-down some system
  tuneables Solaris can
  run on a 64MB machine (my Ultra5 only has 128MB now after
  one of the
  DIMMs failed and it still works fine with CDE). The
  problems start if
  you want to run some of the memory-hogs, e.g. ZFS, JAVA or
  a X11 server
  - then you either need a swap device or much more memory.

 You should take to the 32MB of RAM level. How about playback of MPEG-2
 streams or MP3 audio using OpenSolaris in a 32 MB RAM embedded
 environment solution.

 Booting plain OpenSolaris with a 32MB machine may be possible (remember
 original versions of Solaris 2.x had no problems with that) ... but
 MPEG-2 video stream playback will itself consume lots of memory since
 you have to do buffering, including I frames, data for the P/B frames
 etc. ... and system stream playback (system stream == interleaved
 video+audio streams) will require even more memory. I don't know whether
 this is possible...


I did perform some low memory test experiments and I can tell you ( with
plenty of data ) that a Solaris machine pushed to do any work with low
memory will rapidly become a space heater. You may get a response from the
console ... or not.

Either way, 1GB of memory should be seen as the rock bottom minimal config
these days.

$ su -
Password:
Feb 25 12:53:45 aequitas su: 'su root' succeeded for dclarke on /dev/console
Sun Microsystems Inc.   SunOS 5.11  gazelle Dec. 12, 2007
SunOS Internal Development:  dclarke 2007-12-12 [gazelle]
bfu'ed from /export/gazelle/archives/i386/nightly on 2007-12-12
Sun Microsystems Inc.   SunOS 5.11  snv_70b October 2007
# mdb -k
Loading modules: [ unix genunix specfs cpu.generic uppc pcplusmp scsi_vhci
ufs
 ip hook neti sctp arp usba uhci fctl nca lofs zfs random fcip logindmux
ptm sppp ]
 pageout_new_spread/X
pageout_new_spread:
pageout_new_spread: 27702
 handspreadpages/X
handspreadpages:
handspreadpages:5b3e
 lotsfree/X
lotsfree:
lotsfree:   2d9
 deficit/X
deficit:
deficit:0
 slowscan/X
slowscan:
slowscan:   64
 fastscan/X
fastscan:
fastscan:   5b3e
 minfree/X
minfree:
minfree:b6

Please take note of lotsfree, fastscan and minfree there.


Here comes the situation after attempting to compile the ON kernel after
40 days of non-stop load with 192MB of memory :

[ I hope this doesn't line wrap at 72 chars ]
 ::kmastat
cache  bufbufbufmemory alloc alloc
name  size in use  totalin use   succeed  fail
- -- -- -- -- - -
kmem_magazine_1  8 19507 12288B123304 0
kmem_magazine_3 16 80   1143 36864B904298 0
kmem_magazine_7 32 77   1134 73728B   2126812 0
kmem_magazine_1564 61341 45056B   7193629 0
kmem_magazine_31   128  0  0 0B 0 0
kmem_magazine_47   192  0  0 0B 0 0
kmem_magazine_63   256  0  0 0B 0 0
kmem_magazine_95   384  0  0 0B 0 0
kmem_magazine_143  576  0  0 0B 0 0
kmem_slab_cache 28  15151  15288745472B825744 0
kmem_bufctl_cache   12  4127  4096B 4 0
kmem_bufctl_audit_cache100 558650 558657  69341184B  23614865 0
kmem_va_4096  4096   9439   9440  38666240B 50389 0
kmem_va_8192  8192454496   4063232B 43692 0
kmem_va_1228812288546970  12713984B 55116 0
kmem_va_1638416384  6  8131072B 7 0
kmem_va_2048020480 65 78   1703936B   511 0
kmem_va_2457624576  0  0 0B 0 0
kmem_va_2867228672  8  8262144B12 0
kmem_va_3276832768  0  0 0B 0 0
kmem_alloc_8 8   9639  15130364544B  24894004 0
kmem_alloc_16   16  10197  13952446464B   8540073 0
kmem_alloc_24   24   7830  13260532480B  32802752 0
kmem_alloc_32   32  10916  17340835584B  11617539 0
kmem_alloc_40   40   8786  12118679936B  13100776 0
kmem_alloc_48   48   7278  10752688128B   2209134 0
kmem_alloc_56   56   2146   5320389120B   1782146 0
kmem_alloc_64   64936   3168405504B  47759338 0
kmem_alloc_80   80   4305   5964581632B   2309670 0
kmem_alloc_96   96   1311   2016229376B279376 0
kmem_alloc_112 112177448 57344B733256 0
kmem_alloc_128 128117189 36864B   3054652 0
kmem_alloc_160 160   4744   5129913408B 374585519 0
kmem_alloc_192 192 92144 36864B   1091937 0
kmem_alloc_224 224158