Pagesize

From pressy's brainbackup
Jump to: navigation, search

Solaris provides different memory page sizes, on SPARC up to 2gb. It does not always make sense to use 2gb also known as huge page sizes. The Oracle database chooses the size depending on their needs:

root@server:/# pagesize -a
8192
65536
4194304
268435456
2147483648
root@server:/# ps -ef | grep smon | wc -l
      25
root@server:/# prctl -n zone.max-shm-memory -i zone global
zone: 0: global
NAME    PRIVILEGE       VALUE    FLAG   ACTION                       RECIPIENT
zone.max-shm-memory
        usage           47.5GB
        system          16.0EB    max   deny                                 -
root@server:/#
root@server:/# mdb -k
Loading modules: [ unix genunix specfs dtrace zfs scsi_vhci ldc mac ip hook neti ds arp kssl sockfs ipc random idm mdesc cpc crypto fcip fctl fcp ufs logindmux ptm sppp nsmb nfs ]
> ::memstat
Page Summary                 Pages             Bytes  %Tot
----------------- ----------------  ----------------  ----
Kernel                     1531886             11.6G    9%
Guest                            0                 0    0%
ZFS Metadata                357116              2.7G    2%
ZFS File Data               229109              1.7G    1%
Anon                       9240216             70.4G   55%
Exec and libs               125346            979.2M    1%
Page cache                   61769            482.5M    0%
In temporary use               512                4M    0%
Free (cachelist)           4395237             33.5G   26%
Free (freelist)             836025              6.3G    5%
Total                     16777216              128G
> ::tile -s
TILE  MN  SZC   TOTAL   PCT    USER   PCT   KCAGE   PCT
           8k   52.4g 40.9%   43.1g 33.7%    9.2g 7.22%
          64k   19.0g 14.9%   19.0g 14.9%       -     -
           4m   18.2g 14.2%   18.2g 14.2%       -     -
         256m   30.2g 23.6%   24.7g 19.3%    5.5g 4.29%
           2g      8g 6.25%      8g 6.25%       -     -
   total         128g  100%  113.2g 88.4%   14.7g 11.5%
> ::quit