aboutsummaryrefslogtreecommitdiff
path: root/.file-metadata
diff options
context:
space:
mode:
authorMohammad Akhlaghi <mohammad@akhlaghi.org>2019-07-24 14:38:29 +0100
committerMohammad Akhlaghi <mohammad@akhlaghi.org>2019-07-24 14:38:29 +0100
commitdbf525a90a096931551274f3e2fce49e00d0bf72 (patch)
tree89f62d3b1519acdca89f419daa2f697832c5037c /.file-metadata
parent9901c3b2db0a3f85105489faa860fc27227ad4ac (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 '.file-metadata')
-rw-r--r--.file-metadatabin6179 -> 6106 bytes
1 files changed, 0 insertions, 0 deletions
diff --git a/.file-metadata b/.file-metadata
index c5db26b..b74b9e0 100644
--- a/.file-metadata
+++ b/.file-metadata
Binary files differ