![]() | |
#51
| |||
| |||
|
|
On Aug 21, 8:36 am, Darren <anon5... (AT) yahoo (DOT) com> wrote: I am learning about database systems, and I am reading a book called "Physical Database Design". It gets to a bit about a large sequential access (e.g. for a full table scan), and does the following: It says "Since most disk systems use prefetch buffers to speed up table scans, we assume a 64 KB prefetch block" So to calculate the time for a full table scan, it multiples the number of 64KB blocks by the time it takes to seek and read (2.02ms). In other words, it is seeking each 64KB block. Why can a disk only read 64KB at a time? Is this a valid assumption? Is this a disk limitation or a file system limitation? A high end modern HD with 4ms average seek will on average take about 7ms to access and an additional 0.5ms to read a randomly located 64k buffer. * This mismatch shows that 64k blocks are too small for optimal read performance. * 512k or 1Mb blocks would be more suitable.-Hide quoted text - - Show quoted text - |
#52
| |||
| |||
|
|
On Aug 21, 8:36 am, Darren <anon5... (AT) yahoo (DOT) com> wrote: I am learning about database systems, and I am reading a book called "Physical Database Design". It gets to a bit about a large sequential access (e.g. for a full table scan), and does the following: It says "Since most disk systems use prefetch buffers to speed up table scans, we assume a 64 KB prefetch block" So to calculate the time for a full table scan, it multiples the number of 64KB blocks by the time it takes to seek and read (2.02ms). In other words, it is seeking each 64KB block. Why can a disk only read 64KB at a time? Is this a valid assumption? Is this a disk limitation or a file system limitation? A high end modern HD with 4ms average seek will on average take about 7ms to access and an additional 0.5ms to read a randomly located 64k buffer. * This mismatch shows that 64k blocks are too small for optimal read performance. * 512k or 1Mb blocks would be more suitable.-Hide quoted text - - Show quoted text - |
#53
| |||
| |||
|
|
On Aug 21, 8:36 am, Darren <anon5... (AT) yahoo (DOT) com> wrote: I am learning about database systems, and I am reading a book called "Physical Database Design". It gets to a bit about a large sequential access (e.g. for a full table scan), and does the following: It says "Since most disk systems use prefetch buffers to speed up table scans, we assume a 64 KB prefetch block" So to calculate the time for a full table scan, it multiples the number of 64KB blocks by the time it takes to seek and read (2.02ms). In other words, it is seeking each 64KB block. Why can a disk only read 64KB at a time? Is this a valid assumption? Is this a disk limitation or a file system limitation? A high end modern HD with 4ms average seek will on average take about 7ms to access and an additional 0.5ms to read a randomly located 64k buffer. * This mismatch shows that 64k blocks are too small for optimal read performance. * 512k or 1Mb blocks would be more suitable.-Hide quoted text - - Show quoted text - |
#54
| |||
| |||
|
|
On Aug 21, 8:36 am, Darren <anon5... (AT) yahoo (DOT) com> wrote: I am learning about database systems, and I am reading a book called "Physical Database Design". It gets to a bit about a large sequential access (e.g. for a full table scan), and does the following: It says "Since most disk systems use prefetch buffers to speed up table scans, we assume a 64 KB prefetch block" So to calculate the time for a full table scan, it multiples the number of 64KB blocks by the time it takes to seek and read (2.02ms). In other words, it is seeking each 64KB block. Why can a disk only read 64KB at a time? Is this a valid assumption? Is this a disk limitation or a file system limitation? A high end modern HD with 4ms average seek will on average take about 7ms to access and an additional 0.5ms to read a randomly located 64k buffer. * This mismatch shows that 64k blocks are too small for optimal read performance. * 512k or 1Mb blocks would be more suitable.-Hide quoted text - - Show quoted text - |
#55
| |||
| |||
|
|
On Aug 21, 8:36 am, Darren <anon5... (AT) yahoo (DOT) com> wrote: I am learning about database systems, and I am reading a book called "Physical Database Design". It gets to a bit about a large sequential access (e.g. for a full table scan), and does the following: It says "Since most disk systems use prefetch buffers to speed up table scans, we assume a 64 KB prefetch block" So to calculate the time for a full table scan, it multiples the number of 64KB blocks by the time it takes to seek and read (2.02ms). In other words, it is seeking each 64KB block. Why can a disk only read 64KB at a time? Is this a valid assumption? Is this a disk limitation or a file system limitation? A high end modern HD with 4ms average seek will on average take about 7ms to access and an additional 0.5ms to read a randomly located 64k buffer. * This mismatch shows that 64k blocks are too small for optimal read performance. * 512k or 1Mb blocks would be more suitable.-Hide quoted text - - Show quoted text - |
#56
| |||
| |||
|
|
On Aug 21, 12:08 am, David BL <davi... (AT) iinet (DOT) net.au> wrote: On Aug 21, 8:36 am, Darren <anon5... (AT) yahoo (DOT) com> wrote: I am learning about database systems, and I am reading a book called "Physical Database Design". It gets to a bit about a large sequential access (e.g. for a full table scan), and does the following: It says "Since most disk systems use prefetch buffers to speed up table scans, we assume a 64 KB prefetch block" So to calculate the time for a full table scan, it multiples the number of 64KB blocks by the time it takes to seek and read (2.02ms). In other words, it is seeking each 64KB block. Why can a disk only read 64KB at a time? Is this a valid assumption? Is this a disk limitation or a file system limitation? A high end modern HD with 4ms average seek will on average take about 7ms to access and an additional 0.5ms to read a randomly located 64k buffer. This mismatch shows that 64k blocks are too small for optimal read performance. 512k or 1Mb blocks would be more suitable.- Hide quoted text - - Show quoted text - But what dictates the block size? Is this defined by the physical disk, the file system, or the database code? |
#57
| |||
| |||
|
|
On Aug 21, 12:08 am, David BL <davi... (AT) iinet (DOT) net.au> wrote: On Aug 21, 8:36 am, Darren <anon5... (AT) yahoo (DOT) com> wrote: I am learning about database systems, and I am reading a book called "Physical Database Design". It gets to a bit about a large sequential access (e.g. for a full table scan), and does the following: It says "Since most disk systems use prefetch buffers to speed up table scans, we assume a 64 KB prefetch block" So to calculate the time for a full table scan, it multiples the number of 64KB blocks by the time it takes to seek and read (2.02ms). In other words, it is seeking each 64KB block. Why can a disk only read 64KB at a time? Is this a valid assumption? Is this a disk limitation or a file system limitation? A high end modern HD with 4ms average seek will on average take about 7ms to access and an additional 0.5ms to read a randomly located 64k buffer. This mismatch shows that 64k blocks are too small for optimal read performance. 512k or 1Mb blocks would be more suitable.- Hide quoted text - - Show quoted text - But what dictates the block size? Is this defined by the physical disk, the file system, or the database code? |
#58
| |||
| |||
|
|
On Aug 21, 12:08 am, David BL <davi... (AT) iinet (DOT) net.au> wrote: On Aug 21, 8:36 am, Darren <anon5... (AT) yahoo (DOT) com> wrote: I am learning about database systems, and I am reading a book called "Physical Database Design". It gets to a bit about a large sequential access (e.g. for a full table scan), and does the following: It says "Since most disk systems use prefetch buffers to speed up table scans, we assume a 64 KB prefetch block" So to calculate the time for a full table scan, it multiples the number of 64KB blocks by the time it takes to seek and read (2.02ms). In other words, it is seeking each 64KB block. Why can a disk only read 64KB at a time? Is this a valid assumption? Is this a disk limitation or a file system limitation? A high end modern HD with 4ms average seek will on average take about 7ms to access and an additional 0.5ms to read a randomly located 64k buffer. This mismatch shows that 64k blocks are too small for optimal read performance. 512k or 1Mb blocks would be more suitable.- Hide quoted text - - Show quoted text - But what dictates the block size? Is this defined by the physical disk, the file system, or the database code? |
#59
| |||
| |||
|
|
On Aug 21, 12:08 am, David BL <davi... (AT) iinet (DOT) net.au> wrote: On Aug 21, 8:36 am, Darren <anon5... (AT) yahoo (DOT) com> wrote: I am learning about database systems, and I am reading a book called "Physical Database Design". It gets to a bit about a large sequential access (e.g. for a full table scan), and does the following: It says "Since most disk systems use prefetch buffers to speed up table scans, we assume a 64 KB prefetch block" So to calculate the time for a full table scan, it multiples the number of 64KB blocks by the time it takes to seek and read (2.02ms). In other words, it is seeking each 64KB block. Why can a disk only read 64KB at a time? Is this a valid assumption? Is this a disk limitation or a file system limitation? A high end modern HD with 4ms average seek will on average take about 7ms to access and an additional 0.5ms to read a randomly located 64k buffer. This mismatch shows that 64k blocks are too small for optimal read performance. 512k or 1Mb blocks would be more suitable.- Hide quoted text - - Show quoted text - But what dictates the block size? Is this defined by the physical disk, the file system, or the database code? |
#60
| |||
| |||
|
|
On Aug 21, 12:08 am, David BL <davi... (AT) iinet (DOT) net.au> wrote: On Aug 21, 8:36 am, Darren <anon5... (AT) yahoo (DOT) com> wrote: I am learning about database systems, and I am reading a book called "Physical Database Design". It gets to a bit about a large sequential access (e.g. for a full table scan), and does the following: It says "Since most disk systems use prefetch buffers to speed up table scans, we assume a 64 KB prefetch block" So to calculate the time for a full table scan, it multiples the number of 64KB blocks by the time it takes to seek and read (2.02ms). In other words, it is seeking each 64KB block. Why can a disk only read 64KB at a time? Is this a valid assumption? Is this a disk limitation or a file system limitation? A high end modern HD with 4ms average seek will on average take about 7ms to access and an additional 0.5ms to read a randomly located 64k buffer. This mismatch shows that 64k blocks are too small for optimal read performance. 512k or 1Mb blocks would be more suitable.- Hide quoted text - - Show quoted text - But what dictates the block size? Is this defined by the physical disk, the file system, or the database code? |
![]() |
| Thread Tools | |
| Display Modes | |
| |