【正文】
Acegene IT Co. Ltd. 36 5 卸載模塊 ? 卸載模塊 – rmmod module name –只對(duì) idle和不再使用的模塊起作用 ? 如果機(jī)器警告有其他的模塊依賴于想要?jiǎng)h除的這個(gè),但你還是想刪除它的話,可以使用 – rmmod r modulename 5 檢查壞的模塊 (Tainted Kernel) ? Use the /sbin/lsmod mand to see whether the kernel is tainted: /sbin/lsmod Module Size Used by Not tainted nfs 87936 0 (autoclean) lockd 60224 0 (autoclean) [nfs] sunrpc 79952 0 (autoclean) [nfs lockd] iptable_filter 2912 0 (autoclean) (unused) ip_tables 14080 1 [iptable_filter] ad1848 23968 0 [cs4232] ext3 70240 5 jbd 51004 5 [ext3] Acegene IT Co. Ltd. 38 6 核心參數(shù) ? Control dynamic kernel configuration / tuning – Most parameters can be changed on the fly! ? Can be set multiple ways: – In /etc/: (Remended) ? =1048576 – In /etc/ (RH) or /etc/ (SUSE): ? echo 1048576 /proc/sys/fs/aiomaxsize – Using sysctl: ?sysctl –w =1048576 ? Will be lost on reboot if not in /etc/ Acegene IT Co. Ltd. 39 6 shmfs ? Mount tmpfs on /dev/shm via fstab ? Option ―size=8g‖ means 8GB ? Option ―size=??‖ can be larger than physical RAM ? Required by Oracle for VLM mode –Only used for buffer cache –Never used in nonVLM mode Acegene IT Co. Ltd. 40 6 IA32系統(tǒng)上使用超過(guò) 4g內(nèi)存 ? Bigpages (x86) – Separate memory pool using large hw pages – Nonswappable – Must be set aside at boot time ? Boot with kernel parameter ―bigpages=8192MB‖ – Use Workaround in bug 3080838 ? To prevent Kernel panic in sshd_config set: – UsePrivilegeSeparation no OR – Compression no (preferred) ? Hugetlbfs (RHEL) – Similar to bigpages but, configured at runtime, no need to reboot: ? Shutdown instance (free memory) ? echo 600 /proc/sys/vm/hugetlb_pool – Ask for 600MB ? cat /proc/sys/vm/hugetlb_pool – Verify 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 308083