Hi Victor, when you set the capped-memory resources you have another option to limit the use of locked memory. Locked memory is allocated with a "non- swappable" flag and that is exacly the way Oracle uses to allocate its SGA. Probably on your configuration Oracle SGA is in the 1.5-1.6 GB range (as reported by vmstat/prstat).
Physical memory control is actually implemented with a "forced" swap when you overcome the limit, but locked memory is not swappable, so it doesn't works. That's excatly the reason why the locked memory limit in the capped-memory resource has been introduced! So add a "locked: 1G" and everything will work as you expect (and the startup of Oracle will fail until you configure a SGA lower than that). Rgrds, Danilo. Il giorno 04/feb/08, alle ore 15:26, Victor Feng ha scritto: > Basically, the memory resource control for zone works. But it does not > constrain the physical memory well. > > # prstat -Z > ZONEID NPROC SWAP RSS MEMORY TIME CPU ZONE > 0 57 240M 310M 1.9% 0:04:03 0.1% global > 11 32 162M 235M 1.4% 0:01:08 0.0% bighead > > The max-rss of zone bighead is 1G: > zonecfg:bighead> info capped-memory > capped-memory: > physical: 1G > [swap: 7G] > > In zone bighead, total memory of an Oracle database is 2 Gb (1.5G > SGA + 0.5G GA). Start up the database in the zone. > > # vmstat -p 5 > memory page executable anonymous > filesystem > swap free re mf fr de sr epi epo epf api apo apf fpi > fpo fpf > 38894736 15251056 0 0 0 0 0 0 0 0 0 0 0 > 0 0 0 > 37248552 13521632 210 797 0 0 0 0 0 0 0 0 0 > 0 0 0 > 37236952 13596320 193 126 0 0 0 28574 0 0 1462 0 0 > 1125 0 0 > 37212448 13753288 56 217 2 0 0 28807 0 0 1359 0 0 > 342 2 2 > 37194568 13700880 78 374 0 0 0 41898 0 0 1303 0 0 > 420 0 0 > > # prstat -Z > ZONEID NPROC SWAP RSS MEMORY TIME CPU ZONE > 0 62 253M 323M 2.0% 0:05:25 1.5% global > 12 55 2100M 1890M 12% 0:01:29 0.4% bighead > > The total physical memory drop shown by vmstat is > 1.5G(15251056-13700880) > and is 1.6G(1890M-235M) by prstat. But zonecfg limited it to 1G. > > Any reason? > > Thanks > Victor > > > This message posted from opensolaris.org > _______________________________________________ > opensolaris-discuss mailing list > [email protected] Danilo Poccia Senior Systems Engineer Sun Microsystems Italia S.p.A. Via G. Romagnosi, 4 Roma 00196 ITALY Phone +39 06 36708 022 Mobile +39 335 6983999 Fax +39 06 3221969 Email [EMAIL PROTECTED] Blog blogs.sun.com/danilop _______________________________________________ opensolaris-discuss mailing list [email protected]
