diff options
author | Mohammad Akhlaghi <mohammad@akhlaghi.org> | 2019-07-24 14:38:29 +0100 |
---|---|---|
committer | Mohammad Akhlaghi <mohammad@akhlaghi.org> | 2019-07-24 14:38:29 +0100 |
commit | dbf525a90a096931551274f3e2fce49e00d0bf72 (patch) | |
tree | 89f62d3b1519acdca89f419daa2f697832c5037c /README.md | |
parent | 9901c3b2db0a3f85105489faa860fc27227ad4ac (diff) |
Temporary software building done in shared memory if available
Until now, the template would unpack the software and build them directly
in the build directory of each project. After installation, the whole
unpacked directory is deleted. However, building the software involves the
reading and writing of millions of files, so on the long run, it can be bad
for the non-volatile memory (HDDs or SSDs), it can also be slightly slow.
To fix this, if the system has a shared-memory directory (commonly named
`/dev/shm'), we can do the temporary building of the software there. The
great thing about this unique directory is that it is actually in the RAM,
not on the HDD/SSD. This can slightly improve the speed (not much
probably), but more importantly it will not do any long-term harm to the
host's HDDs/SSDs.
With this commit, when there is a shared memory directory mounted in
`/dev/shm', and it has enough space (currently set to 2GB), the
`./configure' script will make `.build/software/build-tmp' as a symbolic
link to a fixed directory there. Otherwise, it will just build it as a
directory in the project's shared directory.
The structure has been defined in such a way that we can later easily add
different standard shared-memory locations (for different operating
systems).
This completes task #15336.
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions