当前位置:天才代写 > 作业代写 > 存储访问模式代写 Jupyter Notebook代写

存储访问模式代写 Jupyter Notebook代写

2021-09-19 15:37 星期日 所属: 作业代写 浏览:56

INF 559

Homework #1: Storage Access Patterns

Preparation Lab 1(Q1)

Complete HW1 (Q2 & Q3)

PT 100 points

存储访问模式代写 In the lectures, you have studied the differences between sequential and random file access. In this assignment, you will read ···

In the lectures, you have studied the differences between sequential and random file access. In this assignment, you will read increasing amounts of data using sequential and random access on a large file and plot the results obtained.

 

1.Preparation (Lab 1) [10 points]

a. Download the Ubuntu 18.04.3 ISO file from here: https://releases.ubuntu.com/20.10/ubuntu-20.10-desktop-amd64.iso This will be used as our test file.

b. Upload this file to your Google Drive.

c. Open a new Python 3 notebook in Google Colab (Warning: Python 2 notebooks will not be accepted).

d. Import Pandas, NumPy, and Matplotlib1 , you may use them in this homework.

e. Many of you indicated that you have used Jupyter Notebook before, so we want to provide a starter notebook that you can open in Google Colab to get a head start. The notebook outlines the expected layout of your final submission. This step is not mandatory but is strongly recommended.

f. For the Lab 1 submission due on Thursday night, simply plot the y = sin x function in Google Colab and submit the .ipynb file including the plot.


1 Here are good guides to get started with Pandas, Numpy, and Matplotlib:

Pandas Quick Tutorial

Numpy Quick Tutorial

Matplotlib Quick Tutorial


 

 

2. Plotting latency and bandwidth [50 points]  存储访问模式代写

a. Open the test file in unbuffered mode2.

b. Sequentially read [1, 4, 16, 64, 256, 1024, 4*1024, 16*1024, 64*1024, 256*1024, 1024*1024] blocks of data3 . Use a fixed block size of 4KB. Measure the latency for each iteration in terms of wall-clock time.

c. Repeat 2b with random reads instead of sequential.

d. Plot the latencies measured in 2b and 2c against the number of blocks read. Both sequential and random results should appear on the same plot and the number of blocks should be scaled logarithmically instead of linearly. Briefly describe your observations from this plot.

e. Calculate the bandwidth for each iteration of 2b and 2c using the latency and amount of data transferred. Plot the results in the same manner as latency and briefly describe your observations.

 

 


2 Refer to the documentation to switch buffering off. Also make sure you use the binary read mode while opening.

3 It may be possible that you reach the end of the file prematurely during sequential access. Make sure to seek to the start of the file again and continue reading in this case.


 

3. Measurement Statistics [50 points]  存储访问模式代写

a. Run 10 times of steps 2b and 2c and store the results.

b. For each of the 11 iterations, calculate the mean and standard error4 over the 10 runs.

c. Use the results of 3b to generate errorbar plots for latency and bandwidth. Again, both sequential and random results should be on the same plot and the number of blocks should be scaled logarithmically. Briefly describe your observations from these plots.

 

存储访问模式代写
存储访问模式代写

 


The standard error is defined as the standard deviation divided by the square root of the number of observations.


 

Submission

  1. Submit a single file on Blackboard FirstName_LastName_hw1.ipynb
  1. The only file format accepted is .ipynb. You do not need to submit the plots and explanations separately. Describe your observations using text cells (Jupyter notebooks allow both code and text cells). Your final notebook will have both the plots and explanations as part of it.
  1. Make sure to mention your name and USC ID in your notebook (as done in the starter notebook).

 

Grading Criteria  存储访问模式代写

  1. Late submissions (up to 24 hours) will be penalized by 20%. No credit will be given after 24 hours of the submission deadline.
  1. As mentioned above, Python 2 notebooks will receive no credit.
  1. The submitted notebook must have all its cells executed and outputs visible (if applicable). Notebooks without outputs will be penalized by 30%.
  1. You may use any Python internal library, but the only external libraries allowed are pandas, NumPy, and matplotlib. Use of any external library other than these will be penalized by 20%.

 

Important Notes  存储访问模式代写

  1. Submitted work must be your own. Don’t share your code with anyone.
  1. Q3 may take up to 5 minutes to execute. This is expected behavior given such large reads.
  1. Start early, and make sure to visit the TA’s during office hours to make sure you’re on the right track or if you need help.

 

存储访问模式代写
存储访问模式代写

 

其他代写:code代写 CS代写 cs作业代写 Data Analysis代写 essay代写 Exercise代写 finance代写 homework代写 英国代写 北美作业代写 algorithm代写 analysis代写 app代写 assembly代写 C/C++代写

合作平台:essay代写 论文代写 写手招聘 英国留学生代写

 

天才代写-代写联系方式