How movable is zone movable?

From: Ed Tomlinson
Date: Sun Apr 12 2009 - 11:29:27 EST


Hi,

How dependable should zone movable be? After a boot kvm is able to get enough hugepages to
back the session. After a day or two it becomes a lot less predictable. Sometimes it will swap out for 30 seconds
and then succeed other times it will fail. Interestingly, it sometimes works if I cancel the kvm session after
it tells me it cannot allocate the hugepages and immediatly restart. It there some way to determine what
is not respecting zone moveable? Or is zone moveable just a suggestion and not expected to really be
moveable?

I have the following set in sysctl.conf

# huge_pages with movablecore set to 3G
kernel.shmmax = 8589934592
vm.nr_hugepages = 128
vm.nr_overcommit_hugepages = 1408
vm.hugepages_treat_as_movable = 1
vm.hugetlb_shm_group = 1005

This is with any recient kernel release (2.6.28 and later)

Thanks,
Ed Tomlinson
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/