TOPICS (Click to Navigate)
Friday, 23 March 2018
Find the number of disk blocks in a given hard disk in dbms data storage
Following are the characteristics of a hard disk; Sector size of 512 bytes, 16 sectors per track, 16384 tracks per surface, 4 double sided platter, and 4096 bytes per block. Find the number of blocks in that disk.
Let us find the total capacity of given disk in bytes.
A track has 16 sectors each of which is 512 bytes in size.
Capacity of a track = Sector size * Number of sectors
= 512 * 16 = 8192 bytes.
There are 16384 tracks in a surface of a disk platter.
Capacity of one surface of disk platter = No. of tracks * Capacity of a track
= 16384 * 8192 = 134217728 bytes
Capacity of one double sided platter = 134217728 * 2 (2 sides per disk)
= 268435456 bytes
There are 4 double sided platters.
Capacity of the hard disk = Capacity of one disk platter * No. of disk platters
= 268435456 * 4
= 1073741824 bytes
It is given that the block size is 4096.
The number of blocks = (capacity of the hard disk) / (block size)
= 1073741824/4096 = 262144 blocks
The hard disk with the given characteristics will have 262144 blocks.
Go to Solved Exercises in DBMS page
find number of blocks in a hard disk drive
calculate the size of hard disk in bytes
find the capacity of a disk platter
Simple introduction to Naive Bayes classifier What is Naive Bayes Classifier? A Naive Bayes classifier is a probabilistic classifier ...
Advanced concepts in DBMS Advanced Database Topics (Click on the links to navigate) Advanced Concepts in D...
Set of solved exercises in Normalization / Normalization Solved Examples / How to find candidate keys, and primary keys in database? /...
Query Processing in DBMS / Steps involved in Query Processing in DBMS / How is a query gets processed in a Database Management System? / Q...