benchmark:disk_speedtest_using_dd
Differences
This shows you the differences between two versions of the page.
benchmark:disk_speedtest_using_dd [2016/07/10 00:34] – created peter | benchmark:disk_speedtest_using_dd [2019/11/26 20:48] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Benchmark - Disk Speedtest using dd ====== | ||
- | |||
- | The **dd** command is readily available in almost all distributions out of the box and is pretty easy to use. | ||
- | |||
- | dd is used to write or read from any block device in Linux. And you can do a lot of stuff with this command. | ||
- | |||
- | With the dd command we will only be testing sequential read and sequential write. | ||
- | |||
- | |||
- | <code bash> | ||
- | dd if=/ | ||
- | </ | ||
- | |||
- | Result: | ||
- | |||
- | < | ||
- | 100+0 records in | ||
- | 100+0 records out | ||
- | 104857600 bytes (105 MB, 100 MiB) copied, 0.0963094 s, 1.1 GB/s | ||
- | </ | ||
- | |||
- | The speed that dd reported to us is the speed with which data was cached to RAM memory, not to the disk. | ||
- | |||
- | To have the dd command report the speed only after the data is synced with the disk, issue the command: | ||
- | |||
- | <code bash> | ||
- | dd if=/ | ||
- | </ | ||
- | |||
- | Result: | ||
- | |||
- | < | ||
- | 100+0 records in | ||
- | 100+0 records out | ||
- | 104857600 bytes (105 MB, 100 MiB) copied, 0.107805 s, 973 MB/s | ||
- | </ | ||
- | |||
- | |||
- | Test with a larger amount. | ||
- | |||
- | <code bash> | ||
- | dd if=/ | ||
- | </ | ||
- | |||
- | Result: | ||
- | |||
- | < | ||
- | 3200+0 records in | ||
- | 3200+0 records out | ||
- | 209715200 bytes (210 MB, 200 MiB) copied, 0.19644 s, 1.1 GB/s | ||
- | </ | ||
- | |||
- | **NOTE**: | ||
- | |||
- | <code bash> | ||
- | tune2fs -l /dev/sda1 | ||
- | </ | ||
- | |||
- | Result: | ||
- | |||
- | < | ||
- | tune2fs -l /dev/sda1 | ||
- | tune2fs 1.42.13 (17-May-2015) | ||
- | Filesystem volume name: < | ||
- | Last mounted on: /boot | ||
- | Filesystem UUID: 820755d6-52d8-49ae-a297-83c55c4ed956 | ||
- | Filesystem magic number: | ||
- | Filesystem revision #: 1 (dynamic) | ||
- | Filesystem features: | ||
- | Filesystem flags: | ||
- | Default mount options: | ||
- | Filesystem state: | ||
- | Errors behavior: | ||
- | Filesystem OS type: Linux | ||
- | Inode count: | ||
- | Block count: | ||
- | Reserved block count: | ||
- | Free blocks: | ||
- | Free inodes: | ||
- | First block: | ||
- | Block size: 4096 | ||
- | Fragment size: 4096 | ||
- | Reserved GDT blocks: | ||
- | Blocks per group: | ||
- | Fragments per group: | ||
- | Inodes per group: | ||
- | Inode blocks per group: | ||
- | Flex block group size: 16 | ||
- | Filesystem created: | ||
- | Last mount time: Thu Jun 30 19:47:47 2016 | ||
- | Last write time: Thu Jun 30 19:47:47 2016 | ||
- | Mount count: | ||
- | Maximum mount count: | ||
- | Last checked: | ||
- | Check interval: | ||
- | Lifetime writes: | ||
- | Reserved blocks uid: 0 (user root) | ||
- | Reserved blocks gid: 0 (group root) | ||
- | First inode: | ||
- | Inode size: | ||
- | Required extra isize: | ||
- | Desired extra isize: | ||
- | Journal inode: | ||
- | Default directory hash: | ||
- | Directory Hash Seed: 924e9301-4759-4f93-8d17-f0ab4f4a9d46 | ||
- | Journal backup: | ||
- | </ | ||
- | |||
- | or | ||
- | |||
- | < | ||
- | dumpe2fs /dev/sda1 | ||
- | </ | ||
- | |||
- | Result: | ||
- | |||
- | < | ||
- | root@server1: | ||
- | dumpe2fs 1.42.13 (17-May-2015) | ||
- | Filesystem volume name: < | ||
- | Last mounted on: /boot | ||
- | Filesystem UUID: 820755d6-52d8-49ae-a297-83c55c4ed956 | ||
- | Filesystem magic number: | ||
- | Filesystem revision #: 1 (dynamic) | ||
- | Filesystem features: | ||
- | Filesystem flags: | ||
- | Default mount options: | ||
- | Filesystem state: | ||
- | Errors behavior: | ||
- | Filesystem OS type: Linux | ||
- | Inode count: | ||
- | Block count: | ||
- | Reserved block count: | ||
- | Free blocks: | ||
- | Free inodes: | ||
- | First block: | ||
- | Block size: 4096 | ||
- | Fragment size: 4096 | ||
- | Reserved GDT blocks: | ||
- | Blocks per group: | ||
- | Fragments per group: | ||
- | Inodes per group: | ||
- | Inode blocks per group: | ||
- | Flex block group size: 16 | ||
- | Filesystem created: | ||
- | Last mount time: Thu Jun 30 19:47:47 2016 | ||
- | Last write time: Thu Jun 30 19:47:47 2016 | ||
- | Mount count: | ||
- | Maximum mount count: | ||
- | Last checked: | ||
- | Check interval: | ||
- | Lifetime writes: | ||
- | Reserved blocks uid: 0 (user root) | ||
- | Reserved blocks gid: 0 (group root) | ||
- | First inode: | ||
- | Inode size: | ||
- | Required extra isize: | ||
- | Desired extra isize: | ||
- | Journal inode: | ||
- | Default directory hash: | ||
- | Directory Hash Seed: 924e9301-4759-4f93-8d17-f0ab4f4a9d46 | ||
- | Journal backup: | ||
- | Journal features: | ||
- | Journal size: 32M | ||
- | Journal length: | ||
- | Journal sequence: | ||
- | Journal start: | ||
- | |||
- | |||
- | Group 0: (Blocks 0-32767) [ITABLE_ZEROED] | ||
- | Checksum 0xb7aa, unused inodes 7811 | ||
- | Primary superblock at 0, Group descriptors at 1-1 | ||
- | Reserved GDT blocks at 2-120 | ||
- | Block bitmap at 121 (+121), Inode bitmap at 136 (+136) | ||
- | Inode table at 151-659 (+151) | ||
- | 19106 free blocks, 7823 free inodes, 5 directories, | ||
- | Free blocks: 8095-8101, 9048-9767, 11744-16383, | ||
- | Free inodes: 322-8144 | ||
- | Group 1: (Blocks 32768-65535) [ITABLE_ZEROED] | ||
- | Checksum 0x4b76, unused inodes 8143 | ||
- | Backup superblock at 32768, Group descriptors at 32769-32769 | ||
- | Reserved GDT blocks at 32770-32888 | ||
- | Block bitmap at 122 (bg #0 + 122), Inode bitmap at 137 (bg #0 + 137) | ||
- | Inode table at 660-1168 (bg #0 + 660) | ||
- | 23770 free blocks, 8143 free inodes, 1 directories, | ||
- | Free blocks: 32890-33279, | ||
- | Free inodes: 8146-16288 | ||
- | Group 2: (Blocks 65536-98303) [INODE_UNINIT, | ||
- | Checksum 0xde2e, unused inodes 8144 | ||
- | Block bitmap at 123 (bg #0 + 123), Inode bitmap at 138 (bg #0 + 138) | ||
- | Inode table at 1169-1677 (bg #0 + 1169) | ||
- | 12403 free blocks, 8144 free inodes, 0 directories, | ||
- | Free blocks: 65536-69631, | ||
- | Free inodes: 16289-24432 | ||
- | Group 3: (Blocks 98304-131071) [INODE_UNINIT, | ||
- | Checksum 0xa86f, unused inodes 8144 | ||
- | Backup superblock at 98304, Group descriptors at 98305-98305 | ||
- | Reserved GDT blocks at 98306-98424 | ||
- | Block bitmap at 124 (bg #0 + 124), Inode bitmap at 139 (bg #0 + 139) | ||
- | Inode table at 1678-2186 (bg #0 + 1678) | ||
- | 13357 free blocks, 8144 free inodes, 0 directories, | ||
- | Free blocks: 99671-100365, | ||
- | Free inodes: 24433-32576 | ||
- | Group 4: (Blocks 131072-163839) [INODE_UNINIT, | ||
- | Checksum 0x9038, unused inodes 8144 | ||
- | Block bitmap at 125 (bg #0 + 125), Inode bitmap at 140 (bg #0 + 140) | ||
- | Inode table at 2187-2695 (bg #0 + 2187) | ||
- | 30770 free blocks, 8144 free inodes, 0 directories, | ||
- | Free blocks: 133070-163839 | ||
- | Free inodes: 32577-40720 | ||
- | Group 5: (Blocks 163840-196607) [INODE_UNINIT, | ||
- | Checksum 0x59ef, unused inodes 8144 | ||
- | Backup superblock at 163840, Group descriptors at 163841-163841 | ||
- | Reserved GDT blocks at 163842-163960 | ||
- | Block bitmap at 126 (bg #0 + 126), Inode bitmap at 141 (bg #0 + 141) | ||
- | Inode table at 2696-3204 (bg #0 + 2696) | ||
- | 32647 free blocks, 8144 free inodes, 0 directories, | ||
- | Free blocks: 163961-196607 | ||
- | Free inodes: 40721-48864 | ||
- | Group 6: (Blocks 196608-229375) [INODE_UNINIT, | ||
- | Checksum 0xadc6, unused inodes 8144 | ||
- | Block bitmap at 127 (bg #0 + 127), Inode bitmap at 142 (bg #0 + 142) | ||
- | Inode table at 3205-3713 (bg #0 + 3205) | ||
- | 24576 free blocks, 8144 free inodes, 0 directories, | ||
- | Free blocks: 204800-229375 | ||
- | Free inodes: 48865-57008 | ||
- | Group 7: (Blocks 229376-262143) [INODE_UNINIT, | ||
- | Checksum 0x27cd, unused inodes 8144 | ||
- | Backup superblock at 229376, Group descriptors at 229377-229377 | ||
- | Reserved GDT blocks at 229378-229496 | ||
- | Block bitmap at 128 (bg #0 + 128), Inode bitmap at 143 (bg #0 + 143) | ||
- | Inode table at 3714-4222 (bg #0 + 3714) | ||
- | 32647 free blocks, 8144 free inodes, 0 directories, | ||
- | Free blocks: 229497-262143 | ||
- | Free inodes: 57009-65152 | ||
- | Group 8: (Blocks 262144-294911) [INODE_UNINIT, | ||
- | Checksum 0x5388, unused inodes 8144 | ||
- | Block bitmap at 129 (bg #0 + 129), Inode bitmap at 144 (bg #0 + 144) | ||
- | Inode table at 4223-4731 (bg #0 + 4223) | ||
- | 32768 free blocks, 8144 free inodes, 0 directories, | ||
- | Free blocks: 262144-294911 | ||
- | Free inodes: 65153-73296 | ||
- | Group 9: (Blocks 294912-327679) [INODE_UNINIT, | ||
- | Checksum 0x1bcb, unused inodes 8144 | ||
- | Backup superblock at 294912, Group descriptors at 294913-294913 | ||
- | Reserved GDT blocks at 294914-295032 | ||
- | Block bitmap at 130 (bg #0 + 130), Inode bitmap at 145 (bg #0 + 145) | ||
- | Inode table at 4732-5240 (bg #0 + 4732) | ||
- | 32647 free blocks, 8144 free inodes, 0 directories, | ||
- | Free blocks: 295033-327679 | ||
- | Free inodes: 73297-81440 | ||
- | Group 10: (Blocks 327680-360447) [INODE_UNINIT, | ||
- | Checksum 0x78db, unused inodes 8144 | ||
- | Block bitmap at 131 (bg #0 + 131), Inode bitmap at 146 (bg #0 + 146) | ||
- | Inode table at 5241-5749 (bg #0 + 5241) | ||
- | 32768 free blocks, 8144 free inodes, 0 directories, | ||
- | Free blocks: 327680-360447 | ||
- | Free inodes: 81441-89584 | ||
- | Group 11: (Blocks 360448-393215) [INODE_UNINIT, | ||
- | Checksum 0x38ba, unused inodes 8144 | ||
- | Block bitmap at 132 (bg #0 + 132), Inode bitmap at 147 (bg #0 + 147) | ||
- | Inode table at 5750-6258 (bg #0 + 5750) | ||
- | 32768 free blocks, 8144 free inodes, 0 directories, | ||
- | Free blocks: 360448-393215 | ||
- | Free inodes: 89585-97728 | ||
- | Group 12: (Blocks 393216-425983) [INODE_UNINIT, | ||
- | Checksum 0x052e, unused inodes 8144 | ||
- | Block bitmap at 133 (bg #0 + 133), Inode bitmap at 148 (bg #0 + 148) | ||
- | Inode table at 6259-6767 (bg #0 + 6259) | ||
- | 32768 free blocks, 8144 free inodes, 0 directories, | ||
- | Free blocks: 393216-425983 | ||
- | Free inodes: 97729-105872 | ||
- | Group 13: (Blocks 425984-458751) [INODE_UNINIT, | ||
- | Checksum 0x1084, unused inodes 8144 | ||
- | Block bitmap at 134 (bg #0 + 134), Inode bitmap at 149 (bg #0 + 149) | ||
- | Inode table at 6768-7276 (bg #0 + 6768) | ||
- | 32768 free blocks, 8144 free inodes, 0 directories, | ||
- | Free blocks: 425984-458751 | ||
- | Free inodes: 105873-114016 | ||
- | Group 14: (Blocks 458752-488191) [INODE_UNINIT, | ||
- | Checksum 0x81a8, unused inodes 8144 | ||
- | Block bitmap at 135 (bg #0 + 135), Inode bitmap at 150 (bg #0 + 150) | ||
- | Inode table at 7277-7785 (bg #0 + 7277) | ||
- | 29440 free blocks, 8144 free inodes, 0 directories, | ||
- | Free blocks: 458752-488191 | ||
- | Free inodes: 114017-122160 | ||
- | </ | ||
- | |||
- | |||
- | ===== Test the sequential read speed ===== | ||
- | |||
- | <code bash> | ||
- | dd if=speedtest of=/ | ||
- | </ | ||
- | |||
- | Result: | ||
- | |||
- | < | ||
- | 3200+0 records in | ||
- | 3200+0 records out | ||
- | 209715200 bytes (210 MB, 200 MiB) copied, 0.0577722 s, 3.6 GB/s | ||
- | </ | ||
benchmark/disk_speedtest_using_dd.1468110893.txt.gz · Last modified: 2020/07/15 09:30 (external edit)