|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] Re: [Qemu-devel] [PATCH V9 10/16] xen: Introduce the Xen map
On Wed, 26 Jan 2011, Anthony Liguori wrote:
> > +#ifdef MAPCACHE_DEBUG
> > +# define DPRINTF(fmt, ...) do { \
> > + fprintf(stderr, "xen_mapcache: " fmt, ## __VA_ARGS__); \
> > +} while (0)
> > +#else
> > +# define DPRINTF(fmt, ...) do { } while (0)
> > +#endif
> > +
> > +#if defined(__i386__)
> > +# define MAX_MCACHE_SIZE 0x40000000 /* 1GB max for x86 */
> > +# define MCACHE_BUCKET_SHIFT 16
> > +#elif defined(__x86_64__)
> > +# define MAX_MCACHE_SIZE 0x1000000000 /* 64GB max for x86_64 */
> > +# define MCACHE_BUCKET_SHIFT 20
> > +#endif
> > +#define MCACHE_BUCKET_SIZE (1UL<< MCACHE_BUCKET_SHIFT)
> >
>
> This is pretty awful. Set limits based on host address with, not based
> on i386 vs. x86_64.
Good point, actually we found a bug recently because of this.
We should choose the mapcache size depending on RLIMIT_AS.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] Re: [Qemu-devel] [PATCH V9 06/16] xen: Add initialisation of Xen, (continued)
- [Xen-devel] [PATCH V9 07/16] xen: Add the Xen platform pci device, anthony . perard
- [Xen-devel] [PATCH V9 08/16] piix_pci: Introduces Xen specific call for irq., anthony . perard
- [Xen-devel] [PATCH V9 09/16] xen: add a 8259 Interrupt Controller, anthony . perard
- [Xen-devel] [PATCH V9 11/16] configure: Always use 64bits target physical addresses with xen enabled., anthony . perard
- [Xen-devel] [PATCH V9 10/16] xen: Introduce the Xen mapcache, anthony . perard
- [Xen-devel] [PATCH V9 12/16] Introduce qemu_ram_ptr_unlock., anthony . perard
- [Xen-devel] [PATCH V9 13/16] vl.c: Introduce getter for shutdown_requested and reset_requested., anthony . perard
- [Xen-devel] [PATCH V9 14/16] xen: Initialize event channels and io rings, anthony . perard
- [Xen-devel] [PATCH V9 15/16] xen: Set running state in xenstore., anthony . perard
- [Xen-devel] [PATCH V9 16/16] acpi-piix4: Add Xen hypercall for sleep state., anthony . perard
|
|
|
|
|