In order to test the read and write speed of Linux disk, you can use the dd command, the dd command is a very useful command, can be used for copying files, the following small series will show you how to Use the dd command to test the read and write speed of Linux disks.
1, the first two are familiar with special equipment:
(1) /dev /null: Recycle Bin, bottomless pit.
(2) /dev /zero: Generate characters.
2, test disk write ability
Code is as follows:
time dd if=/dev/zero of=/testw.dbf bs=4k count=100000
Because /dev//zero is a pseudo device, it only produces a null character stream, it does not generate IO for it, so IO will be concentrated in the file, of file is only used for writing, so this command is equivalent Test the write capabilities of the disk. Adding flag=direct at the end of the command will skip the memory cache, and adding oflag=sync will skip the hdd cache.
3, test disk read ability
Code is as follows:
time dd if=/dev/sdb of=/dev/null bs=4k
Because /dev/sdb is a physical partition, reading it will generate IO, /dev/null is a pseudo device, which is equivalent to a black hole, and the device will not generate IO, so the IO of this command only occurs in /On dev/sdb, it is equivalent to testing the readability of the disk. (Ctrl+c terminates the test)
4, test simultaneous read and write capabilities
The code is as follows:
time dd if=/dev/sdb of=/testrw.dbf bs =4k
Under this command, one is a physical partition, and the other is the actual file. Reading and writing to them will generate IO (read for /dev/sdb and write for /testrw.dbf). Assuming they are all on one disk, this command is equivalent to testing the simultaneous read and write capabilities of the disk.
The above is the method of testing the read and write speed of Linux disk using dd command. This paper tests the read speed, write speed and simultaneous read and write speed of Linux disk, so that the read and write speed of Linux disk is more. fully understand.
The resolution of the computer screen allows us to look more comfortable when using
on Linux Use DenyHosts to perform automatic screen ip function. It is necessary to master the insta
Some people may have some old computers in their homes. These computer configurations cant keep up.
In Linux system, if you want Vim editor to play a bigger role, you need to install some plug-ins for
The specific steps to install Cobbler under Linux
How to set up PostgreSQL remote access in Linux
How to solve the problem that Linux does not limit the Limit value after opening SSH
Linux yum prompts Loaded plugins error?
How to bind multiple network cards to one under Linux?
What are the ways to clean up Linux disk space?
Red Flag Linux Desktop 5 How to Use SAPGUI Client
Linux steps to monitor database systems with Zabbix
Linux system settings DB2 and other services boot process
What should I do if I want to enter a password every time git is submitted in Ubuntu?
How to install and set up Puppet in CentOS 5.5
Ubuntu notebook to increase heat dissipation through Bumblebee
Microsoft released new Windows Phone 7.5 mobile operating system
Windows7 eventually dominated the country? Linux users post feelings
How to open and close 360 news pop-up window
How to set the LAN shared password for WinXP
What should I do if Win8 starts the screen program is not working properly?
Win8.1 installation software prompts that the registered key set is invalid and cannot be installed
Troubleshooting the System.ini file
Win7 automatically opened after downloading compressed files