我需要知道交换内存的实际效果是什么?我已经有足够的内存,但是它还在使用交换内存吗?我使用的服务器与Oracle 11g数据库。那么,如果由于交换内存满,它会对数据库产生影响吗?当前场景,如果服务器内存使用情况
free -h
total used free shared buff/cache available
Mem: 31G 10G 176M 17G 20G 2.9G
Swap: 2.0G 2.0G 152K发布于 2018-07-31 11:42:41
看看这个链接。在这里,您的系统有一个空闲内存,大约是3GB。但是系统仍然在使用交换空间。
sar -B命令并观察列%vmeff:%vmeff Calculated as pgsteal / pgscan, this is a metric of the efficiency of page reclaim. If it is near 100% then almost every page coming off the tail of the inactive list is being reaped. If it gets too low (e.g. less than 30%) then the virtual memory is having some difficulty. This field is displayed as zero if no pages have been scanned during the interval of time.
sar -B 1的示例输出:
05:12:13 PM pgpgin/s pgpgout/s fault/s majflt/s pgfree/s pgscank/s pgscand/s pgsteal/s %vmeff
05:12:14 PM 0.00 294.95 33.33 0.00 313.13 0.00 0.00 0.00 0.00
05:12:15 PM 8.00 377.00 35.00 0.00 433.00 0.00 0.00 0.00 0.00签出此链接以获取添加交换空间的过程。
https://unix.stackexchange.com/questions/459570
复制相似问题