Bug 489876 - kernel option dom0_mem doesn't work
Summary: kernel option dom0_mem doesn't work
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kernel-xen
Version: 5.3
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Rik van Riel
QA Contact: Red Hat Kernel QE team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-03-12 13:17 UTC by Daniel Mach
Modified: 2009-03-17 12:19 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-03-17 12:19:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Daniel Mach 2009-03-12 13:17:43 UTC
I have this kernel option in grub.conf: dom0_mem=512m
After boot, dom0 allocates all memory instead of 512M.

It used to work in rhel-5.2.

As a workaround, I have to call:
$ xm mem-set Domain-0 512

Comment 1 RHEL Program Management 2009-03-12 13:21:42 UTC
This bugzilla has Keywords: Regression.  

Since no regressions are allowed between releases, 
it is also being proposed as a blocker for this release.  

Please resolve ASAP.

Comment 3 Chris Lalancette 2009-03-12 14:09:19 UTC
Can you please attach the full output of the grub.conf entry that you think should work, but doesn't?

Thanks,
Chris Lalancette

Comment 4 Chris Lalancette 2009-03-12 14:16:55 UTC
FYI: on my system, the following does indeed do the right thing:

title Red Hat Enterprise Linux Server (2.6.18-134.el5virttest12xen)
	root (hd0,0)
	kernel /xen.gz-2.6.18-134.el5virttest12 dom0_mem=512M
	module /vmlinuz-2.6.18-134.el5virttest12xen ro root=/dev/VolGroup02/LogVol00
	module /initrd-2.6.18-134.el5virttest12xen.img

# xm list (right after boot)
Name                                      ID Mem(MiB) VCPUs State   Time(s)
Domain-0                                   0      512     4 r-----     27.8

Chris Lalancette

Comment 5 Daniel Mach 2009-03-17 12:19:58 UTC
Chris,
sorry for confusion,
I had the dom0_mem as a kernel (not xen) option in grub.conf.
Now everything works fine.

Since I didn't have xen dom0 ballooning problems for a long time so I thought that the "not enough memory" problems during `xm create` were caused by a kernel upgrade and therefore a regression.

Looks like I was just lucky and didn't hit this problem since 5.2 was released until now.

thanks,
- daniel


Note You need to log in before you can comment on or make changes to this bug.