Subject: Re: README: kernel pty struct allocation change
To: =?X-UNKNOWN?Q?Jarom=EDr_Dole=E8ek?= <dolecek@ibis.cz>
From: David Brownlee <abs@netbsd.org>
List: current-users
Date: 09/10/2000 19:04:06
On Sun, 10 Sep 2000, Jarom=EDr Dole=E8ek wrote:

> The biggest chunk of memory is taken by appropriate tty structs, which
> were also allocated at runtime previously. While pty private structure
> is about 20B on i386, the tty struct is like 200 B or even more.
>=20
> Memory needed for pty-private structures for 512 entries is now like:
> =09512 * sizeof(void *) + 512 * sizeof(struct pt_softc) =3D (approx) 1228=
8 B
>=20
> Total memory needed for fully populated array with 512 entries, when tty
> struct is included (on i386, approximate guess):
> =0912288 + 512 * sizeof(struct tty) =3D 114688 bytes

=09Do the INSTALL kernel configs need any tweaking to save as much
=09space as possible after this change? (IIRC they need two ptys)

                David/absolute
=09=09=09       -- www.netbsd.org: A pmap for every occasion --