ia64/linux-2.6.18-xen.hg

view arch/m32r/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 831230e53067
children
line source
1 #
2 # m32r/Makefile
3 #
4 # This file is included by the global makefile so that you can add your own
5 # architecture-specific flags and dependencies.
6 #
8 LDFLAGS :=
9 OBJCOPYFLAGS := -O binary -R .note -R .comment -S
10 LDFLAGS_vmlinux := -e startup_32
12 CFLAGS += -pipe -fno-schedule-insns
13 CFLAGS_KERNEL += -mmodel=medium
14 CFLAGS_MODULE += -mmodel=large
16 ifdef CONFIG_CHIP_VDEC2
17 cflags-$(CONFIG_ISA_M32R2) += -DNO_FPU -Wa,-bitinst
18 aflags-$(CONFIG_ISA_M32R2) += -DNO_FPU -O2 -Wa,-bitinst -Wa,-no-parallel
19 else
20 cflags-$(CONFIG_ISA_M32R2) += -DNO_FPU -m32r2
21 aflags-$(CONFIG_ISA_M32R2) += -DNO_FPU -m32r2 -O2
22 endif
24 cflags-$(CONFIG_ISA_M32R) += -DNO_FPU
25 aflags-$(CONFIG_ISA_M32R) += -DNO_FPU -O2 -Wa,-no-bitinst
27 CFLAGS += $(cflags-y)
28 AFLAGS += $(aflags-y)
30 CHECKFLAGS += -D__m32r__ -D__BIG_ENDIAN__=1
32 head-y := arch/m32r/kernel/head.o arch/m32r/kernel/init_task.o
34 LIBGCC := $(shell $(CC) $(CFLAGS) -print-libgcc-file-name)
36 libs-y += arch/m32r/lib/ $(LIBGCC)
37 core-y += arch/m32r/kernel/ \
38 arch/m32r/mm/ \
39 arch/m32r/boot/
41 drivers-$(CONFIG_OPROFILE) += arch/m32r/oprofile/
43 boot := arch/m32r/boot
45 PHONY += zImage
47 all: zImage
49 zImage: vmlinux
50 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
52 compressed: zImage
54 archclean:
55 $(Q)$(MAKE) $(clean)=$(boot)
57 define archhelp
58 echo '* zImage - Compressed kernel image (arch/$(ARCH)/boot/zImage)'
59 endef