ia64/linux-2.6.18-xen.hg

view drivers/acpi/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 b8916f4d48f6
children
line source
1 #
2 # Makefile for the Linux ACPI interpreter
3 #
5 export ACPI_CFLAGS
7 ACPI_CFLAGS := -Os
9 ifdef CONFIG_ACPI_DEBUG
10 ACPI_CFLAGS += -DACPI_DEBUG_OUTPUT
11 endif
13 EXTRA_CFLAGS += $(ACPI_CFLAGS)
15 #
16 # ACPI Boot-Time Table Parsing
17 #
18 obj-y += tables.o
19 obj-$(CONFIG_X86) += blacklist.o
21 #
22 # ACPI Core Subsystem (Interpreter)
23 #
24 obj-y += osl.o utils.o \
25 dispatcher/ events/ executer/ hardware/ \
26 namespace/ parser/ resources/ tables/ \
27 utilities/
29 #
30 # ACPI Bus and Device Drivers
31 #
32 processor-objs += processor_core.o processor_throttling.o \
33 processor_idle.o processor_thermal.o
34 ifdef CONFIG_CPU_FREQ
35 processor-objs += processor_perflib.o
36 endif
37 ifdef CONFIG_PROCESSOR_EXTERNAL_CONTROL
38 processor-objs += processor_perflib.o processor_extcntl.o
39 endif
41 obj-y += sleep/
42 obj-y += bus.o glue.o
43 obj-$(CONFIG_ACPI_AC) += ac.o
44 obj-$(CONFIG_ACPI_BATTERY) += battery.o
45 obj-$(CONFIG_ACPI_BUTTON) += button.o
46 obj-$(CONFIG_ACPI_EC) += ec.o
47 obj-$(CONFIG_ACPI_FAN) += fan.o
48 obj-$(CONFIG_ACPI_DOCK) += dock.o
49 obj-$(CONFIG_ACPI_VIDEO) += video.o
50 obj-$(CONFIG_ACPI_HOTKEY) += hotkey.o
51 obj-y += pci_root.o pci_link.o pci_irq.o pci_bind.o
52 obj-$(CONFIG_ACPI_POWER) += power.o
53 obj-$(CONFIG_ACPI_PROCESSOR) += processor.o
54 obj-$(CONFIG_ACPI_CONTAINER) += container.o
55 obj-$(CONFIG_ACPI_THERMAL) += thermal.o
56 obj-$(CONFIG_ACPI_SYSTEM) += system.o event.o
57 obj-$(CONFIG_ACPI_DEBUG) += debug.o
58 obj-$(CONFIG_ACPI_NUMA) += numa.o
59 obj-$(CONFIG_ACPI_ASUS) += asus_acpi.o
60 obj-$(CONFIG_ACPI_IBM) += ibm_acpi.o
61 obj-$(CONFIG_ACPI_TOSHIBA) += toshiba_acpi.o
62 obj-y += scan.o motherboard.o
63 obj-$(CONFIG_ACPI_HOTPLUG_MEMORY) += acpi_memhotplug.o
64 obj-y += cm_sbs.o
65 obj-$(CONFIG_ACPI_SBS) += i2c_ec.o sbs.o