Re: dynamically calculating NKPT [was: Re: huge ktr buffer]

2013-02-06 Thread Andriy Gapon
on 05/02/2013 01:05 Neel Natu said the following: > Hi, > > I have a patch to dynamically calculate NKPT for amd64 kernels. This > should fix the various issues that people pointed out in the email > thread. > > Please review and let me know if there are any objections to committing this. > > Al

Re: dynamically calculating NKPT [was: Re: huge ktr buffer]

2013-02-05 Thread Konstantin Belousov
On Tue, Feb 05, 2013 at 09:12:41AM -0800, Neel Natu wrote: > Hi Konstantin, > > Sounds fine. I can bump it up to 8 pages. > > Also, wrt your comment about scaling this number based on available > memory, I wonder if it makes sense to optimize for 16KB of additional > space. If it boots on 128MB a

Re: dynamically calculating NKPT [was: Re: huge ktr buffer]

2013-02-05 Thread Neel Natu
Hi Konstantin, On Tue, Feb 5, 2013 at 7:14 AM, Konstantin Belousov wrote: > On Mon, Feb 04, 2013 at 03:05:15PM -0800, Neel Natu wrote: >> Hi, >> >> I have a patch to dynamically calculate NKPT for amd64 kernels. This >> should fix the various issues that people pointed out in the email >> thread.

Re: dynamically calculating NKPT [was: Re: huge ktr buffer]

2013-02-05 Thread Neel Natu
Hi Matthew, On Tue, Feb 5, 2013 at 7:45 AM, wrote: > On Tue, Feb 5, 2013 at 7:14 AM, Konstantin Belousov > wrote: >> On Mon, Feb 04, 2013 at 03:05:15PM -0800, Neel Natu wrote: >>> Hi, >>> >>> I have a patch to dynamically calculate NKPT for amd64 kernels. This >>> should fix the various issues

Re: dynamically calculating NKPT [was: Re: huge ktr buffer]

2013-02-05 Thread Alan Cox
On 02/05/2013 10:13, Konstantin Belousov wrote: > On Tue, Feb 05, 2013 at 07:45:24AM -0800, m...@freebsd.org wrote: >> On Tue, Feb 5, 2013 at 7:14 AM, Konstantin Belousov >> wrote: >>> On Mon, Feb 04, 2013 at 03:05:15PM -0800, Neel Natu wrote: Hi, I have a patch to dynamically calc

Re: dynamically calculating NKPT [was: Re: huge ktr buffer]

2013-02-05 Thread Alan Cox
On 02/05/2013 09:45, m...@freebsd.org wrote: > On Tue, Feb 5, 2013 at 7:14 AM, Konstantin Belousov > wrote: >> On Mon, Feb 04, 2013 at 03:05:15PM -0800, Neel Natu wrote: >>> Hi, >>> >>> I have a patch to dynamically calculate NKPT for amd64 kernels. This >>> should fix the various issues that peo

Re: dynamically calculating NKPT [was: Re: huge ktr buffer]

2013-02-05 Thread Konstantin Belousov
On Tue, Feb 05, 2013 at 07:45:24AM -0800, m...@freebsd.org wrote: > On Tue, Feb 5, 2013 at 7:14 AM, Konstantin Belousov > wrote: > > On Mon, Feb 04, 2013 at 03:05:15PM -0800, Neel Natu wrote: > >> Hi, > >> > >> I have a patch to dynamically calculate NKPT for amd64 kernels. This > >> should fix t

Re: dynamically calculating NKPT [was: Re: huge ktr buffer]

2013-02-05 Thread mdf
On Tue, Feb 5, 2013 at 7:14 AM, Konstantin Belousov wrote: > On Mon, Feb 04, 2013 at 03:05:15PM -0800, Neel Natu wrote: >> Hi, >> >> I have a patch to dynamically calculate NKPT for amd64 kernels. This >> should fix the various issues that people pointed out in the email >> thread. >> >> Please re

Re: dynamically calculating NKPT [was: Re: huge ktr buffer]

2013-02-05 Thread Konstantin Belousov
On Mon, Feb 04, 2013 at 03:05:15PM -0800, Neel Natu wrote: > Hi, > > I have a patch to dynamically calculate NKPT for amd64 kernels. This > should fix the various issues that people pointed out in the email > thread. > > Please review and let me know if there are any objections to committing this

dynamically calculating NKPT [was: Re: huge ktr buffer]

2013-02-04 Thread Neel Natu
Hi, I have a patch to dynamically calculate NKPT for amd64 kernels. This should fix the various issues that people pointed out in the email thread. Please review and let me know if there are any objections to committing this. Also, thanks to Alan (alc@) for reviewing and providing feedback on th

Re: huge ktr buffer

2012-12-09 Thread rank1seeker
> As also Alan suggested, a way to workaround the problem is to increase > NKPT value (e.g. from 32 to 64). Obviously, this is not a proper fix. > For a proper fix the kernel needs to be able to dynamically set the > size of NKPT. In this particular case, this wouldn't be too hard, but > there is

Re: huge ktr buffer

2012-12-06 Thread Alan Cox
On 12/06/2012 09:43, Davide Italiano wrote: > On Thu, Dec 6, 2012 at 4:18 PM, Andriy Gapon wrote: >> So I configured a kernel with the following option: >> options KTR_ENTRIES="(1024UL*1024)" >> then booted the kernel and did >> $ sysctl debug.ktr.clear=1 >> and got an insta-reboot. >> >> No

Re: huge ktr buffer

2012-12-06 Thread Davide Italiano
On Thu, Dec 6, 2012 at 4:18 PM, Andriy Gapon wrote: > > So I configured a kernel with the following option: > options KTR_ENTRIES="(1024UL*1024)" > then booted the kernel and did > $ sysctl debug.ktr.clear=1 > and got an insta-reboot. > > No panic, nothing, just a reset. > > I suspect that t

huge ktr buffer

2012-12-06 Thread Andriy Gapon
So I configured a kernel with the following option: options KTR_ENTRIES="(1024UL*1024)" then booted the kernel and did $ sysctl debug.ktr.clear=1 and got an insta-reboot. No panic, nothing, just a reset. I suspect that the huge static buffer resulting from the above option could be a cause