Re: [patch] threading fix, tid-2.5.47-A3

Luca Barbieri (ldb@ldb.ods.org)
18 Nov 2002 09:30:52 +0100


--=-fEqkSyDls3szuijykhzm
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

> I don't walk the thread descriptors. I don't write into them. I move
> entire double-linked lists with a dozen or so instructions. Regardless
> of how many threads were active in the parent.
However this would cause a lot of copy-on-write faults on thread stacks
when other thread resume execution.

How about adding a MAP_DONTCOPY flag to mmap, using it for the thread
stacks and then adding yet another flag and pointer to the clone
syscall, pointing to a userspace array of addresses and flags, allowing
to specify whether vmas should be copied, ignored (or maybe shared, as a
future extension) so that userspace could specify that the current
thread stack should be copied anyway?

--=-fEqkSyDls3szuijykhzm
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQA92KU8djkty3ft5+cRAvZfAKCUpHBHbMCBHgmjYETJgZW/1LjPHwCggZ8M
OAPFJoMDIDiFdoW3wOc9SF0=
=mWrE
-----END PGP SIGNATURE-----

--=-fEqkSyDls3szuijykhzm--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/