Re: Removing an executable while it runs

Tim Walberg (twalberg@mindspring.com)
Wed, 5 Dec 2001 14:54:42 -0600


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

On 12/05/2001 15:00 -0500, Christopher Friesen wrote:
>> Couldn't you use mlockall() to ensure that demand paging is not a factor=
? Then
>> you should be able to free up the disk space since the actual applicatio=
n is
>> guaranteed to be in ram.
>>=09

mlockall() only locks those pages that are **currently** paged
in, or optionally those that will be paged in in the future.
Unless you have a way to make sure that all pages of the
binary are actually in memory before you call mlockall(),
this gains you nothing.

--=20
twalberg@mindspring.com

--TB36FDmn/VVEgNH/
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.1i

iQA/AwUBPA6Jj8PlnI9tqyVmEQLalgCgvcgZISgzjEU9qOg2xfG9hqXeixsAnjQG
95oKynVq/H0oi9g+bsnYnk3N
=TOen
-----END PGP SIGNATURE-----

--TB36FDmn/VVEgNH/--
-
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/