我正在运行一个带有多个游戏服务器的服务器。
我的内存使用率很高,但相比之下几乎没有交换使用率。
我的 swappiness 设置为 100
total used free shared buff/cache available
Mem: 125G 114G 1.6G 754M 9.6G 9.9G
Swap: 127G 889M 127G
fdisk 输出
Disk /dev/sda: 477 GiB, 512110190592 bytes, 1000215216 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xeaabd0c6
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 999423 997376 487M 83 Linux
/dev/sda2 1001470 1000214527 999213058 476.5G 5 Extended
/dev/sda5 1001472 1000214527 999213056 476.5G 8e Linux LVM
Disk /dev/mapper/ubuntu--vg-root: 348.5 GiB, 374207414272 bytes, 730873856 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/ubuntu--vg-swap_1: 128 GiB, 137388621824 bytes, 268337152 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
swapon-s
Filename Type Size Used Priority
/dev/dm-1 partition 134168572 958328 -1
为什么交换未被使用?