Skip to contentSkip to conversation

bigphysarea patch on xen capable linux

DISCUSSION Kashmira. K. 3 participants 4 messages Jan 8, 2010 – Jan 12, 2010

lore
Share & tools
lore
#0 lore raw

Forwarding to xen-devel

Quoted 28 lines · Kashmira. K.

From: Kashmira. K. <[email protected]>
Subject: bigphysarea patch on xen capable linux
To: [email protected]
Date: Tuesday, January 5, 2010, 1:31 PM
Hello Xen Experts

I am trying to port a linux application or rather a user mode linux driver (not built into the kernel) to Xen capable linux. This will be running in Dom0. This user mode driver used the linux pigphysarea patch to allocate large (over 1Gig) physically contiguous memory.

I have two questions:

1. Is the bigphysarea patch supported on Xen capable linux?  If not what is the maximum physically contiguous memory Xen provides.

2. If I were to run my application in DomU instead of Dom0, can the bigphysarea patch  be used then.

Thanks in advance.
Kashmira

#1 lore raw
Quoted 4 lines
Quoted 1 line
Quoted 1 line

"Kashmira. K." <[email protected]> 08.01.10 02:10 >>>

1. Is the bigphysarea patch supported on Xen capable linux? If not what is the maximum physically contiguous memory Xen provides.

2Mb is the maximum you can create.

Quoted 2 lines

2. If I were to run my application in DomU instead of Dom0, can the bigphysarea patch be used then.

In a fully virtualized DomU this should be possible (unless you imply to be able to use 1G pages).

Jan

#2 lore raw

Hi Jan,

I looked at the linux code xen_create_contiguous_region(). It appears the 2MB limit comes from the #define MAX_CONIG_ORGER 9. Could that be modified to get more than 2MB.

If not would you have other suggestions of how I can I get around 500M or more of physically contiguous memory on Xen in Dom0 linux.

Thanks
Kashmira

Quoted 24 lines · Jan Beulich

From: Jan Beulich <[email protected]>
Subject: Re: [Xen-devel] Fw: bigphysarea patch on xen capable linux
To: "Kashmira. K." <[email protected]>
Cc: [email protected]
Date: Tuesday, January 12, 2010, 12:53 AM

Quoted 1 line
Quoted 1 line
Quoted 1 line

"Kashmira. K." <[email protected]>

08.01.10 02:10 >>>

Quoted 3 lines

1. Is the bigphysarea patch supported on Xen capable linux?  If not what is the maximum physically contiguous memory Xen provides.

2Mb is the maximum you can create.

Quoted 1 line

2. If I were to run my application in DomU instead of

Dom0,

Quoted 1 line

can the bigphysarea patch  be used then.

In a fully virtualized DomU this should be possible (unless you imply to
be able to use 1G pages).

Jan

#3 lore raw

You can increase MAX_CONTIG_ORDER and then it could work. The cost is a larger kernel image size for the enlarged static arrays defined immediately above xen_create_contiguous_region().

-- Keir

Quoted 47 lines · Kashmira. K.

Hi Jan,

I looked at the linux code xen_create_contiguous_region(). It appears the 2MB limit comes from the #define MAX_CONIG_ORGER 9. Could that be modified to get more than 2MB.

If not would you have other suggestions of how I can I get around 500M or more of physically contiguous memory on Xen in Dom0 linux.

Thanks
Kashmira

Quoted 14 lines · Jan Beulich

From: Jan Beulich <[email protected]>
Subject: Re: [Xen-devel] Fw: bigphysarea patch on xen capable linux
To: "Kashmira. K." <[email protected]>
Cc: [email protected]
Date: Tuesday, January 12, 2010, 12:53 AM

Quoted 1 line
Quoted 1 line
Quoted 1 line

"Kashmira. K." <[email protected]>

08.01.10 02:10 >>>

Quoted 3 lines

1. Is the bigphysarea patch supported on Xen capable linux?  If not what is the maximum physically contiguous memory Xen provides.

2Mb is the maximum you can create.

Quoted 1 line

2. If I were to run my application in DomU instead of

Quoted 10 lines

Dom0,

Quoted 1 line

can the bigphysarea patch  be used then.

In a fully virtualized DomU this should be possible (unless you imply to
be able to use 1G pages).

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel