Skip to main content

Posts

Showing posts from February, 2021

iotest script

# print usage usage () {         echo ""         echo "<<USAGE>>  ${PROG} -i <iterations> -t <target filesystem> -b <block count> -s <block size>"         echo ""         echo "  function run current dd write and read tests to a SAS filesystem to test thruput"         echo "           where results will be stored in ${PROG}.results.<iterations>"         echo ""         echo "  where    iterations are the number of concurrent tests to run"         echo "           target filesystem is the SAS read/write filesystem to test"         echo "           block count is the number of block you want dd to process (eg: 20000)"         echo "           block size is the size of the blocks you want dd to process in K (eg: 64)" } # validate input parameters for iterations and writeable target directory validateinput () {         UNAME=`uname`         TMPNAME=t

SASWork throughput requirement

Below is the SASWORK throughput requirement that you should remember while architecting: Write - 100MB/second for each CPU core Read - 100MB/second for each CPU core This can be calculated using the script attached in this article -> https://support.sas.com/kb/51/660.html Reference -> https://blogs.sas.com/content/sgf/2014/10/08/configuring-sas-what-to-know-before-you-install/ If you are not able to download the script you can copy it from here .

Generating certificate using openssl commands

Method 1:  #To check supported curves openssl ecparam -list_curves #Generate certificate and key openssl ecparam -out key.pem -name prime256v1 -genkey #Signing request openssl req -new -sha256 -key key.pem -out sign.csr #Self Signing openssl req -x509 -sha256 -days 365 -key key.pem -in sign.csr -out cert.pem Method 2: #Creating CA Private Key mkdir pki cd pki openssl genrsa -aes256 -out ca_priv.key 2048  ENTER PASSWORD #Creating CA - Certificate Authourity openssl req -new -x509 -key ca_priv.key -sha256 -days 365 -out ca.pem #To generate the key openssl genrsa -out www.site.com.key 2048 #To generate CSR - Certificate signing request openssl req -new -key ww.site.com.key -out www.site.com.csr #To sign. For below command we need CA.pem and CA.key. otherinfo.ext is SAN detail (subject alternative name) openssl x509 -req -in ww.site.com.csr -CA ca.pem -CAkey ca_priv.key -out ww.site.com.crt -days 365 -sha256 -CAcreateserial -extfile otherinfo.ext

Monitory and tuning garbage collection in JAVA?

 It is always confusing as in which parameter to use for garbage collection. We can collect garbage collection statistics by using below option: -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps The above option will spit out how often garbage collection occurs and how much time is spent on garbage collection.