For a high-performance system such as a B-tree index for a database, the page size is determined

Question:

For a high-performance system such as a B-tree index for a database, the page size is determined mainly by the data size and disk performance. Assume that on average a B-tree index page is 70% full with fix-sized entries. The utility of a page is its B-tree depth, calculated as log2(entries). Th e following table shows that for 16-byte entries, and a 10-year-old disk with a 10 ms latency and 10 MB/s transfer rate, the optimal page size is 16K.

Page Utility or B-Tree Depth (Number of Disk Accesses Saved) Index Page Access Cost (ms) Page Size (KIB) Utility/Cost 6.

1. What is the best page size if entries now become 128 bytes?

2. Based on 5.10.1, what is the best page size if pages are half full?

3. Based on 5.10.2, what is the best page size if using a modern disk with a 3 ms latency and 100 MB/s transfer rate? Explain why future servers are likely to have larger pages.

Keeping €œfrequently used€ (or €œhot€) pages in DRAM can save disk accesses, but how do we determine the exact meaning of €œfrequently used€ for a given system? Data engineers use the cost ratio between DRAM and disk access to quantify the reuse time threshold for hot pages. The cost of a disk access is $Disk/accesses_per_sec, while the cost to keep a page in DRAM is $DRAM_MiB/page_size. The typical DRAM and disk costs and typical database page sizes at several time points are listed below:

Page Size (KIB) DRAM Cost Disk Cost Disk Access Rate ($/MIB) ($/disk) (access/sec) Year 1987 5000 15,000 15 1997 15 8 20

4. What are the reuse time thresholds for these three technology generations?

5. What are the reuse time thresholds if we keep using the same 4K page size? What€™s the trend here?

6. What other factors can be changed to keep using the same page size (thus avoiding soft ware rewrite)? Discuss their likeliness with current technology and cost trends.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: