Created
July 12, 2016 20:46
-
-
Save tmuth/d69c948cd42adbeb6fc9d94588801bd1 to your computer and use it in GitHub Desktop.
Enable 1 thread at a time in solaris
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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