Evaluate the impact of multiple competing threads

Assignment Help Operating System
Reference no: EM132271923

Objectives

1. To evaluate file system performance in the face of sequential I/O requests.

2. To evaluate the impact of multiple competing threads attempting to read/write simultaneously.

Guidelines

The goal of this assignment is to gain experience with simple evaluation of the performance of the file system. Specifically you will be testing the performance of the system under varying conditions. I/O performance can be affected by more than the volume of data being moved. For example it can be affected by the size of the individual requests being made, whether the requests are reading or writing data, and by the degree of contention for access to the disk. It can also be affected dramatically by the pattern of data access (e.g., whether it is sequential or random), but we will only be looking at sequential access in this assignment.

As a first step, start by creating a collection of test files of varying sizes. Create a set of files of length 100000, 1000000, 10000000, 100000000, and 10000000000 bytes. These files can be filled with any random data you desire (or all zeroes if you prefer, the actual content of the files does not matter, only their actual size). You can create these files at the command line using the "cat" and "head" commands (where might you find a file of endless zeroes or random numbers to use as a source?).

Now you should create four test programs, and time the running of each one.

1. Your first program should read a file from beginning to end. It should accept the filename as a parameter. Each read call you make will specify a buffer and a read request size. This program should use a buffer of size 10000 bytes, which you will use for each read. How long does this program take to read through each test file (you may use the "time" command at the shell command line to time the program).

2. Your second program should accept a numerical parameter at the command line, and should repeat the behavior of your first program, but should now use a buffer of size N (where N is the value accepted at the command line) for each read request. This allows you to re-run the previous timing test but for differently sized I/O operations. Time your second program for read sizes ranging between 100, 1000, 10000 and 10000 bytes.

3. Your third program should extend your second program by adding one more step. For each read operation, there should now be a corresponding write operation where the data just read is written out to a newly created file. In other words, you should now be timing a program that copies each file that it is run against. You are now testing the speed of sequential reads+writes for files of varying size, and using I/O operations of varying size.

4. Your fourth and final program will create multiple copies of each file. You will create a number of threads, each of which will read and copy a file (as was done in program 3), but now each thread copies the file to a new file named based on the thread number. Run your timing experiments for all files, using all read/write sizes you used in parts 2 and 3, and for the following number of threads: 2, 8, 32, and 64.

Verified Expert

In this assignment we design file system the file system is similar to linux base file system working is Shutdown ,create file delete file The write operation where the data just read is written out to a newly created file.Now testing the speed of sequential reads+writes for files of varying size, and using I/O operations of varying size.The program will create multiple copies of each file. We created a number of threads, each of which will read and copy a file but now each thread copies the file to a new file named based on the thread number.

Reference no: EM132271923

Questions Cloud

The presence of african slavery in america : Consider social, political, cultural and economic developments both in English North America, United States and the broader Atlantic World between 1492 and 1861
How did the lowell journal excuse the wage reduction : Does the Lowell Journal adequately explain how a few "ringleaders" could motivate over eight hundred female workers to engage in street protests?
Calculate the mortgage payment for loan : Calculate the mortgage payment for each loan. Calculate the APR of each loan given the points taken.
Katydid before-tax component cost of debt : What would be KatyDid's before-tax component cost of debt? (Round your answer to 2 decimal places.)
Evaluate the impact of multiple competing threads : Evaluate file system performance in the face of sequential I/O requests - evaluate the impact of multiple competing threads attempting to read/write
What about the idea of predestination : How did the church evolve into such a diverse group of different views? What was Luther's role?
How could legislation impact on operations : How could legislation impact on operations within your organisation in relation to innovation, project management, and operational planning?
Prepare Mr Musician income tax return : ACCT2301 Taxation Assignment - Using ProFile. Prepare Mr. Musician's 2017 income tax return using the ProFile tax software program
Explain what was necessary to make a fortune in gold : Explain what was necessary to make a fortune in gold and/or silver during the mining bonanza.

Reviews

Write a Review

Operating System Questions & Answers

  Describe the requirements of the elicitation techniques

Describe the requirements of the elicitation techniques you consider should be used. Include documentation as required by the requirements elicitation plan

  Difference between the boot processes of linux and windows 7

Describe two (2) major differences between the boot processes of Linux and Windows 7.

  Currently the atm is idle

Currently the ATM is idle. Find the probabilities that, in 3 minutes, the ATM will be idle; will be serving one customer with no one in the queue; will be serving one customer with one customer waiting in the queue

  Discuss different encryption methods in detail

Chapter 4 discusses different encryption methods that are specific to Microsoft Windows Operating Systems such as BitLocker, Encrypting Files Systems (EFS).

  Identify specific capabilities of computing

The creation and use of calculating technology enables new capabilities. For example, information and decision rules can be captured and copied more easily,

  In working out your responses to the discussion question

in working out your responses to the discussion question you should choose examples from your own experience or find

  Write the command sequence in one line to list all processes

Write the command sequence in one line to list all processes in the system owned by your id in reverse numerical order by PID.

  An alternative to traditional equity and debt financing is

complete an apa-formatted two-page paper not including the title and reference pages answering the following

  Traverse queue and print out contents of the structs

Enqueue at least three structs, traverse the queue and print out the contents of the structs, then dequeue each item separately and print its contents as it is dequeued.

  External and internal penetration testing

As a penetration tester, you are hired as a consultant by a small- to mid-sized business that is interested in calculating its overall security risk today, January 1, 2012.

  Commands that allow you to handle file system security

Learn the commands that allow you to handle file system security -  UNIX model for file-system security - Argue that the model used by UNIX systems from the 60s is sufficient.

  Determine the average seek time of traversed disk

Traversed Disk receives request to access random sector on random track. Suppose head starts at track 0. Determine the average seek time?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd