Skip to content

Instantly share code, notes, and snippets.

@tmuth
Created July 12, 2016 20:46
Show Gist options
  • Select an option

  • Save tmuth/d69c948cd42adbeb6fc9d94588801bd1 to your computer and use it in GitHub Desktop.

Select an option

Save tmuth/d69c948cd42adbeb6fc9d94588801bd1 to your computer and use it in GitHub Desktop.
Enable 1 thread at a time in solaris
#!/bin/bash
# pass in the name of the test as parameter 1
SLEEP_TIME=1800
THREADS=97-111
ALL_THREADS=96-111
#THREADS=96-111
psradm -f $THREADS
psrinfo $ALL_THREADS
for i in {97..111}
do
sleep $SLEEP_TIME
echo "Enabling thread $i"
psradm -n $i
echo `date +"%Y-%m-%d %k:%M:%S"`",${i}" >> ${1}.txt
psrinfo $ALL_THREADS
done
psrinfo $ALL_THREADS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment