lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <86802c440805010938s1fb6c3feu67a31b281223686c@mail.gmail.com>
Date:	Thu, 1 May 2008 09:38:38 -0700
From:	"Yinghai Lu" <yhlu.kernel@...il.com>
To:	"Randy Dunlap" <randy.dunlap@...cle.com>,
	"Ingo Molnar" <mingo@...e.hu>
Cc:	"Yinghai Lu" <yhlu.kernel.send@...il.com>,
	"Andrew Morton" <akpm@...ux-foundation.org>,
	"H. Peter Anvin" <hpa@...or.com>,
	"Thomas Gleixner" <tglx@...utronix.de>,
	"Gabriel C" <nix.or.die@...glemail.com>,
	"Mika Fischer" <mika.fischer@...pnet.de>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] x86: mtrr cleanup for converting continuous to discrete - auto detect

On Thu, May 1, 2008 at 8:09 AM, Randy Dunlap <randy.dunlap@...cle.com> wrote:
> On Thu, 1 May 2008 01:00:34 -0700 Yinghai Lu wrote:
>
>  >
>  > loop mtrr chunk_size and gran_size from 1M to 2G to find out optimal value.
>
>  What size step (increment) is used for these loops?
>
>
>  > so user don't need to add mtrr_chunk_size and mtrr_gran_size,
>  >
>  > if optimal value is not found, print out all list to help select less optimal
>  > value.
>  >
>  > add mtrr_spare_reg_nr= so user could set 2 instead of 1, if the card need more entries.
>  >
>  > Signed-off-by: Yinghai Lu <yhlu.kernel@...il.com>
>  >
>
>
> > Index: linux-2.6/Documentation/kernel-parameters.txt
>  > ===================================================================
>  > --- linux-2.6.orig/Documentation/kernel-parameters.txt
>  > +++ linux-2.6/Documentation/kernel-parameters.txt
>  > @@ -613,9 +613,17 @@ and is between 256 and 4096 characters.
>  >                       that could hold holes aka. UC entries.
>  >
>  >       mtrr_gran_size=nn[KMG] [X86]
>  > -                     used for mtrr cleanup. It is granity of mtrr block.
>  > +                     used for mtrr cleanup. It is granularity of mtrr block.
>  > +                     default is 1.
>
>                         Default
>
>
>  >                       Big value could prevent small alignment use up MTRRs.
>
>                         Large value could prevent small alignment from
>                         using up MTRRs.
>
>
>  >
>  > +     mtrr_spare_reg_nr=n [X86]
>  > +                     Format: <integer>
>  > +                     range: 0,7 : spare reg number
>  > +                     default : 1
>  > +                     used for mtrr cleanup. It is spare mtrr entries number.
>
>                         Used
>
>
>  > +                     set to 2 or more if your graphical card need more.
>
>                         Set                                     needs more.
>
>
>  > +
>  >       disable_mtrr_trim [X86, Intel and AMD only]
>  >                       By default the kernel will trim any uncacheable
>  >                       memory out of your available memory pool based on
>

Ingo, can you change that directly in the patch?
or need me send another updated patch?

YH
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ