查看哪些进程或者用户占用swap交换分区

root@xyoadb01:/home/oracle>yum localinstall nmon-16p-5.el8.x86_64.rpm
root@xyoadb01:/home/oracle>yum localinstall smem-1.5-6.el8.noarch.rpm
root@xyoadb01:/home/oracle>smem -trk -s swap
root@xyoadb01:/root>smem -trk -s swap
PID User Command Swap USS PSS RSS
30579 oracle ora_m003_oadb1 12.5G 342.2M 5.4G 43.8G
26482 oracle ora_m002_oadb1 12.4G 391.2M 4.9G 41.5G
25375 oracle ora_mmnl_oadb1 12.2G 54.1M 101.0M 746.3M
26477 oracle ora_m001_oadb1 12.2G 216.0M 4.1G 39.1G
864357 oracle ora_m004_oadb1 12.2G 299.2M 5.0G 43.6G
1754689 oracle ora_m005_oadb1 12.1G 299.1M 6.5G 49.6G
2955535 oracle ora_m006_oadb1 11.3G 156.5M 3.7G 30.1G
25371 oracle ora_mmon_oadb1 10.9G 80.4M 4.9G 41.9G
25302 oracle ora_lms3_oadb1 10.9G 3.5G 16.1G 79.3G
25296 oracle ora_lms0_oadb1 10.9G 3.5G 16.6G 81.5G
25298 oracle ora_lms1_oadb1 10.9G 3.5G 16.0G 78.9G
25300 oracle ora_lms2_oadb1 10.9G 3.5G 16.1G 78.8G
1614311 oracle ora_ppa7_oadb1 10.9G 236.7M 1.0G 8.6G
root@xyoadb01:/home/oracle>cat /etc/sysctl.conf

sysctl settings are defined through files in

/usr/lib/sysctl.d/, /run/sysctl.d/, and /etc/sysctl.d/.

Vendors settings live in /usr/lib/sysctl.d/.

To override a whole file, create a new file with the same in

/etc/sysctl.d/ and put new settings there. To override

only specific settings, add a file with a lexically later

name in /etc/sysctl.d/ and put new settings there.

For more information, see sysctl.conf(5) and sysctl.d(5).

kernel.msgmax = 65536
kernel.msgmnb = 65536
kernel.shmall = 131879215
kernel.shmmax = 405132948480
kernel.shmmni = 4096
kernel.sem = 10000 10240000 10000 1024
fs.file-max = 8388608
fs.aio-max-nr = 6553600
net.core.rmem_default = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 4194304
net.core.wmem_max = 4194304
net.ipv4.tcp_rmem = 4096 262144 4194304
net.ipv4.tcp_wmem = 4096 262144 4194304
net.ipv4.ip_local_port_range = 9000 65500
net.ipv4.tcp_keepalive_time = 30
net.ipv4.tcp_keepalive_intvl = 60
net.ipv4.tcp_keepalive_probes = 9
net.ipv4.tcp_retries2 = 3
net.ipv4.tcp_syn_retries = 2
vm.swappiness = 1 --原先是10,改成1,这个参数是影响swap交换分区大小的参数
vm.dirty_background_ratio = 3
vm.dirty_ratio = 15
vm.dirty_expire_centisecs = 500
vm.dirty_writeback_centisecs = 100
vm.hugetlb_shm_group = 54321
vm.nr_hugepages = 133122
root@xyoadb01:/home/oracle>

posted @ 2026-09-02 16:25  ocmji  阅读(7)  评论(0)    收藏  举报