From 49690b97e5498552813ce9e8960d69751860c453 Mon Sep 17 00:00:00 2001 From: Ole Tange Date: Thu, 25 Aug 2016 22:03:06 +0200 Subject: [PATCH] env_parallel.*: Converted to #!/usr/bin/env to avoid depening on all shells. --- doc/release_new_version | 4 ++-- src/env_parallel.bash | 2 +- src/env_parallel.csh | 2 +- src/env_parallel.fish | 2 +- src/env_parallel.ksh | 2 +- src/env_parallel.pdksh | 2 +- src/env_parallel.tcsh | 2 +- src/env_parallel.zsh | 2 +- src/parallel_design.pod | 13 ++++++++----- 9 files changed, 17 insertions(+), 14 deletions(-) diff --git a/doc/release_new_version b/doc/release_new_version index 06fa60a0..a79e3e76 100644 --- a/doc/release_new_version +++ b/doc/release_new_version @@ -219,9 +219,9 @@ cc:Tim Cuthbertson , Ryoichiro Suzuki , Jesse Alama -Subject: GNU Parallel 20160822 ('Og Nomekop') released <<[stable]>> +Subject: GNU Parallel 20160922 ('Umbria') released <<[stable]>> -GNU Parallel 20160822 ('Og Nomekop') <<[stable]>> has been released. It is available for download at: http://ftpmirror.gnu.org/parallel/ +GNU Parallel 20160922 ('Umbria') <<[stable]>> has been released. It is available for download at: http://ftpmirror.gnu.org/parallel/ <> diff --git a/src/env_parallel.bash b/src/env_parallel.bash index 04020090..116cbd9f 100755 --- a/src/env_parallel.bash +++ b/src/env_parallel.bash @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # This file must be sourced in bash: # diff --git a/src/env_parallel.csh b/src/env_parallel.csh index 9236d220..60cde385 100755 --- a/src/env_parallel.csh +++ b/src/env_parallel.csh @@ -1,4 +1,4 @@ -#!/bin/csh +#!/usr/bin/env csh # This file must be sourced in csh: # diff --git a/src/env_parallel.fish b/src/env_parallel.fish index 55db6d1f..bf042f54 100755 --- a/src/env_parallel.fish +++ b/src/env_parallel.fish @@ -1,4 +1,4 @@ -#!/usr/bin/fish +#!/usr/bin/env fish # This file must be sourced in fish: # diff --git a/src/env_parallel.ksh b/src/env_parallel.ksh index ea3b4ca3..754cfe79 100755 --- a/src/env_parallel.ksh +++ b/src/env_parallel.ksh @@ -1,4 +1,4 @@ -#!/usr/bin/ksh +#!/usr/bin/env ksh # This file must be sourced in ksh: # diff --git a/src/env_parallel.pdksh b/src/env_parallel.pdksh index 1bd31373..66dc4ed8 100755 --- a/src/env_parallel.pdksh +++ b/src/env_parallel.pdksh @@ -1,4 +1,4 @@ -#!/bin/pdksh +#!/usr/bin/env pdksh # This file must be sourced in pdksh: # diff --git a/src/env_parallel.tcsh b/src/env_parallel.tcsh index 3adf862d..c42fad39 100755 --- a/src/env_parallel.tcsh +++ b/src/env_parallel.tcsh @@ -1,4 +1,4 @@ -#!/bin/csh +#!/usr/bin/env tcsh # This file must be sourced in tcsh: # diff --git a/src/env_parallel.zsh b/src/env_parallel.zsh index 76f4ea81..cc5934ae 100755 --- a/src/env_parallel.zsh +++ b/src/env_parallel.zsh @@ -1,4 +1,4 @@ -#!/usr/bin/zsh +#!/usr/bin/env zsh # This file must be sourced in zsh: # diff --git a/src/parallel_design.pod b/src/parallel_design.pod index 45c02ba5..ff96b1c1 100644 --- a/src/parallel_design.pod +++ b/src/parallel_design.pod @@ -746,7 +746,8 @@ are no visible files on it. =head3 Comparing to buffering in memory B is a parallelizing tool that buffers in memory. It is -therefore a useful way of comparing the advantages and disadvantages. +therefore a useful way of comparing the advantages and disadvantages +of buffering in memory to buffering on disk. On an system with 6 GB RAM free and 6 GB free swap these were tested with different sizes: @@ -786,15 +787,17 @@ The results are here: GNU B is pretty much limited by the speed of the disk: Up to 6 GB data is written to disk but cached, so reading is fast. Above 6 GB data are both written and read from disk. When the 30000MB job is -running, the system is slow, but not completely unusable: If you are +running, the disk system is slow, but not completely unusable: If you are not using the disk, you almost do not feel it. -B hits a wall around 2500M. Then the system starts swapping -like crazy and is completely unusable. At 5000M it goes out of memory. +B has a speed advantage up until 2500M where it hits a +wall. Then the system starts swapping like crazy and is completely +unusable. At 5000M it goes out of memory. You can make GNU B behave similar to B if you point $TMPDIR to a tmpfs-filesystem: It will be faster for small outputs, -but kill your system for larger outputs. +but may kill your system for larger outputs and cause you to lose +output. =head2 Disk full