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

[Xen-devel] RE: TODO in windows balloon driver


  • To: "tinnycloud" <tinnycloud@xxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "James Harper" <james.harper@xxxxxxxxxxxxxxxx>
  • Date: Sat, 26 Feb 2011 23:17:54 +1100
  • Cc:
  • Delivery-date: Sat, 26 Feb 2011 04:19:04 -0800
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcudjQT/1ru6fBA9Q+y8rx823coE9AACJPTwAAxzPMAAAQPzAA25IzBgAD+v1pA=
  • Thread-topic: TODO in windows balloon driver

> 
> HI James:
> 
>       I've noticed the TODO tag in xenpci/xenpci_fdo.c, line 294
> 
>    290         KdPrint((__DRIVER_NAME "     Calling
> HYPERVISOR_memory_op(XENMEM_populate_physmap) - pfn_count = %d\n",
> pfn_count));
>    291         ret = HYPERVISOR_memory_op(xpdd,
XENMEM_populate_physmap,
> &reservation);
>    292         ExFreePoolWithTag(pfns, XENPCI_POOL_TAG);
>    293         KdPrint((__DRIVER_NAME "     populated %d pages\n",
ret));
>    294         /* TODO: what do we do if less than the required number
of
> pages were populated??? can this happen??? */
> 
> 
>       Could we fix it in linux balloon driver way?
>       When no enough pfn_count got, give memory back to xen.
>       What do you think?
>       Thanks.

I guess that would work, but then it would keep trying to decrease again
every second. Maybe that's what we want but I'd rather put in some sort
of backoff in there eg retry in one second then two seconds then 4
seconds etc up to a maximum of 1 minute or so, to reduce the noise.

Are you seeing this happen? I'm guessing it's because xen doesn't have
enough pages for you or because you've ballooned up above the maxmem
limit or something...

James


_______________________________________________
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®.