[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Xen-devel] big local array in routine in hypervisor



Rats!  I need a large contiguous "workspace" (for compression)
but can't assume that the heap isn't fragmented.  I can pre-reserve
it but that will cause scaleability problems later, because
it would be too wasteful to pre-reserve one for each processor.
I guess I'll pre-reserve and protect it with a lock for now
and worry about contention later.

Is there one stack per physical processor?  Or is there some
other reason (other than historical) for the stack to be so
limited in size?

> -----Original Message-----
> From: Keir Fraser [mailto:keir.fraser@xxxxxxxxxxxxx]
> Sent: Monday, January 26, 2009 4:24 PM
> To: Dan Magenheimer; Xen-Devel (E-mail)
> Subject: Re: [Xen-devel] big local array in routine in hypervisor
> 
> 
> It's definitely not safe. Don't do it! The stack is only a 
> few kilobytes and
> needs to be shared with possibly multiple nested interrupt contexts.
> 
>  -- Keir
> 
> On 26/01/2009 22:41, "Dan Magenheimer" 
> <dan.magenheimer@xxxxxxxxxx> wrote:
> 
> > Is it always safe to have a large local array in a routine
> > in the hypervisor, say 2-3 pages (8k-12k) in size?  (I suppose
> > that may be 32k-48k on ia64 since the code is arch-neutral.)
> > Or is there some possibility the Xen stack will overflow?
> > 
> > If not always safe, is there any way to test to see if it safe
> > or how large is safe?
> > 
> > Thanks,
> > Dan
> > 
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel@xxxxxxxxxxxxxxxxxxx
> > http://lists.xensource.com/xen-devel
> 
> 
>

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.