From 0aff0e5174d0708bf1bfb039ab863e1fea8a1029 Mon Sep 17 00:00:00 2001 From: Petr Tesarik Date: Wed, 31 Oct 2012 16:12:47 +0900 Subject: [PATCH] keep dumpfile pages in a cache. Add a simple cache for pages read from the dumpfile. This is a big win if we read consecutive data from one page, e.g. page descriptors, or even page table entries. Note that makedumpfile now always reads a complete page. This was already the case with kdump-compressed and sadump formats, but makedumpfile was throwing most of the data away. For the kdump-compressed case, we may actually save a lot of decompression, too. I tried to keep the cache small to minimize memory footprint, but it should be big enough to hold all pages to do 4-level paging plus some data. This is needed e.g. for vmalloc areas or Xen page frame table data, which are not contiguous in physical memory. Signed-off-by: Petr Tesarik --- sadump_info.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sadump_info.h') diff --git a/sadump_info.h b/sadump_info.h index c4824be..766f35d 100644 --- a/sadump_info.h +++ b/sadump_info.h @@ -43,7 +43,7 @@ int sadump_initialize_bitmap_memory(void); int sadump_num_online_cpus(void); int sadump_set_timestamp(struct timeval *ts); unsigned long long sadump_get_max_mapnr(void); -int readpmem_sadump(unsigned long long paddr, void *bufptr, size_t size); +int readpage_sadump(unsigned long long paddr, void *bufptr); int sadump_check_debug_info(void); int sadump_generate_vmcoreinfo_from_vmlinux(size_t *vmcoreinfo_size); int sadump_generate_elf_note_from_dumpfile(void); -- cgit v1.2.3