[PATCH 3/3] x86, crash: Allocate enough low-mem when crashkernel=high

2015-06-05 Thread Joerg Roedel
From: Joerg Roedel When the crashkernel is loaded above 4GiB in memory the first kernel only allocates 72MiB of low-memory for the DMA requirements of the second kernel. On systems with many devices this is not enough and causes device driver initialization errors and failed crash dumps. Testing

Re: [PATCH 3/3] x86, crash: Allocate enough low-mem when crashkernel=high

2015-02-14 Thread Baoquan He
On 02/13/15 at 11:28pm, Joerg Roedel wrote: > Hi Baoquan, > > On Fri, Feb 13, 2015 at 11:34:38PM +0800, Baoquan He wrote: > > Conclusively, I like 256M since the testing data showed it's sufficient > > now and should be save for a long time. > > Thanks, I am fine with 256MB too, so can I have you

Re: [PATCH 3/3] x86, crash: Allocate enough low-mem when crashkernel=high

2015-02-13 Thread Joerg Roedel
Hi Baoquan, On Fri, Feb 13, 2015 at 11:34:38PM +0800, Baoquan He wrote: > Conclusively, I like 256M since the testing data showed it's sufficient > now and should be save for a long time. Thanks, I am fine with 256MB too, so can I have your Acked-by on this series? I will rebase and resend it the

Re: [PATCH 3/3] x86, crash: Allocate enough low-mem when crashkernel=high

2015-02-13 Thread Baoquan He
On 02/09/15 at 01:20pm, Joerg Roedel wrote: > Hi Baoquan, > > On Wed, Feb 04, 2015 at 03:10:20PM +0100, Joerg Roedel wrote: > > That makes sense. I also asked the customer to test intermediate values, > > we already know that it works with 256MB but also that 128MB are not > > enough. I will repor

Re: [PATCH 3/3] x86, crash: Allocate enough low-mem when crashkernel=high

2015-02-09 Thread Joerg Roedel
Hi Baoquan, On Wed, Feb 04, 2015 at 03:10:20PM +0100, Joerg Roedel wrote: > That makes sense. I also asked the customer to test intermediate values, > we already know that it works with 256MB but also that 128MB are not > enough. I will report back when I have the results of the intermediate > val

Re: [PATCH 3/3] x86, crash: Allocate enough low-mem when crashkernel=high

2015-02-04 Thread Joerg Roedel
Hi Baoquan, On Sun, Feb 01, 2015 at 04:41:03PM +0800, Baoquan He wrote: > Before I said 256M may not be a good value, that's because in your patch > cover you said this number comes from experiments on the affected > systems, and 128M was still not enough, then you set it to 256M. This > may be a

Re: [PATCH 3/3] x86, crash: Allocate enough low-mem when crashkernel=high

2015-02-01 Thread Baoquan He
On 01/26/15 at 01:07pm, Joerg Roedel wrote: > Hi Baoquan, > > thanks for your reply. > > On Fri, Jan 23, 2015 at 04:44:53PM +0800, Baoquan He wrote: > > 2) increase low-mem when crashkernel=high. But we have to be careful to > > do this. We implement crashkernel=high not only for the unhappiness

Re: [PATCH 3/3] x86, crash: Allocate enough low-mem when crashkernel=high

2015-01-26 Thread Borislav Petkov
On Mon, Jan 26, 2015 at 01:40:06PM +0100, Joerg Roedel wrote: > Yes. Given that we have no data about what would work on most > systems, we can only change the value to a number that fixes know > problems and then act on possible regressions caused by the change (and > that change is pretty easy to

Re: [PATCH 3/3] x86, crash: Allocate enough low-mem when crashkernel=high

2015-01-26 Thread Joerg Roedel
On Mon, Jan 26, 2015 at 01:20:17PM +0100, Borislav Petkov wrote: > On Mon, Jan 26, 2015 at 01:11:42PM +0100, Joerg Roedel wrote: > > Or we solve it in user-space by some more cleverness in creating the > > kernel command-line for crashkernel=high. > > I'd say, we should try to do as much as possib

Re: [PATCH 3/3] x86, crash: Allocate enough low-mem when crashkernel=high

2015-01-26 Thread Borislav Petkov
On Mon, Jan 26, 2015 at 01:11:42PM +0100, Joerg Roedel wrote: > Well, there is no easy way. But we could collect information from the > loaded drivers on boot about how many dma-memory they allocate and base > our allocation on that. That sounds like a nifty idea to me. > Or we solve it in user-s

Re: [PATCH 3/3] x86, crash: Allocate enough low-mem when crashkernel=high

2015-01-26 Thread Joerg Roedel
On Fri, Jan 23, 2015 at 06:02:43PM +0100, Borislav Petkov wrote: > On Tue, Jan 06, 2015 at 03:51:14PM +0100, Joerg Roedel wrote: > > From: Joerg Roedel > > > > When the crashkernel is loaded above 4GiB in memory the > > first kernel only allocates 72MiB of low-memory for the DMA > > requirements

Re: [PATCH 3/3] x86, crash: Allocate enough low-mem when crashkernel=high

2015-01-26 Thread Joerg Roedel
Hi Baoquan, thanks for your reply. On Fri, Jan 23, 2015 at 04:44:53PM +0800, Baoquan He wrote: > 2) increase low-mem when crashkernel=high. But we have to be careful to > do this. We implement crashkernel=high not only for the unhappiness > crashkernel reservation is limited below 4G, but dma/dma

Re: [PATCH 3/3] x86, crash: Allocate enough low-mem when crashkernel=high

2015-01-23 Thread Borislav Petkov
On Tue, Jan 06, 2015 at 03:51:14PM +0100, Joerg Roedel wrote: > From: Joerg Roedel > > When the crashkernel is loaded above 4GiB in memory the > first kernel only allocates 72MiB of low-memory for the DMA > requirements of the second kernel. On systems with many > devices this is not enough and c

Re: [PATCH 3/3] x86, crash: Allocate enough low-mem when crashkernel=high

2015-01-23 Thread Baoquan He
Hi Joerg, Yeah, it does happen if too many devices. I guess the reason no reports come to us on rhel is we always use a auto mechsanism. We always try to allocate from below 896M, if failed try below 4G, if failed try above 4G. This could be solved in 2 ways: 1) We could optimize the distro shel

[PATCH 3/3] x86, crash: Allocate enough low-mem when crashkernel=high

2015-01-06 Thread Joerg Roedel
From: Joerg Roedel When the crashkernel is loaded above 4GiB in memory the first kernel only allocates 72MiB of low-memory for the DMA requirements of the second kernel. On systems with many devices this is not enough and causes device driver initialization errors and failed crash dumps. Set this

[PATCH 3/3] x86, crash: Allocate enough low-mem when crashkernel=high

2014-11-28 Thread Joerg Roedel
From: Joerg Roedel When the crashkernel is loaded above 4GiB in memory the first kernel only allocates 72MiB of low-memory for the DMA requirements of the second kernel. On systems with many devices this is not enough and causes device driver initialization errors and failed crash dumps. Set this