Thursday, February 16, 2012

Linux CPU Scaling

CPU Scaling

Run the following command changing the CPU scaling threshold from 80 to 50%.

#!/bin/bash

for CPU in {0..15} ; do echo 50 > /sys/devices/system/cpu/cpu$CPU/cpufreq/ondemand/up_threshold ; done

up_threshold - This defines what the average CPU usage between the samplings of 'sampling_rate' needs to be for the kernel to make a decision on whether or not it should increase the frequency. For example when it is set to its default value of '80' it means that between the checking intervals the CPU needs to be on average more than 80% in use to then decide that the CPU frequency needs to be increased. To set this to something lower like 20% you would do the following.

rsync with delete option and different ssh port

How to rsync e.g PIPELINE dir from Source to Destination? #rsync -avzr   --delete-before  -e "ssh -p $portNumber"  /local...