ZERO_REGION_SIZE
Adrian Chadd
adrian at freebsd.org
Thu Nov 15 19:09:50 UTC 2012
Alan, would you like me to send you some MIPS hardwarE?
Adrian
On 15 November 2012 10:25, Alan Cox <alc at rice.edu> wrote:
> Given the possibility of L1 cache aliasing on some (many?) MIPS
> processors, I think that you, i.e., MIPS users, should evaluate the
> performance effects of the following change:
>
> Index: mips/include/vmparam.h
> ===================================================================
> --- mips/include/vmparam.h (revision 243091)
> +++ mips/include/vmparam.h (working copy)
> @@ -190,6 +190,6 @@
> */
> #define VM_NFREEORDER 9
>
> -#define ZERO_REGION_SIZE (64 * 1024) /* 64KB */
> +#define ZERO_REGION_SIZE 4096
>
> #endif /* !_MACHINE_VMPARAM_H_ */
>
> You can quantify the impact with a simple test like:
>
> dd if=/dev/zero of=/dev/null bs=<64 or 128>k count=<something non-trivial>
>
> If possible, please use a kernel without WITNESS or INVARIANTS.
>
> Alan
>
> P.S. I would also be curious how setting this to 8192 would perform.
>
More information about the freebsd-mips
mailing list