You are not logged in.
Does anyone familiar with perf tools in kernel?
https://perf.wiki.kernel.org/index.php/Tutorial
I want to use perf stat to get hardware events data from a command that sends data from home to a remote device.
For example:
cat file > ssh user@ipaddress "cat > newlocation/file"
perf stat cat file > ssh user@ipaddress "cat > newlocation/file"
Do you know how can I ensure that perf tools will record hardware event data during delays (over networks)... What I am worried is that perf will only measure upto pipe symbol and ignore anything else (I had this esperiance with /usr/bin/time (after which I switched to use shell time).
I could not find any information on how perf stat is working when there is a pipe in the middle of that command it will measure.
Would it be better to put command below into a sh file and then call perf stat command.sh?
cat file > ssh user@ipaddress "cat > newlocation/file"
Last edited by kdar (2012-06-26 03:22:05)
Offline
I always think of ncat for these sort of things
http://nmap.org/ncat/guide/index.html
you can also use scp to copy files between comps
scp /path/to/local/file user@ipaddress:/path/to/file/on/server
scp would be better than cat file > ssh
afaik
HTH
You're just jealous because the voices only talk to me.
Offline
scp is using ssh? right?
You think it would be similar in performance of cat file > ssh?
Offline
Offline
The other command that I trying to use is actually using compression over network..
like gzip -fc file | ssh user@host "cat > /dev/null"
I guess its a better example that what I posted on the first post.... using cat
@falconindy
I could convert gzip -fc file | ssh user@host "cat > /dev/null" similar to your example without using a pipe too?
ssh user@host 'cat > /dev/null' < gzip -fc file ? or it would not work?
====
Would putting a command into cmd.sh file create overhead? (of reading a file.. etc)
Last edited by kdar (2012-06-26 15:20:59)
Offline