Linux processes, tempfs and programs

Stephen Williams steve at
Fri Feb 18 10:38:05 EST 2005

Hash: SHA1

This is not really PPC specific, but it is an embedded PPC system
that I'm working with, so...

My embedded system is structured such that the main user-mode
processes that are being run are downloaded and executed on demand.
I'm currently downloading the executable to an ext3 system on the
CompactFlash, but there is really no reason to use non-volatile
memory so I'm thinking to download to a tempfs directory and
execute from there.

But if I do that, I want to remove the program from the directory
after I start it, so that the file does not take up ram space. Will
that actually work? I'm using exec(2) to execute the program file
wherever it is downloaded. Will a subsequent unlink of the file
have a result, or will the file continue to take up space as
backing store for the executable?
- --
Steve Williams                "The woods are lovely, dark and deep.
steve at           But I have promises to keep,         and lines to code before I sleep,       And lines to code before I sleep."
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla -


More information about the Linuxppc-embedded mailing list