Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


Quelle  gcp_ram_disk.sh   Sprache: Shell

 

#!/bin/sh
# Move working directory into a RAM disk for better performance.

set -e
set -x

mv $CIRRUS_WORKING_DIR $CIRRUS_WORKING_DIR.orig
mkdir $CIRRUS_WORKING_DIR

case "`uname`" in
  FreeBSD|NetBSD)
    mount -t tmpfs tmpfs $CIRRUS_WORKING_DIR
    ;;
  OpenBSD)
    umount /dev/sd0j # unused /usr/obj partition
    printf "m j\n\n\nswap\nw\nq\n" | disklabel -E sd0
    swapon /dev/sd0j
    # Remove the per-process data segment limit so that mount_mfs can allocate
    # large memory filesystems. Without this, mount_mfs mmap() may fail with
    # "Cannot allocate memory" if the requested size exceeds the current
    # datasize limit.
    ulimit -d unlimited
    mount -t mfs -o rw,noatime,nodev,-s=10000000 swap $CIRRUS_WORKING_DIR
    ;;
esac

cp -a $CIRRUS_WORKING_DIR.orig/. $CIRRUS_WORKING_DIR/

Messung
CHZG
959710097

¤ Dauer der Verarbeitung: 0.5 Sekunden  ¤

*© Formatika GbR, Deutschland







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,188,000
#Domains=976,818