Date: Fri, 13 May 2011 23:07:56 +0300 From: Kostik Belousov <kostikbel@gmail.com> To: Alan Cox <alc@rice.edu> Cc: svn-src-head@freebsd.org, Matthew D Fleming <mdf@freebsd.org>, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r221855 - in head/sys: amd64/include arm/include dev/md dev/null i386/include ia64/include mips/include powerpc/include sparc64/include sun4v/include sys vm Message-ID: <20110513200756.GA48734@deviant.kiev.zoral.com.ua> In-Reply-To: <4DCD8A6B.3000204@rice.edu> References: <201105131935.p4DJZ14Q080511@svn.freebsd.org> <20110513194014.GZ48734@deviant.kiev.zoral.com.ua> <4DCD8A6B.3000204@rice.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
--aQoHefV7R8EJhyq8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 13, 2011 at 02:45:47PM -0500, Alan Cox wrote: > On 5/13/2011 2:40 PM, Kostik Belousov wrote: > >On Fri, May 13, 2011 at 07:35:01PM +0000, Matthew D Fleming wrote: > >>Author: mdf > >>Date: Fri May 13 19:35:01 2011 > >>New Revision: 221855 > >>URL: http://svn.freebsd.org/changeset/base/221855 > >> > >>Log: > >> Move the ZERO_REGION_SIZE to a machine-dependent file, as on many > >> architectures (i386, for example) the virtual memory space may be > >> constrained enough that 2MB is a large chunk. Use 64K for arches > >> other than amd64 and ia64, with special handling for sparc64 due to > >> differing hardware. > >> > >> Also commit the comment changes to kmem_init_zero_region() that I > >> missed due to not saving the file. (Darn the unfamiliar development > >> environment). > >> > >> Arch maintainers, please feel free to adjust ZERO_REGION_SIZE as you > >> see fit. > >> > >> Requested by: alc > >> MFC after: 1 week > >> MFC with: r221853 > >Wasting 2MB even on amd64 is not quite good, IMHO. >=20 > It's virtual address space, of which we have 512GB on amd64, and not=20 > physical memory. Only one page of physical memory is used. I should have read the patch more careful. Sorry. --aQoHefV7R8EJhyq8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEARECAAYFAk3Nj5wACgkQC3+MBN1Mb4hnAgCg9H1sf9o7qfsMzmvb58YXlmID LBsAn16fgnDKtouNv1SbV5+/E94im5ci =XKOK -----END PGP SIGNATURE----- --aQoHefV7R8EJhyq8--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110513200756.GA48734>