next up previous contents index
Next: Bibliography Up: A Tool Set for Previous: Downloading and Contact Information   Contents   Index

System Environment Commands

In this appendix we list some commands that report information that may be relevant for your experiment. We use here the syntax for the --comment option of labrun. If you have other commands you believe others may find useful, please let us know so we can add them to this list.

Cache Information

IRIX:

Instruction cache=`hinv`:Instruction.cache.size[\s:]+(.*)
L1 data cache=`hinv`:Data.cache.size[\s:]+(.*)

Solaris:

Instruction cache=0x`prtconf -pv`:icache-size Bytes
L1 data cache=0x`prtconf -pv`:dcache-size Bytes



The information from prtconf is in hex. The 0x before the command indicates that labrun should convert the number of bytes reported to decimal.

CGAL version

CGAL version=@$CGALROOT/include/CGAL/config.h:CGAL_VERSION\s+(.*)

Compiler version

Compiler version=`$CC -v`: version

Graphics card (IRIX)

Graphics card=`hinv`:Graphics\sboard

LEDA version
not using CGAL

LEDA version=@$LEDAROOT/CHANGES:__LEDA__

using CGAL

LEDA version=`cgal_leda_version`

Because CGAL may have been installed with a different version of LEDA than the one pointed to by LEDAROOT, the script cgal_leda_version is used to find the correct version number. The script is as follows:

#! /bin/sh -f

cat $CGAL_MAKEFILE |grep "/LEDA.*/incl"|sed -e s:incl:CHANGES: > /tmp/name
if [ -s /tmp/name ] ; then
  file=`cat /tmp/name`
  cat $file|grep "#define __LEDA__"|head -n 1|sed 's:#define __LEDA__::'
  rm /tmp/name
else
  echo "None"
fi

Notice that this script assumes the environment variable CGAL_MAKEFILE has been set. If this makefile does not correspond to one created with LEDA support, the value "None" is returned.

Qt version

Qt version=@$QTDIR/README:version\s+(\d+(\.\d+)*)

We also show here the commands used to extract the information automatically recorded in the log file in case these commands somehow correspond to different information on your system.

OS

OS=`uname -s`

Hardware

Hardware=`uname -m`

Machine

Machine=`uname -n`

Processor

IRIX:
Processor=`hinv | grep '.* MHZ .* Processor' |
awk '{printf \"%d MHz %s\", $2,$4}'`

This command should be on a single line.

Linux:
Processor=@/proc/cpuinfo:cpu.MHz[:\s]+(\w)+ MHz
@/proc/cpuinfo:model.name[\s:]+(.*)

This command should be on a single line.

Solaris:
Processor=`psrinfo -v | sed -n -e '1,4 s/.*The \(.*\)
processor operates at \(.*\),/\2 \1/p'`

This command should be on a single line.

Memory size

IRIX:
Memory size=`hinv`:Main.memory.size[\s:]+(.*)

Linux:
Memory size=@/proc/meminfo:MemTotal[\s:]+(.*)

Solaris:
Memory size=`prtconf -pv`:Memory.size[\s:]+(.*)

L2 data cache

IRIX:
L2 data cache=`hinv`:Secondary.*cache.size[\s:]+(.*)

Linux:
L2 data cache=@/proc/cpuinfo:cache.size[\s:]+(.*)

Solaris:
L2 data cache=0x`prtconf -pv`:ecache-size Bytes


next up previous contents index
Next: Bibliography Up: A Tool Set for Previous: Downloading and Contact Information   Contents   Index
Tobias Polzin 2003-05-30