ia64/linux-2.6.18-xen.hg

view drivers/pci/Makefile @ 897:329ea0ccb344

balloon: try harder to balloon up under memory pressure.

Currently if the balloon driver is unable to increase the guest's
reservation it assumes the failure was due to reaching its full
allocation, gives up on the ballooning operation and records the limit
it reached as the "hard limit". The driver will not try again until
the target is set again (even to the same value).

However it is possible that ballooning has in fact failed due to
memory pressure in the host and therefore it is desirable to keep
attempting to reach the target in case memory becomes available. The
most likely scenario is that some guests are ballooning down while
others are ballooning up and therefore there is temporary memory
pressure while things stabilise. You would not expect a well behaved
toolstack to ask a domain to balloon to more than its allocation nor
would you expect it to deliberately over-commit memory by setting
balloon targets which exceed the total host memory.

This patch drops the concept of a hard limit and causes the balloon
driver to retry increasing the reservation on a timer in the same
manner as when decreasing the reservation.

Also if we partially succeed in increasing the reservation
(i.e. receive less pages than we asked for) then we may as well keep
those pages rather than returning them to Xen.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Jun 05 14:01:20 2009 +0100 (2009-06-05)
parents c7c92f868aa1
children
line source
1 #
2 # Makefile for the PCI bus specific drivers.
3 #
5 obj-y += access.o bus.o probe.o remove.o pci.o quirks.o \
6 pci-driver.o search.o pci-sysfs.o rom.o setup-res.o
7 obj-$(CONFIG_PROC_FS) += proc.o
8 obj-$(CONFIG_PCI_GUESTDEV) += guestdev.o
9 obj-$(CONFIG_PCI_IOMULTI) += iomulti.o
10 obj-$(CONFIG_PCI_RESERVE) += reserve.o
12 # Build PCI Express stuff if needed
13 obj-$(CONFIG_PCIEPORTBUS) += pcie/
15 obj-$(CONFIG_HOTPLUG) += hotplug.o
17 # Build the PCI Hotplug drivers if we were asked to
18 obj-$(CONFIG_HOTPLUG_PCI) += hotplug/
20 obj-$(CONFIG_PCI_IOV) += iov.o
22 #
23 # Some architectures use the generic PCI setup functions
24 #
25 obj-$(CONFIG_X86) += setup-bus.o
26 obj-$(CONFIG_ALPHA) += setup-bus.o setup-irq.o
27 obj-$(CONFIG_ARM) += setup-bus.o setup-irq.o
28 obj-$(CONFIG_PARISC) += setup-bus.o
29 obj-$(CONFIG_SUPERH) += setup-bus.o setup-irq.o
30 obj-$(CONFIG_PPC32) += setup-irq.o
31 obj-$(CONFIG_PPC64) += setup-bus.o
32 obj-$(CONFIG_MIPS) += setup-bus.o setup-irq.o
33 obj-$(CONFIG_X86_VISWS) += setup-irq.o
35 msiobj-y := msi.o msi-apic.o
36 msiobj-$(CONFIG_IA64_GENERIC) += msi-altix.o
37 msiobj-$(CONFIG_IA64_SGI_SN2) += msi-altix.o
38 obj-$(CONFIG_PCI_MSI) += $(msiobj-y)
40 #
41 # ACPI Related PCI FW Functions
42 #
43 obj-$(CONFIG_ACPI) += pci-acpi.o
45 # Cardbus & CompactPCI use setup-bus
46 obj-$(CONFIG_HOTPLUG) += setup-bus.o
48 ifndef CONFIG_X86
49 obj-y += syscall.o
50 endif
52 ifeq ($(CONFIG_PCI_DEBUG),y)
53 EXTRA_CFLAGS += -DDEBUG
54 endif