Skip to content
Snippets Groups Projects
Commit 5955013f authored by edgrif's avatar edgrif
Browse files

add x11 performance measures.

parent 0580ea85
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,10 @@ INITIAL_DIR=$(pwd)
. $BASE_DIR/zmap_functions.sh
# Name of master X11 performance file
MASTER_X11PERF_FILE='/nfs/team71/acedb/zmap/PERFORMANCE/X11PERF_REFERENCE.txt'
TMP_X11PERF_FILE='x11perf_tmp.txt'
# name of the output file
MACHINE_INFO_FILE="machine_info.txt"
......@@ -35,6 +39,7 @@ zmap_message_file $MACHINE_INFO_FILE "CPU:"
zmap_message_file $MACHINE_INFO_FILE " " `cat /proc/cpuinfo | grep -i 'model name'`
zmap_message_file $MACHINE_INFO_FILE " " `cat /proc/cpuinfo | grep -i 'mhz'`
zmap_message_file $MACHINE_INFO_FILE " " `cat /proc/cpuinfo | grep -i 'cache size'`
zmap_message_file $MACHINE_INFO_FILE " " `cat /proc/cpuinfo | grep -i 'bogomips'`
# Memory (important bits)
zmap_message_file $MACHINE_INFO_FILE "Memory:"
......@@ -51,6 +56,22 @@ ps uwx >>$MACHINE_INFO_FILE
zmap_message_file $MACHINE_INFO_FILE "Lifestyle:"
zmap_message_file $MACHINE_INFO_FILE " " `uptime`
# Do some x11 testing
#
zmap_message_file $TMP_X11PERF_FILE " " `x11perf -rect10`
zmap_message_file $TMP_X11PERF_FILE " " `x11perf -seg10`
zmap_message_file $TMP_X11PERF_FILE " " `x11perf -line500`
zmap_message_file $TMP_X11PERF_FILE " " `x11perf -f8text`
zmap_message_file $TMP_X11PERF_FILE " " `x11perf -scroll10`
zmap_message_file $TMP_X11PERF_FILE " " `x11perf -copypixwin500`
zmap_message_file $TMP_X11PERF_FILE " " `x11perf -putimagexy500`
zmap_message_file $TMP_X11PERF_FILE " " `x11perf -move`
x11perfcomp -r $MASTER_X11PERF_FILE $TMP_X11PERF_FILE >>$MACHINE_INFO_FILE
# finished... Now cat the output to terminal
zmap_message_out "Finished creating file."
......@@ -63,6 +84,6 @@ zmap_message_out "--------------------------------------------------------------
zmap_message_out "Mailing file to zmap developers"
mailx -s "[$SCRIPT_NAME] $this_host machine info" zmapdev < $MACHINE_INFO_FILE || zmap_message_exit "Failed to mail information to developers"
mailx -s "[$SCRIPT_NAME] $this_host machine info" zmapdev@sanger.ac.uk < $MACHINE_INFO_FILE || zmap_message_exit "Failed to mail information to developers"
rm -f $MACHINE_INFO_FILE
rm -f $MACHINE_INFO_FILE $TMP_X11PERF_FILE
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment