I have a weird problem with turning off the swap.The server has 192 GB of memory, 154 GB free.It's a Hypervisor running a number of Linux KVM Virtual Machines.When trying to:# swapoff -aswapoff: /dev/sda2: swapoff failed: Cannot allocate memorybut memory is free: # cat /proc/meminfoMemTotal:       197805748 kBMemFree:        162274264 kBMemAvailable:   162388912 kBBuffers:             432 kBCached:           353524 kBSwapCached:       221828 kBActive:         28253440 kBInactive:        5349056 kBActive(anon):   28159204 kBInactive(anon):  5289320 kBActive(file):      94236 kBInactive(file):    59736 kBUnevictable:           0 kBMlocked:               0 kBSwapTotal:      124999676 kBSwapFree:       124534724 kBDirty:               796 kBWriteback:             0 kBAnonPages:      33063024 kBMapped:            59236 kBShmem:            199984 kBSlab:             313264 kBSReclaimable:     206596 kBSUnreclaim:       106668 kBKernelStack:       10784 kBPageTables:        94012 kBNFS_Unstable:          0 kBBounce:                0 kBWritebackTmp:          0 kBCommitLimit:    223902548 kBCommitted_AS:   43094824 kBVmallocTotal:   34359738367 kBVmallocUsed:      794656 kBVmallocChunk:   34358685284 kBHardwareCorrupted:     0 kBAnonHugePages:  32186368 kBHugePages_Total:       0HugePages_Free:        0HugePages_Rsvd:        0HugePages_Surp:        0Hugepagesize:       2048 kBDirectMap4k:      136564 kBDirectMap2M:     8136704 kBDirectMap1G:    195035136 kBDoes anyone has any idea what could be the cause ?
Unable to swapoff but enough physical memory is available
linux;centos;memory;swap;virtual memory