Learning Dynamic Performance Table (9)--v$filestat

Source: Internet
Author: User

Learning Dynamic Performance Table

Nineth article --v$filestat 2007.6.5

This view records physical I/O information for each file. If the bottleneck is associated with I/O, you can use it to analyze the active I/O events that occur. V$FILESTAT Displays the following information for database I/O (not including log files):

    • L Physical Read and write number
    • L block read/write number
    • L I/O reads and writes total time

The above values start recording from the instance start. If two snapshots are taken, the difference between the two is the active I/O statistics for this time period.

V$filestat common columns in:

    • L file#: Document serial number;
    • L Phyrds: The number of physical reads completed;
    • L PHYBLKRD: block read number;
    • L PHYWRTS:DBWR The number of physical writes completed;
    • L PHYBLKWRT: Number of blocks written to disk;

V$filestat Note item:

    • The physical readings and data block readings may differ because of the multiblock read call;
    • Because the process is written directly, physical writing and data block writing may also be inconsistent;
    • L Sum (physical blocks read) is similar to physical reads in V$sysstat;
    • L Sum (physical blocks written) is similar to physical writes in V$sysstat;
    • The data read (read better by the cache) is handled by the service process. Write from buffer cache can only be performed by DBWR, which is processed by the service process.

V$filestat the connection column in

Column View Joined column (s)

-----------                                   -------------------------                  -------------------------

file# Dba_data_files file_id

file# V$datafile file#

Example:

1. Obtain data file physical read-write and data block read and write information:

Select Df.tablespace_name Name,

Df.file_name "File",

F.phyrds Pyr,

F.PHYBLKRD PBR,

F.phywrts Pyw,

F.phyblkwrt PBW

From V$filestat F, dba_data_files df where f.file# = df.file_id

Order BY Df.tablespace_name;

Note: Although the read and write times for Oracle records are very accurate, if the database is running on a UNIX file system (UFS) It may not be possible to perform real disk reads and writes, for example, the read times may not be real disk read, but a UFS cache. However, the number of bare device read and write should be more accurate.

Learning Dynamic Performance Table (9)--v$filestat

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.