Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Jan 2008 15:48:29 +0200
From:      Kostik Belousov <kostikbel@gmail.com>
To:        Dag-Erling Sm??rgrav <des@des.no>
Cc:        Poul-Henning Kamp <phk@phk.freebsd.dk>, freebsd-current@freebsd.org, Robert Watson <rwatson@freebsd.org>, Jason Evans <jasone@freebsd.org>, Igor Mozolevsky <igor@hybrid-lab.co.uk>
Subject:   Re: sbrk(2) broken
Message-ID:  <20080104134829.GA57756@deviant.kiev.zoral.com.ua>
In-Reply-To: <86abnlag4t.fsf@ds4.des.no>
References:  <86myrlahee.fsf@ds4.des.no> <5647.1199451237@critter.freebsd.dk> <a2b6592c0801040503j650046f5k73895b5b0c84025d@mail.gmail.com> <86abnlag4t.fsf@ds4.des.no>

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

--28KEV0d44fEAywNn
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Jan 04, 2008 at 02:12:50PM +0100, Dag-Erling Sm??rgrav wrote:
> "Igor Mozolevsky" <igor@hybrid-lab.co.uk> writes:
> > This makes memory management in the userland hideously and
> > unnecessarily complicated. It's simpler to have SIGDANGER [...]
>=20
> You don't seem to understand what Poul-Henning was trying to point out,
> which is that broadcasting SIGDANGER can make a bad situation much, much
> worse by waking up and paging in every single process in the system,
> including processes that are blocked and wouldn't otherwise run for
> several minutes, hours or even days (getty, inetd, sshd, mountd, even
> nfsd / nfsiod in some cases can sleep for days at a time waiting for
> I/O)

By making the default action for SIGDANGER to be SIG_IGN, this problem
would be mostly solved. Only processes that actually care about SIGDANGER
and installing the handler for it would require some non-trivial and
resource-hungry operation.

--28KEV0d44fEAywNn
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQFHfjksC3+MBN1Mb4gRAmJjAKDta4Mk4AjCW2d0m5X/14Nkpo944QCgs4WC
vcLoV3Fz6xWAXkmkPWhOFbc=
=R3Hf
-----END PGP SIGNATURE-----

--28KEV0d44fEAywNn--



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