gnuastro-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnuastro-commits] master 1ff3999 2/7: Minor corrections in parallel-bui


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master 1ff3999 2/7: Minor corrections in parallel-build-in-tmpfs
Date: Thu, 4 Aug 2016 23:21:06 +0000 (UTC)

branch: master
commit 1ff39997e83d9629686a5b23785a24c63a9ddeed
Author: Mohammad Akhlaghi <address@hidden>
Commit: Mohammad Akhlaghi <address@hidden>

    Minor corrections in parallel-build-in-tmpfs
    
    The '/dev/shm' directory was mistakenly written as '/dev/shdm'! This was
    corrected along with some explanations in the comments.
---
 parallel-build-in-tmpfs |   29 +++++++++++++++++------------
 1 file changed, 17 insertions(+), 12 deletions(-)

diff --git a/parallel-build-in-tmpfs b/parallel-build-in-tmpfs
index 173683f..1751566 100755
--- a/parallel-build-in-tmpfs
+++ b/parallel-build-in-tmpfs
@@ -16,22 +16,25 @@
 #
 #   - Having the built files mixed with the source files can greatly affect
 #     backing up (synchronization) of source files (since it involves the
-#     management of a large number of small files that are changed a lot.
+#     management of a large number of small files that are changed a
+#     lot. Such systems can ofcourse be configured to ignore some files and
+#     directories but that will require a high level of customization.
 #
 # One solution to these problems is the tmpfs file system (see
 # https://en.wikipedia.org/wiki/Tmpfs). Any file in tmpfs is actually
-# stored in the RAM, not on HDDs or SSDs. Therefore I/O can be much faster
-# and will also not harm the non-volatile memory devices. However, due to
-# the volatile nature of RAM, files in the tmpfs filesystem will be
-# permanently lost after a power-off.
+# stored in the RAM (and possibly SAWP), not on HDDs or SSDs. Therefore I/O
+# can be much faster and will also not harm the non-volatile memory
+# hardware. However, due to the volatile nature of RAM, files in the tmpfs
+# filesystem will be permanently lost after a power-off, since they are all
+# derivative files (not files that have been directly manipulated) there is
+# no problem in this.
 #
 # The modern GNU C library (and thus the Linux kernel) define the
 # '/dev/shm' directory for this purpose (POSIX shared memory). Therefore
-# this script takes '/dev/shm' as the default here (the value to TMPDIR)
-# this should be fine for all modern Linux based OSs. This script will make
-# a 'gnuastro' directory in TMPDIR, change to that directory and configure
-# and build gnuastro in there to have fast and non-wear configures and
-# builds.
+# this script takes '/dev/shm' as the default temporary directory (the
+# value to TMPDIR). This script will make a 'gnuastro' directory in TMPDIR,
+# change to that directory and configure and build gnuastro in there to
+# have fast and non-wear configures and builds.
 #
 # After this script is run, change directory to $TMPDIR/gnuastro and run
 # other 'make' commands (for example 'make pdf', 'make check', or 'make
@@ -49,7 +52,9 @@
 #
 #
 # Original author: Mohammad Akhlaghi <address@hidden>
-# Contributing author(s): Copyright (C) 2016, Free Software Foundation,
+# Contributing author(s):
+#
+# Copyright (C) 2016, Free Software Foundation,
 # Inc.
 #
 # Gnuastro is free software: you can redistribute it and/or modify it under
@@ -68,7 +73,7 @@
 
 # Set the variables:
 NUM_THREADS=8
-TMPDIR=/dev/shdm
+TMPDIR=/dev/shm
 
 
 # Check if TMPDIR exists



reply via email to

[Prev in Thread] Current Thread [Next in Thread]