Monday, 21 July 2008
Traffic Utilization on router high CPU usage.
Long time ago, I was trying to address traffic utilization issues on border routers. This is the summary of my communication with nsp mailing list [Traffic Utilization Summary].
Thursday, 6 March 2008
Simple syncronization via ssh with rsync.
One can syncronize two different locations by using rsync via ssh or without ssh.
Here are the steps:
1. get from the other location
rsync -avuzb dir/mydir/ .
2. put into other location
rsync -Cavuzb . dir/mydir/
If one of the location is reachable via ssh then one ca write
rsync -avz -e ssh remoteuser@remotehost:/remote/dir /this/dir/
Look at the man pages for more details. Actually -e flag is not needed.
Here are the steps:
1. get from the other location
rsync -avuzb dir/mydir/ .
2. put into other location
rsync -Cavuzb . dir/mydir/
If one of the location is reachable via ssh then one ca write
rsync -avz -e ssh remoteuser@remotehost:/remote/dir /this/dir/
Look at the man pages for more details. Actually -e flag is not needed.
Wednesday, 20 February 2008
CPU Timing in a C code
Examine this simple example :
#include < stdio.h >
#include < stdlib.h >
#include < time.h >
#include < math.h >
int main();
int main() {
long int i,a;
clock_t cputime,cputime1;
double timing,timing0;
cputime= clock();
for(i=0;i<10000000;i++){
a=pow(4,2);
a=pow(4,2);
a=pow(4,2);
a=pow(4,2);
a=pow(4,2);
}
cputime1= clock();
timing0=((double) cputime1-cputime);
timing=((double) cputime1-cputime) / CLOCKS_PER_SEC;
printf("timing =%12.9f clock per sec=%d timing0=%12.9f\n",
timing,CLOCKS_PER_SEC,timing0);
exit(0);
}
Thursday, 14 February 2008
Latex Poster: A working full example
You must use Latex to generate your posters, because it looks beautiful. Here is fully working and self contained example [latex_poster].
Subscribe to:
Posts (Atom)
