Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ep:labs:03:contents:tasks:ex5 [2020/08/03 20:04]
cristian.marin0805 [05. [20p] Multitool Comparison]
ep:labs:03:contents:tasks:ex5 [2026/03/16 16:52] (current)
florin.stancu
Line 1: Line 1:
-==== 05. [20pMultitool Comparison ​==== +==== 05. [10pFeedback ​====
-Now we will see in a slightly different approach, with a source file and a final file of the same size, how the I/O mechanisms work as they are implemented by the compiler to be optimized.+
  
- +Please take minute to fill in the **[[https://​forms.gle/moWQFAfMMmNmA2Q17 | feedback form]]** for this lab.
-Modify the script so that it reads one line at time from the file with the novel from the previous exercise, and writes it in a resulting file 500 times each. Follow the process with a classic tool (vmstat, iostat). Why most of the time the number of **bytes read** is **0**? +
- +
-TODO COSMIN: Aici pui un hidden script cu rezolvarea pt asistenti cum e la 4, in python o pui, verifica sa fie astfel incat sa tina linia in RAM. +
- +
- +
- +
-=== [10p] Task A - Different tool, same I/O === +
- +
-For more special situations, a classic tool is not enough as long as we want to have a more detailed analysis on the behavior of I/O mechanisms. +
-An example would be to create an infinite loop that **copies endlessly** (simulation of a demanding process for a long time) a **large file** (use one of the files obtained previously). +
- +
-Put the command below in a script: +
-<code bash> +
-$ while true; do cp original_file1 copied_file2;​ done +
-</​code>​ +
- +
-Use several special monitoring tools. +
- +
-Choose 3-4 from here: +
-[[https://www.golinuxcloud.com/​monitor-disk-io-performance-statistics-linux/]] +
- +
-=== [10p] Task B - Plot of Comparison === +
- +
-Plot a graph with the results obtained with iostat, iotop and one of the previously chosen tools. +
-<​note>​  +
-  ​basic plot +
-  ​you can take the values manually or automatically +
-  * standardize the values (kb/s) +
-  * preferably use the matplotlib module in python +
- +
-</​note>​+
  
ep/labs/03/contents/tasks/ex5.txt · Last modified: 2026/03/16 16:52 by florin.stancu
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0