Bug 489876

Summary: kernel option dom0_mem doesn't work
Product: Red Hat Enterprise Linux 5 Reporter: Daniel Mach <dmach>
Component: kernel-xenAssignee: Rik van Riel <riel>
Status: CLOSED NOTABUG QA Contact: Red Hat Kernel QE team <kernel-qe>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.3CC: clalance, xen-maint
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-03-17 12:19:58 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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