Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Jul 2004 16:02:18 +0300
From:      Peter Pentchev <roam@ringlet.net>
To:        Mark Murray <markm@freebsd.org>
Cc:        arch@freebsd.org
Subject:   Re: [PATCH] Big cleanup job on memory device
Message-ID:  <20040722130218.GA17391@straylight.m.ringlet.net>
In-Reply-To: <200407211952.i6LJquJ3010111@grimreaper.grondar.org>
References:  <200407211952.i6LJquJ3010111@grimreaper.grondar.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--LKTjZJSUETSlgu2t
Content-Type: multipart/mixed; boundary="MnLPg7ZWsaic7Fhd"
Content-Disposition: inline


--MnLPg7ZWsaic7Fhd
Content-Type: text/plain; charset=windows-1251
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Jul 21, 2004 at 08:52:55PM +0100, Mark Murray wrote:
> Hey all
>=20
> Please have a look at http://people.freebsd.org/~markm/mem.diff
>=20
> It is a big cleanup of sys/${ARCH}/${ARCH}/mem.c, and it turns
> multiple copies of MD code into MI code with the MD bits broken
> out. Lots of garbage is retired.
>=20
> It also turns the memory and io devices into loadable modules,
> but going this route is probably for the braver folks amongst us.
>=20
> I wrote 99% of this code more than a year ago, and over time, its
> been tested on i386, alpha and sparc64.

Works for me; it just survived a buildworld on my somewhat loaded
workstation (MySQL, PostgreSQL, X and all).

It seems that you would need something like the attached patch to
actually build LINT, though.  And of course, a very strongly-worded
UPDATING entry about including the 'null' and 'mem' devices in
the kernel config, but I guess that's already on your list :)

G'luck,
Peter

--=20
Peter Pentchev	roam@ringlet.net    roam@cnsys.bg    roam@FreeBSD.org
PGP key:	http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint	FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
If wishes were fishes, the antecedent of this conditional would be true.

--MnLPg7ZWsaic7Fhd
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="mem-NOTES.patch"
Content-Transfer-Encoding: quoted-printable

Index: sys/conf/NOTES
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /home/ncvs/src/sys/conf/NOTES,v
retrieving revision 1.1249
diff -u -r1.1249 NOTES
--- sys/conf/NOTES	20 Jul 2004 12:42:54 -0000	1.1249
+++ sys/conf/NOTES	22 Jul 2004 12:45:04 -0000
@@ -831,6 +831,12 @@
 # Cryptographically secure random number generator; /dev/[u]random
 device		random
=20
+# The bit-bucket; /dev/null
+device		null
+
+# The system memory device; /dev/mem
+device		mem
+
 # Optional character code conversion support with LIBICONV.
 # Each option requires their base file system and LIBICONV.
 options 	CD9660_ICONV
Index: sys/amd64/conf/NOTES
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /home/ncvs/src/sys/amd64/conf/NOTES,v
retrieving revision 1.14
diff -u -r1.14 NOTES
--- sys/amd64/conf/NOTES	17 May 2004 22:13:14 -0000	1.14
+++ sys/amd64/conf/NOTES	22 Jul 2004 12:45:43 -0000
@@ -517,3 +517,7 @@
 options 	VM_KMEM_SIZE
 options 	VM_KMEM_SIZE_MAX
 options 	VM_KMEM_SIZE_SCALE
+
+=0C
+# The I/O device
+device		io
Index: sys/i386/conf/NOTES
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /home/ncvs/src/sys/i386/conf/NOTES,v
retrieving revision 1.1166
diff -u -r1.1166 NOTES
--- sys/i386/conf/NOTES	21 Jul 2004 14:47:54 -0000	1.1166
+++ sys/i386/conf/NOTES	22 Jul 2004 12:45:25 -0000
@@ -1053,3 +1053,7 @@
 options 	VM_KMEM_SIZE
 options 	VM_KMEM_SIZE_MAX
 options 	VM_KMEM_SIZE_SCALE
+
+=0C
+# The I/O device
+device		io

--MnLPg7ZWsaic7Fhd--

--LKTjZJSUETSlgu2t
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFA/7ra7Ri2jRYZRVMRAv6+AKCRXUtW+ytDt1mB9YupvgaLsxQPCACfR0RK
b7+dh/ir80un3+7JjnDnn04=
=ePNB
-----END PGP SIGNATURE-----

--LKTjZJSUETSlgu2t--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040722130218.GA17391>