【正文】
erify you got 600MB, if not might need to reboot ? Startup instance – Verify usage in /proc/meminfo Acegene IT Co. Ltd. 41 6 參數(shù) : 異步 IO async io requests ? /proc/sys/fs/aiomaxsize – Max size of data passed to driver at once – Requests larger than this will be broken up – Next chunk will not be submitted until the previous one has pleted – Default value: 131072 – Unit: bytes ? /proc/sys/fs/aiomaxnr – Max number of aio requests systemwide – Limits number of structures allocated, not the number of requests in flight! – Each Oracle process allocates 1024 – Default value: 65536 – Unit: count Acegene IT Co. Ltd. 42 6 參數(shù) : 共享內(nèi)存 ? /proc/sys/kernel/shmmax – Max size of a single shared memory segment – Smaller values mean more segments needed – Default value: 33554432 – Unit: bytes – Maximum allowed: 4GB 1 (4294967295) ? /proc/sys/kernel/shmall – Max amount of shared memory systemwide – Default: 2097152 – Unit: ? ? /proc/sys/kernel/shmusebigpages – Allowed values: ? 0: don’t use bigpages pool for shared memory ? 1: use bigpages pool for SysV shared memory ? 2: use bigpages pool for SysV and shmfs – Default value: 0 – Use Workaround in bug 3080838 ? To prevent Kernel panic in sshd_config set: – UsePrivilegeSeparation no OR – Compresson no (preferred) Acegene IT Co. Ltd. 43 6 RHEL Kernel Types (IA32) ? Choose the right kernel – ―smp‖: 2level page tables ? HW can only address 4GB of RAM ? 4kB pages and 4MB ―large‖ pages – ―enterprise‖: 3level page tables ? HW can address up to 64GB of RAM ? 4kB pages and 2MB ―large‖ pages ? : max 16GB RAM supported ? SLES8: 64GB officially supported Kernel CPUs RAM Standard 1 4 GB SMP Multi 4 GB Enterprise Multi 4 GB Acegene IT Co. Ltd. 44 6 進程地址空間 (IA32) ? 3GB user/1GB kernel address space – 0x000000000xbfffffff user – 0xc00000000xffffffff kernel ? Stack grows down from 0xbfffffff ? mapped_base – Address where .so libraries are loaded – Default value: 0x40000000 – Configure via /proc/$PID/mapped_base Variable SGA Reserved for kernel DB Buffers (SGA) Code, etc. Default 0xFFFFFFFF 0xC0000000 0x50000000 0x40000000 0x00000000 Variable SGA Reserved for kernel DB Buffers (SGA) Code, etc. After Relink 0xFFFFFFFF 0xC0000000 0x15000000 0x10000000 0x00000000 mapped_base (/proc/pid/mapped_base) sga_base (relink Oracle) Q U E S T I O N S A N S W E R S Acegene IT Co. Ltd. 46 練習 ? 為虛擬機安裝 vmwaretools軟件 – 安裝 – 確認是否安裝 – 卸載 ? 配置系統(tǒng)服務 – 啟動服務 : ? rsh rexec rlogin tel sshd vsftpd rawdevices – 禁用服務 : ? cups sendmail smartd apmd ? chkconfig service ? 配置自動啟動服務 – /etc/, ? 啟動時自動授權 oracle用戶文件權限 – /dev/rawctl – /dev/raw/* ? chown chmod ? 設置 Linux核心參數(shù) – 編輯 /etc/ – 參數(shù)生效 sysctl p /etc/ = 0 = 1 = 1024 65000 = 262144 = 262144 = 262144 = 262144 = 0 = 1 = 1610612736 = 4096 = 2097152 = 8192 = 65535 = 2878 = 500 64000 100 512 =1048576 = 327680 = 1048576