MySQL Forums
Forum List  »  Performance

Re: slow queries and high % of wait I/O
Posted by: Rick James
Date: January 20, 2009 01:28AM

To read a _random_ block from disk costs on average at least half a rotation. So, depending on rotational speed (SATA: 7200rpm, SCSI up to 15K, etc), we are looking at (in round numbers) 10ms -- 100 reads/sec. That assumes the desired block was not cached (in controller, MySQL cache, etc). And it assumes an isolated read.

Add RAID to the mix, together with multiple requestors, now you can get more. With 6 drives, you might get closer to 600 reads/sec.

Writes are another matter -- with BBWC, writes are virtually instantaneous (until you saturate that).

Alas, the numbers don't quite add up. Perhaps something else is going on that Jawahar has not mentioned.

SELECT * FROM HISTORY WHERE ... -- If it is 200 rows, it could take more than a second.

Options: ReplyQuote


Subject
Views
Written By
Posted
3023
January 19, 2009 05:36PM
2655
January 19, 2009 11:37PM
2480
January 21, 2009 01:22AM
Re: slow queries and high % of wait I/O
2425
January 20, 2009 01:28AM
2371
January 20, 2009 08:41PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.