Experiment with computer system measurements

Assignment Help Basic Computer Science
Reference no: EM13696881

In this assignment, you need to experiment with computer system measurements.

Firstly, pick a platform to study. Any Unix-based system (such as a PC running some version of Linux) is acceptable (no Windows-based systems please). Secondly, perform some simple experiments, which you design to bring out various properties of the file system under test. Thirdly, generate plots to demonstrate properties - call them "empirical proofs". Finally, write up what you did. You can work in groups of two for this project. You may work alone if you prefer.

In this assignment, we shall explore the inner-workings of the file system. In a Unixbased file system, assume we have the following system calls to work with: open(), close(), read(), write(), lseek(), and fsync(). Please use man pages to find more information about the working of these calls.

The assignment is based on writing code snippets that help in measuring time taken to perform various file system operations.

Step 1. Platform. Pick a Unix-based platform to work on. This might very likely be something like a PC running Linux, but feel free to experiment with whatever system you have access to, e.g., FreeBSD, some old UNIX system like AIX, or even Mac OS X.

However, it must be a Unix-based system.

Step 2. Timers. The accuracy and granularity of the timer the is being used will have a large effect on your measurements. Therefore, you should use the best timer 1available. Fortunately, on x86 platforms, a highly accurate cycle counter is already available. The instruction to use it is known as rdtsc, and it returns a 64-bit cycle count.

By knowing the cycle time, one can easily convert the result of rdtsc into useful time.

First thing is to figure out how to use rdtsc or its analogue (you can use Google to find out more about it). Then, you need to get a cycle count, convert the result into seconds and measure how long something takes to execute (e.g., a program that calls sleep(10) and exits should run for about 10 seconds). Confirm whether the results make sense by comparing them with a less accurate but reliable counter such as gettimeofday. Note that confirmation of timer accuracy is hugely important.

Step 3. Measuring the file system. After getting the timer in order, measurements have to be recorded for the file system that is being used. All measurements should be taken on the local disk of some machine, please do not measure the performance of a distributed file system, for example, the CSE home directory. If you aren't using your own machine, you might consider the Linux Lab in which case you might want to work in /tmp.

The experiments that are designed should address the following questions.

1. How big is the block size used by the file system to read data? Hint: use reads of varying sizes and plot the time it takes to do such reads. Also, be wary of prefetching effects that often kick in during sequential reads.

2. During a sequential read of a large file, how much data is prefetched by the file system? Hint: time each read and plot the time per read.

3. How big is the file cache? Hint: Repeated reads to a group of blocks that fit in cache will be very fast; repeated reads to a group of blocks that don't fit in cache will be slow.

4. How many direct pointers are in the inode? Hint: think about using write() and fsync() to answer this question. Or use read(). Also, think about what happens when you extend a file and all of a sudden an indirect pointer has to be allocated - how many more writes occur at that point?

In the write-up, there should be one or more plots which help answer the questions above. Also, try to critique the answers by posing questions such as, are the conclusions you draw foolproof? Or are they mere hypotheses? A major issue with any data collection is, how convincing are the numbers? How does one deal with experimental noise? etc. You should use repetition to increase the confidence, i.e., take multiple measurements of an event, and compute (for example) an average over many runs instead of the result from just a single experiment.

Step 4. Writing it up. After the experiments, please follow the below mentioned format to write your paper (report).

1. Title: The title should be descriptive and fit in one line across the page.

2. Author: This should be right under the title, says who you are.

3. Abstract: This is the paper in brief and should state the basic contents and conclusions of the paper. In general, the abstract is an advertisement that should draw the reader into reading your paper, without being misleading. It should be complete enough to understand what will be covered in the paper. Do not be afraid of giving away the ending!

4. Intro: This is a short overview of what you did, and what you learnt. This should contain more motivation than the abstract. Again, please make sure you include your main conclusions.

5. Methodology: This should answer questions such as, what you measured in the file system and how you went about doing it. Please include something about your timer accuracy, as well as a description of the platform you used to the level of detail such that someone else could reproduce the same experiments elsewhere.

6. Results: This section should mainly consist plots, each addressing the questions above. Please make sure that graphs have axes labeled (including units). Also include code snippets with each plot (or some rough description of the methodology used to conduct the experiment) so that the reader can follow your idea. This should be followed by the conclusions for each of the plots.

7. Conclusions: Summarize the conclusions here, and discuss things you have learnt during this experimentation.

Reference no: EM13696881

Questions Cloud

Consumer behavior is all emotional : Some people argue that consumer behavior is all emotional, and some that the behavior is all rational. Explain some of the rational considerations consumers have when considering purchasing a new home. Now explain some of the emotional factors..
Completing an essay for marketing : Completing an essay for marketing as it must be at least 1750 words that summarizes research concerning either: global marketing, social media as a marketing tool, or marketing ethics. Resources used (i.e. article reviews, internet research..
A certain silicon sample : A certain silicon sample has NA = 5.01 X 1016cm-3and ND = 5.02 x 1016 cm-3. Given µn= 1200, and µp= 400cm2/V-s, determine a) The conductivity b) Repeat part (a) if NA =1017 and ND = 1.1 x 1017 cm-3. Use the mobilities of part (a).
Growth of consumer information organizations : "The growth of consumer information organizations, legal requirements, and warranty requirements has caused significant increases in the cost of customer satisfaction. " Comment on this quote.
Experiment with computer system measurements : Platform. Pick a Unix-based platform to work on. This might very likely be something like a PC running Linux, but feel free to experiment with whatever system you have access to, e.g., FreeBSD, some old UNIX system like AIX, or even Mac OS X.
Draw the graph relating number of faults : Draw the graph relating Number of Faults to Line length and does the data indicate that the number of faults per mile has changed from year 2000 to year 2001?
Draw the marginal revenue function for firm : Draw the marginal revenue function for this firm and what is the profit-maximizing price for this firm - On the graph show the area which represents the net loss to society resulting from the monopoly power conferred by the patent.
Experience that you have had with a service business : Analyze a recent experience that you have had with a service business (for example, a hairdresser, movie theater, car repair, or restaurant) in terms of your expectations and perceptions about each of the five components of service quality.
Why people should not smoke : Prepare a Research report on "Why people should not Smoke"

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Compare computerized process to manual process

ompare a computerized process to manual process. Write differences and the advantages and disadvantages of the computerized systems.

  Design a combinational circuit

Design a combinational circuit that accepts a 3-bit number and generates a 6-bit binary number equal to the square of the number. Thanks!

  Should you set in ta1ctl, and what corresponding

Which bits (including divisor bits) should you set in TA1CTL, and what corresponding countshould you set in TA1CCR0, to trigger an interrupt every 400 msec?

  This thesis artefact is flexible

This thesis artefact is flexible in a sense that helper can use any other sort of tools to accomplish the task as long as it matches with the aim but please, let me know how he/ she going to do it.

  How would you communicate the design of method to developer

How would you communicate the design of method to a developer that must implement a complex algorithm and ensure that they implement correctly when provided good inputs as well as handle bad input and no input scenarios?

  How these models would facilitate a company in the country

Review the IT diffusion models, select two models, then compare and contrast how these models would facilitate a company in the country and business sector of your choice. Be sure to state your business sector. Then, explain how the IT diffusion m..

  Write files which do not reside at root or master directory

Provide the example of names of three files from own computer that do not reside at the root or master directory. For each file, list both therelative filename and its complete filename.

  Execution by responding to a number of user initiated events

Demonstrate what you have learned in these first two chapters of VB by designing a user interface that controls the order of the tabs, set the initial properties of form controls, and then modifies properties during execution by responding to a..

  Why does this type of delegation make sense

Which is preferable, to delegate permissions to an individual or to a group? Why does this type of delegation make sense?

  Computer crime techniques

Computer Crime Techniques

  Using sequential logic, counters and shift registers propose

using sequential logic, counters and shift registers propose a more complex system utilizing some of the more complex sub systems. example a motion acitavated light. Needs to be somthing other then a light example like motors or somthing

  A power level of 100 w is 6 db above what power level

A power level of 100 W is 6 dB above what power level?

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