Measure the IO capability of Oracle read blocks.

Source: Internet
Author: User

I suddenly thought of testing the real I/O capabilities of the database. Although the hardware engineer has a set of methods to test IOPS, Oracle also launched the ORAXXX test tool. in the actual application environment, IOPS is affected by table space, table settings, block size, and other factors. for example, how long does it take to scan a full table? In the case of idle, high, and parallel jobs, respectively.

I did some experiments on the company's R & D database, and the time I got was not very effective when I was idle.

For example, a table has 10 thousand blocks, and each 8 K block gets the company's IO capacity of 285 MB per second. 36480 blocks always feel that alter system flush BUFFER_CACHE and SHARED_POOL clearing memory is always invalid.

The experiment started at home.

Use a 384-block table selet count (*) FROM T_TEST

FLUSH BUFFER_CACHE and SHARED_POOL fluctuation range: 0.329, 0.297, 0.266 seconds

Flush shared_pool; -- 0.187
Flush buffer_cache; -- 0.172 0.156 seconds

So the IO capability is: 384/0. 172*8/1024 = 17.44 M

Run the parallel prompt/* + parallel (t, 4) * // * + parallel (t, 3) * // * + parallel (t, 2 )*/

Time: 0.64 0.375 0.296 it seems that the parallel capability of a single CPU is time-consuming.

The number of memory reads. You only need to repeat the execution and the expected time is 0.031 and 0.015.

Memory IO: 96.77M and 200 M

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.