search for: page_remove_rmap

Displaying 20 results from an estimated 33 matches for "page_remove_rmap".

2020 Jun 22
2
[PATCH 13/16] mm: support THP migration to device private memory
...t; } else { >>> struct page *page = NULL; >>> int flush_needed = 1; >>> + bool is_anon = false; >>> >>> if (pmd_present(orig_pmd)) { >>> page = pmd_page(orig_pmd); >>> + is_anon = PageAnon(page); >>> page_remove_rmap(page, true); >>> VM_BUG_ON_PAGE(page_mapcount(page) < 0, page); >>> VM_BUG_ON_PAGE(!PageHead(page), page); >>> } else if (thp_migration_supported()) { >>> swp_entry_t entry; >>> >>> - VM_BUG_ON(!is_pmd_migration_entry(ori...
2020 Jun 22
2
[PATCH 13/16] mm: support THP migration to device private memory
...t;>>>> int flush_needed = 1; >>>>> + bool is_anon = false; >>>>> >>>>> if (pmd_present(orig_pmd)) { >>>>> page = pmd_page(orig_pmd); >>>>> + is_anon = PageAnon(page); >>>>> page_remove_rmap(page, true); >>>>> VM_BUG_ON_PAGE(page_mapcount(page) < 0, page); >>>>> VM_BUG_ON_PAGE(!PageHead(page), page); >>>>> } else if (thp_migration_supported()) { >>>>> swp_entry_t entry; >>>>> >>&g...
2006 May 12
0
question about foreign mapped page
Hi, All! I met a bug when destroyed the VMX. page_remove_rmap() BUG on page->_mapcount when QEMU exited. I try to solve this problem but I''m not familiar with MM code. So I wanna ask you guys several questions and hope you can give some clues: 1)If we map a foreign page(DomainU or VMX) to Domain0 through xc_map_foreign_range, the pfn(in Domain0...
2020 Jun 21
2
[PATCH 13/16] mm: support THP migration to device private memory
...nt zap_huge_pmd(struct mmu_gather *tlb, struct vm_area_struct *vma, > } else { > struct page *page = NULL; > int flush_needed = 1; > + bool is_anon = false; > > if (pmd_present(orig_pmd)) { > page = pmd_page(orig_pmd); > + is_anon = PageAnon(page); > page_remove_rmap(page, true); > VM_BUG_ON_PAGE(page_mapcount(page) < 0, page); > VM_BUG_ON_PAGE(!PageHead(page), page); > } else if (thp_migration_supported()) { > swp_entry_t entry; > > - VM_BUG_ON(!is_pmd_migration_entry(orig_pmd)); > entry = pmd_to_swp_entry(orig_pmd)...
2020 Jun 22
0
[PATCH 13/16] mm: support THP migration to device private memory
...ruct vm_area_struct *vma, >> } else { >> struct page *page = NULL; >> int flush_needed = 1; >> + bool is_anon = false; >> >> if (pmd_present(orig_pmd)) { >> page = pmd_page(orig_pmd); >> + is_anon = PageAnon(page); >> page_remove_rmap(page, true); >> VM_BUG_ON_PAGE(page_mapcount(page) < 0, page); >> VM_BUG_ON_PAGE(!PageHead(page), page); >> } else if (thp_migration_supported()) { >> swp_entry_t entry; >> >> - VM_BUG_ON(!is_pmd_migration_entry(orig_pmd)); >> e...
2007 May 23
0
Apache CGI Performance Big Degration in Dom0 vs. Native
...mbol name 46048 5.8715 vmlinux-2.6.16.46-0.10-bigsmp kmap_atomic 41587 5.3027 vmlinux-2.6.16.46-0.10-bigsmp copy_page_range 39759 5.0696 vmlinux-2.6.16.46-0.10-bigsmp unmap_vmas 38722 4.9373 vmlinux-2.6.16.46-0.10-bigsmp page_fault 30638 3.9066 vmlinux-2.6.16.46-0.10-bigsmp page_remove_rmap 29481 3.7591 vmlinux-2.6.16.46-0.10-bigsmp __handle_mm_fault Native Prefork: CPU: Core 2, speed 2667.14 MHz (estimated) Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with a unit mask of 0x00 (Unhalted core cycles) count 100000 samples % app name symbo...
2007 May 23
0
Apache CGI Performance Big Degration in Dom0 vs. Native
...mbol name 46048 5.8715 vmlinux-2.6.16.46-0.10-bigsmp kmap_atomic 41587 5.3027 vmlinux-2.6.16.46-0.10-bigsmp copy_page_range 39759 5.0696 vmlinux-2.6.16.46-0.10-bigsmp unmap_vmas 38722 4.9373 vmlinux-2.6.16.46-0.10-bigsmp page_fault 30638 3.9066 vmlinux-2.6.16.46-0.10-bigsmp page_remove_rmap 29481 3.7591 vmlinux-2.6.16.46-0.10-bigsmp __handle_mm_fault Native Prefork: CPU: Core 2, speed 2667.14 MHz (estimated) Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with a unit mask of 0x00 (Unhalted core cycles) count 100000 samples % app name symbo...
2009 Mar 26
3
Install Zimbra on a Xen DomU
...;flags = 4000083c page->count = 2 page->mapping = cd946510 vma->vm_ops = 0x0 ------------[ cut here ]------------ kernel BUG at mm/rmap.c:669! invalid opcode: 0000 [#1] SMP Pid: 7717, comm: java Not tainted (2.6.25.7 #1) EIP: 0061:[<c025a789>] EFLAGS: 00010246 CPU: 0 EIP is at page_remove_rmap+0xf9/0x110 EAX: 00000000 EBX: c10e2820 ECX: 00000000 EDX: 00000000 ESI: ed2a12c0 EDI: 5d8960e0 EBP: c10e2820 ESP: eb071d88 DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0069 Process java (pid: 7717, ti=eb070000 task=ed319050 task.ti=eb070000) Stack: c05aee5f cd946510 00000000 071410e1 c0252676 5d8960e0...
2020 Jun 22
0
[PATCH 13/16] mm: support THP migration to device private memory
...struct page *page = NULL; >>>> int flush_needed = 1; >>>> + bool is_anon = false; >>>> >>>> if (pmd_present(orig_pmd)) { >>>> page = pmd_page(orig_pmd); >>>> + is_anon = PageAnon(page); >>>> page_remove_rmap(page, true); >>>> VM_BUG_ON_PAGE(page_mapcount(page) < 0, page); >>>> VM_BUG_ON_PAGE(!PageHead(page), page); >>>> } else if (thp_migration_supported()) { >>>> swp_entry_t entry; >>>> >>>> - VM_BUG_ON...
2006 Jul 03
1
Problem with CentOS 4.3 on kernel and ipvsadm
...soundcore 8139too mii floppy dm_snapshot dm_zero dm_mirror ext3 jbd dm_mod Jul 3 04:02:02 lvs2 kernel: CPU: 0 Jul 3 04:02:02 lvs2 kernel: EIP: 0060:[<c0160ee9>] Tainted: G B VLI Jul 3 04:02:02 lvs2 kernel: EFLAGS: 00010296 (2.6.9-39.EL) Jul 3 04:02:02 lvs2 kernel: EIP is at page_remove_rmap+0x22/0x36 Jul 3 04:02:02 lvs2 kernel: eax: fffffe00 ebx: c1082140 ecx: c1082140 edx: c1082140 Jul 3 04:02:02 lvs2 kernel: esi: 00000000 edi: 00003000 ebp: c42fd384 esp: c4241dec Jul 3 04:02:02 lvs2 kernel: ds: 007b es: 007b ss: 0068 Jul 3 04:02:02 lvs2 kernel: Process smtp (pid:...
2020 Jun 22
0
[PATCH 13/16] mm: support THP migration to device private memory
...> >>>>> > >>>>> if (pmd_present(orig_pmd)) { > >>>>> page = pmd_page(orig_pmd); > >>>>> + is_anon = PageAnon(page); > >>>>> page_remove_rmap(page, true); > >>>>> VM_BUG_ON_PAGE(page_mapcount(page) < 0, page); > >>>>> VM_BUG_ON_PAGE(!PageHead(page), page); > >>>>> } else if (thp_migration_supported()) { > >...
2020 Jun 22
2
[PATCH 13/16] mm: support THP migration to device private memory
...;> > > >>>>> if (pmd_present(orig_pmd)) { > > >>>>> page = pmd_page(orig_pmd); > > >>>>> + is_anon = PageAnon(page); > > >>>>> page_remove_rmap(page, true); > > >>>>> VM_BUG_ON_PAGE(page_mapcount(page) < 0, page); > > >>>>> VM_BUG_ON_PAGE(!PageHead(page), page); > > >>>>> } else if (thp_migration_supported...
2020 Jun 19
0
[PATCH 13/16] mm: support THP migration to device private memory
.../mm/huge_memory.c @@ -1663,23 +1663,35 @@ int zap_huge_pmd(struct mmu_gather *tlb, struct vm_area_struct *vma, } else { struct page *page = NULL; int flush_needed = 1; + bool is_anon = false; if (pmd_present(orig_pmd)) { page = pmd_page(orig_pmd); + is_anon = PageAnon(page); page_remove_rmap(page, true); VM_BUG_ON_PAGE(page_mapcount(page) < 0, page); VM_BUG_ON_PAGE(!PageHead(page), page); } else if (thp_migration_supported()) { swp_entry_t entry; - VM_BUG_ON(!is_pmd_migration_entry(orig_pmd)); entry = pmd_to_swp_entry(orig_pmd); - page = pfn_to_page(swp_offs...
2020 Nov 06
0
[PATCH v3 3/6] mm: support THP migration to device private memory
.../mm/huge_memory.c @@ -1682,23 +1682,35 @@ int zap_huge_pmd(struct mmu_gather *tlb, struct vm_area_struct *vma, } else { struct page *page = NULL; int flush_needed = 1; + bool is_anon = false; if (pmd_present(orig_pmd)) { page = pmd_page(orig_pmd); + is_anon = PageAnon(page); page_remove_rmap(page, true); VM_BUG_ON_PAGE(page_mapcount(page) < 0, page); VM_BUG_ON_PAGE(!PageHead(page), page); } else if (thp_migration_supported()) { swp_entry_t entry; - VM_BUG_ON(!is_pmd_migration_entry(orig_pmd)); entry = pmd_to_swp_entry(orig_pmd); - page = pfn_to_page(swp_offs...
2007 Apr 18
0
[patch 6/9] Guest page hinting: writable page table entries.
...* * __page_discard() - remove a discarded page from the cache * * @page: the page diff -urpN linux-2.6/mm/rmap.c linux-2.6-patched/mm/rmap.c --- linux-2.6/mm/rmap.c 2006-09-01 12:50:24.000000000 +0200 +++ linux-2.6-patched/mm/rmap.c 2006-09-01 12:50:24.000000000 +0200 @@ -600,6 +600,7 @@ void page_remove_rmap(struct page *page) set_page_dirty(page); __dec_zone_page_state(page, PageAnon(page) ? NR_ANON_PAGES : NR_FILE_MAPPED); + page_reset_writable(page); } }
2007 Apr 18
0
[patch 6/9] Guest page hinting: writable page table entries.
...* * __page_discard() - remove a discarded page from the cache * * @page: the page diff -urpN linux-2.6/mm/rmap.c linux-2.6-patched/mm/rmap.c --- linux-2.6/mm/rmap.c 2006-09-01 12:50:24.000000000 +0200 +++ linux-2.6-patched/mm/rmap.c 2006-09-01 12:50:24.000000000 +0200 @@ -600,6 +600,7 @@ void page_remove_rmap(struct page *page) set_page_dirty(page); __dec_zone_page_state(page, PageAnon(page) ? NR_ANON_PAGES : NR_FILE_MAPPED); + page_reset_writable(page); } }
2007 Apr 18
0
[patch 7/9] Guest page hinting: minor fault optimization.
...volatile(page, 1); } /* @@ -566,7 +565,6 @@ void page_add_file_rmap(struct page *pag { if (atomic_inc_and_test(&page->_mapcount)) __inc_zone_page_state(page, NR_FILE_MAPPED); - page_make_volatile(page, 1); } /** @@ -694,7 +692,7 @@ static int try_to_unmap_one(struct page page_remove_rmap(page); - page_cache_release(page); + page_cache_release_nocheck(page); out_unmap: pte_unmap_unlock(pte, ptl); diff -urpN linux-2.6/mm/swap.c linux-2.6-patched/mm/swap.c --- linux-2.6/mm/swap.c 2006-09-01 12:49:33.000000000 +0200 +++ linux-2.6-patched/mm/swap.c 2006-09-01 12:50:25.000000000 +02...
2007 Apr 18
0
[patch 7/9] Guest page hinting: minor fault optimization.
...volatile(page, 1); } /* @@ -566,7 +565,6 @@ void page_add_file_rmap(struct page *pag { if (atomic_inc_and_test(&page->_mapcount)) __inc_zone_page_state(page, NR_FILE_MAPPED); - page_make_volatile(page, 1); } /** @@ -694,7 +692,7 @@ static int try_to_unmap_one(struct page page_remove_rmap(page); - page_cache_release(page); + page_cache_release_nocheck(page); out_unmap: pte_unmap_unlock(pte, ptl); diff -urpN linux-2.6/mm/swap.c linux-2.6-patched/mm/swap.c --- linux-2.6/mm/swap.c 2006-09-01 12:49:33.000000000 +0200 +++ linux-2.6-patched/mm/swap.c 2006-09-01 12:50:25.000000000 +02...
2007 Apr 18
0
[patch 9/9] Guest page hinting: full s390 support.
...(0) #else #define SetPageUptodate(page) set_bit(PG_uptodate, &(page)->flags) diff -urpN linux-2.6/mm/rmap.c linux-2.6-patched/mm/rmap.c --- linux-2.6/mm/rmap.c 2006-09-01 12:50:25.000000000 +0200 +++ linux-2.6-patched/mm/rmap.c 2006-09-01 12:50:25.000000000 +0200 @@ -594,8 +594,18 @@ void page_remove_rmap(struct page *page) * Leaving it set also helps swapoff to reinstate ptes * faster for those pages still in swapcache. */ - if (page_test_and_clear_dirty(page)) + if (page_test_dirty(page)) { + BUG_ON(!page_make_stable(page)); + /* + * We decremented the mapcount so we now have...
2007 Apr 18
0
[patch 9/9] Guest page hinting: full s390 support.
...(0) #else #define SetPageUptodate(page) set_bit(PG_uptodate, &(page)->flags) diff -urpN linux-2.6/mm/rmap.c linux-2.6-patched/mm/rmap.c --- linux-2.6/mm/rmap.c 2006-09-01 12:50:25.000000000 +0200 +++ linux-2.6-patched/mm/rmap.c 2006-09-01 12:50:25.000000000 +0200 @@ -594,8 +594,18 @@ void page_remove_rmap(struct page *page) * Leaving it set also helps swapoff to reinstate ptes * faster for those pages still in swapcache. */ - if (page_test_and_clear_dirty(page)) + if (page_test_dirty(page)) { + BUG_ON(!page_make_stable(page)); + /* + * We decremented the mapcount so we now have...