Difference between pages "I/O sniffing" and "ReCordMyDeskTop"

From Linuxintro
(Difference between pages)
imported>ThorstenStaerk
 
imported>ThorstenStaerk
 
Line 1: Line 1:
You can do I/O sniffing using the command blktrace. blktrace will show you every request that goes to the disk.
+
recordmydesktop is a program that allows you to [[take a video from your desktop]]. In practice, you often want to record a window only. To do this, start recordmydesktop like this:
 +
recordmydesktop --windowid $(xwininfo | grep "Window id" | awk '{print $4;}')
  
Example:
+
A cross will appear. Aim it at the window you want to record and click. Then the recording will start.
 
 
# blktrace -d /dev/sdg -o - | blkparse -i -
 
[...]
 
  <abbr title="device (major/minor number)">8,96</abbr>  <abbr title="processor">7</abbr>      <abbr title="sequence number">106</abbr>    <abbr title="timestamp">0.373952974</abbr> <abbr title="PID">11364</abbr>  <abbr title="Action/Event">D</abbr>  <abbr title="RWBS (D) field">W</abbr> <abbr title="starting block + blocks">0 + 8</abbr> <abbr title="process">[kworker/7:2]</abbr>
 
  8,96  7      107    0.374456639    47  C  W 0 + 8 [0]
 
 
 
 
 
The RWBS(D) field can be a combination of
 
R : Read
 
W : Write
 
D : Block discard
 
B : Barrier operation
 
S : Synchronous operations
 
 
 
= See also =
 
* [http://linux.die.net/man/8/blktrace blktrace man page]
 
* [http://linux.die.net/man/1/blkparse blkparse man page]
 
* http://unix.stackexchange.com/questions/105610/how-does-blktrace-work
 
 
 
[[Category:geeky]][[Category:analysis]]
 

Revision as of 13:23, 6 November 2015

recordmydesktop is a program that allows you to take a video from your desktop. In practice, you often want to record a window only. To do this, start recordmydesktop like this:

recordmydesktop --windowid $(xwininfo | grep "Window id" | awk '{print $4;}')

A cross will appear. Aim it at the window you want to record and click. Then the recording will start.