search for: alloc_heap_pages

Displaying 5 results from an estimated 5 matches for "alloc_heap_pages".

2012 Oct 11
14
alloc_heap_pages is low efficient with more CPUs
...VM, it just took 3s, But for the second starting it took 30s. After studied it by printing log, I have located a place in the hypervisor where cost too much time, occupied 98% of the whole starting time. xen/common/page_alloc.c /* Allocate 2^@order contiguous pages. */ static struct page_info *alloc_heap_pages( unsigned int zone_lo, unsigned int zone_hi, unsigned int node, unsigned int order, unsigned int memflags) { if ( pg[i].u.free.need_tlbflush ) { /* Add in extra CPUs that need flushing because of this page. */ cpus_andnot(extra_cpus_mask, cpu_online_m...
2006 Sep 22
0
[XenPPC] Re: [PATCH] Fix BUG in alloc_heap_pages
...t if the last element of a list is deleted > with list_del(), and then the list is scanned with list_empty(), > undefined results can occur. The following patch fixes a BUG that > triggers on one of my blades that has 8 GB of RAM. > > I believe that the failing sequence is that when alloc_heap_pages > happens to exhaust a zone list and does a list_del on the last element > and returns, and then the next call to the same function looks through > the same list and decides that it is not empty and tries to do a > list_del, which triggers the BUG I am seeing. > > Thanks to Jimi X...
2006 Sep 29
0
[PATCH 2/6] xen: add per-node bucks to page allocator
...LIGNED) ) + free_heap_pages(zone, pg+i, 0); + else + printk("Reserving non-aligned node boundary @ mfn %lu\n", + page_to_mfn(pg+i)); + + nid_prev = nid_curr; + } +} /* Allocate 2^@order contiguous pages. */ -struct page_info *alloc_heap_pages(unsigned int zone, unsigned int order) -{ - int i; +struct page_info *alloc_heap_pages(unsigned int zone, unsigned int cpu, + unsigned int order) +{ + unsigned int i,j, node = cpu_to_node(cpu), num_nodes = num_online_nodes(); + unsigned int request = (1UL...
2012 Nov 15
1
[RFC/PATCH v4] XENMEM_claim_pages (subop of existing) hypercall
...ore descriptive failure return values [JBeulich] - Don''t allow a claim to exceed max_pages [IanC] - Subops must be in correct ifdef block in memory.c [keir] v1->v2: - Add reset-to-zero page claim in domain_kill [JBeulich] - Proper handling of struct passed to hypercall [JBeulich] - Fix alloc_heap_pages when a domain has a claim [JBeulich] - Need not hold heap_lock if !d->unclaimed_pages [keir] - Fix missed tot_pages call in donate_page [djm] - Remove domain_reset_unclaimed_pages; use set with zero [djm] - Bugfixes found through testing in set_unclaimed [djm] - More comments in code [djm] - Cod...
2007 Mar 28
2
[PATCH 2/3] User-space grant table device - main driver
A character device for accessing (in user-space) pages that have been granted by other domains. Signed-off-by: Derek Murray <Derek.Murray@cl.cam.ac.uk> _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel