Docsity

Testing Equivalence of Granularity Locks and 2PL in Advanced DBMS Project - Prof. Susan Ha, Study Guides, Projects, Research of Computer Science

Toggle sidebar
bg1
COSC 671 ADVANCED DBMS PRINCIPLES
Project #2
For this project, you will design an experiment (or multiple experiments) to empirically
test the equivalence of the protocol proposed by “Granularity of Locks …” and the
vanilla 2PL (X, S) protocol. Gray, et al., prove the equivalence mathematically; this
project will demonstrate empirically that equivalence.
The default paradigm for your experiments is simulation of transaction processing. I will
expect to see the scheduling implemented as described starting page 254. For alternative
paradigms, check with me first.
The onus of convincing your reader that you have empirically demonstrated the
equivalence is on you.
There are several things you must consider before designing experiments:
How can you characterize the transactions so that you have representative sets of
transactions?
- How many transactions in a set?
- What does a transaction actually need to look like?
- How many resources do you need?
- How many resources are locked during the schedule?
- When are the resources locked?
- At what “level” of the DAG or hierarchy are the resources?
What is necessary for the lock releases – can you release all at the end, or do you
have to have manual unlocking?
How will you create a random transaction? That is, how can you create a
transaction automatically?
How will you create a random schedule?
How will you handle deadlock? Do you really have to completely handle
deadlock as though this were an actual DBMS? How will you compare deadlock
results across the two protocols?
How will you know whether a schedule that is run using vanilla X and S is
equivalent to a schedule run using the multiple granularities?
What numbers will you collect (the results of your experiment) to convince your
reader that your experiments demonstrated the equivalence of the protocols.
Purpose – (1) Gain experience in designing an engineering experiment.
pf2

Partial preview of the text

Download Testing Equivalence of Granularity Locks and 2PL in Advanced DBMS Project - Prof. Susan Ha and more Study Guides, Projects, Research Computer Science in PDF only on Docsity!

COSC 671 ADVANCED DBMS PRINCIPLES

Project # For this project, you will design an experiment (or multiple experiments) to empirically test the equivalence of the protocol proposed by “Granularity of Locks …” and the vanilla 2PL (X, S) protocol. Gray, et al., prove the equivalence mathematically; this project will demonstrate empirically that equivalence. The default paradigm for your experiments is simulation of transaction processing. I will expect to see the scheduling implemented as described starting page 254. For alternative paradigms, check with me first. The onus of convincing your reader that you have empirically demonstrated the equivalence is on you. There are several things you must consider before designing experiments: How can you characterize the transactions so that you have representative sets of transactions?

  • How many transactions in a set?
  • What does a transaction actually need to look like?
  • How many resources do you need?
  • How many resources are locked during the schedule?
  • When are the resources locked?
  • At what “level” of the DAG or hierarchy are the resources? What is necessary for the lock releases – can you release all at the end, or do you have to have manual unlocking? How will you create a random transaction? That is, how can you create a transaction automatically? How will you create a random schedule? How will you handle deadlock? Do you really have to completely handle deadlock as though this were an actual DBMS? How will you compare deadlock results across the two protocols? How will you know whether a schedule that is run using vanilla X and S is equivalent to a schedule run using the multiple granularities? What numbers will you collect (the results of your experiment) to convince your reader that your experiments demonstrated the equivalence of the protocols. Purpose – (1) Gain experience in designing an engineering experiment.

(2) Gain experience in the abstractions and simplifications needed for modeling for an experiment. (3) Practice coding. (4) Gain experience in producing a technical paper on an empirical study. Recommendation: (1) Think hard before you start designing the experiments. (2) Think very hard before you begin coding. The difficult part of this project is the design – if the design is good (or even just reasonable), the coding will be easy. (3) I think this is a good opportunity for some RAD (rapid application development) – code a prototype of an experiment and see what the numbers tell you. Personally, I would plan on modifying my design after running the first experiment. (4) I’m expecting much use of the random number generator! Turn in: (1) Well documented, well designed code, uploaded to your website. (50%) Please note: any GUI needs to be separated (as much as possible) from the back-end. (2) Technical paper of no more than 7 pages, including graphs and tables and at least one reference (Gray, et al .), on paper. (50%) Note, the URL for the code needs to be in your paper. You will be demoing your experiments, including possible code walk-through and (in real-time) modifications. Hardware/software I don’t care, except that you must be able to demo and modify in my presence. I expect the code to be somewhere between 400 and 1000 lines (probably toward the smaller end), not including GUI. Due Date: 29 November 2005 (extra time given for your personal time management; I expect this project is worth four weeks of your time if this were a normal class). Post Script: You may collaborate during the design process (this is the hardest part). You MUST include the names of your design collaborators in the acknowledgement section of your paper. You may not collaborate with ANYONE at all during the coding phase, except for debugging very restricted sections of code. The best works are candidates for me to sponsor for submission to this year’s Graduate Research Fair – looks good on a resume.