Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Dec 1998 01:13:24 -0800
From:      Mike Smith <mike@smith.net.au>
To:        Julian Elischer <julian@whistle.com>
Cc:        Mike Smith <mike@smith.net.au>, Ollivier Robert <roberto@keltia.freenix.fr>, "FreeBSD Current Users' list" <freebsd-current@FreeBSD.ORG>
Subject:   Re: Pb with COMPAT_LINUX_THREADS 
Message-ID:  <199812210913.BAA51083@dingo.cdrom.com>
In-Reply-To: Your message of "Mon, 21 Dec 1998 01:06:59 PST." <Pine.BSF.3.95.981221010437.8357X-100000@current1.whistle.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> I agree with your suggestion, as long as I don't get crucified for
> moving 300 bytes from the u area into malloc'd space.

< 300k on a system capable of supporting 1000 processes - there are 
other things that I'd be worrying about at that point (like the size of 
the pagetables, which basically dwarf any other per-process overhead).

> The ifdef'd version is to let people look at it and think about it..
> possibly  as has been suggested, the malloc'd space might only be used if
> there is a sharing of signals. Otherwise it might remain in the U area.

That's certainly one way of doing it.  You could implement structure 
compression by COW off the parent's copy of the struct instead, that'd 
be even more efficient.

-- 
\\  Sometimes you're ahead,       \\  Mike Smith
\\  sometimes you're behind.      \\  mike@smith.net.au
\\  The race is long, and in the  \\  msmith@freebsd.org
\\  end it's only with yourself.  \\  msmith@cdrom.com



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



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