[RFC PATCH v1 0/3] kdump, vmcore: Map vmcore memory in direct mapping region
Vivek Goyal
vgoyal at redhat.com
Fri Jan 18 15:54:13 EST 2013
On Fri, Jan 18, 2013 at 11:06:59PM +0900, HATAYAMA Daisuke wrote:
[..]
> > These are impressive improvements. I missed the discussion on mmap().
> > So why couldn't we provide mmap() interface for /proc/vmcore. If that
> > works then application can select to mmap/unmap bigger chunks of file
> > (instead ioremap mapping/remapping a page at a time).
> >
> > And if application controls the size of mapping, then it can vary the
> > size of mapping based on available amount of free memory. That way if
> > somebody reserves less amount of memory, we could still dump but with
> > some time penalty.
> >
>
> mmap() needs user-space page table in addition to kernel-space's,
[ CC Rik van Riel]
I was chatting with Rik and it does not look like that there is any
fundamental requirement that range of pfn being mapped in user tables
has to be mapped in kernel tables too. Did you run into specific issue.
> and
> it looks that remap_pfn_range() that creates the user-space page
> table, doesn't support large pages, only 4KB pages.
This indeed looks like the case. May be we can enahnce remap_pfn_range()
to take an argument and create larger size mappings.
> If mmaping small
> chunks only for small memory programming, then we would again face the
> same issue as with ioremap.
Even if it is 4KB pages, I think it will still be faster than current
interface. Because we will not be issuing these many tlb flushes.
(Assuming makedumpfile has been modified to map/unap large areas of
/proc/vmcore).
Thanks
Vivek
More information about the kexec
mailing list