Skip to content

Commit 37a2f9f

Browse files
cpwickmanIngo Molnar
authored and
Ingo Molnar
committed
x86, kdump: Change copy_oldmem_page() to use cached addressing
The copy of /proc/vmcore to a user buffer proceeds much faster if the kernel addresses memory as cached. With this patch we have seen an increase in transfer rate from less than 15MB/s to 80-460MB/s, depending on size of the transfer. This makes a big difference in time needed to save a system dump. Signed-off-by: Cliff Wickman <[email protected]> Acked-by: "Eric W. Biederman" <[email protected]> Cc: [email protected] Cc: <[email protected]> # as far back as it would apply LKML-Reference: <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
1 parent 1c5f50e commit 37a2f9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/kernel/crash_dump_64.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ ssize_t copy_oldmem_page(unsigned long pfn, char *buf,
3434
if (!csize)
3535
return 0;
3636

37-
vaddr = ioremap(pfn << PAGE_SHIFT, PAGE_SIZE);
37+
vaddr = ioremap_cache(pfn << PAGE_SHIFT, PAGE_SIZE);
3838
if (!vaddr)
3939
return -ENOMEM;
4040

0 commit comments

Comments
 (0)