You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Arun C Murthy (JIRA)" <ji...@apache.org> on 2010/08/10 18:41:17 UTC

[jira] Created: (HDFS-1338) Improve TestDFSIO

Improve TestDFSIO
-----------------

                 Key: HDFS-1338
                 URL: https://issues.apache.org/jira/browse/HDFS-1338
             Project: Hadoop HDFS
          Issue Type: Improvement
            Reporter: Arun C Murthy


Currently the read test in TestDFSIO benchmark just opens a large side file and measures the read performance. The MR scheduler has no opportunity to do *any* optimization for the TestDFSIO MR application. The side-effect of this is that it is *very* hard to do any meaningful analysis of the results of the benchmark i.e. to check if node-local or rack-local or off-switch read performance improved/degraded.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HDFS-1338) Improve TestDFSIO

Posted by "Rajesh Balamohan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HDFS-1338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12898331#action_12898331 ] 

Rajesh Balamohan commented on HDFS-1338:
----------------------------------------

I am on vacation from 13-Aug - 15-Aug. I do not have internet access during this time.  Please check with my manager sriguru@ for any urgent issues.

~Rajesh.B



> Improve TestDFSIO
> -----------------
>
>                 Key: HDFS-1338
>                 URL: https://issues.apache.org/jira/browse/HDFS-1338
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: test
>            Reporter: Arun C Murthy
>         Attachments: TestDFSIOparser_y0.20.patch
>
>
> Currently the read test in TestDFSIO benchmark just opens a large side file and measures the read performance. The MR scheduler has no opportunity to do *any* optimization for the TestDFSIO MR application. The side-effect of this is that it is *very* hard to do any meaningful analysis of the results of the benchmark i.e. to check if node-local or rack-local or off-switch read performance improved/degraded.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HDFS-1338) Improve TestDFSIO

Posted by "Tsz Wo (Nicholas), SZE (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HDFS-1338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12897071#action_12897071 ] 

Tsz Wo (Nicholas), SZE commented on HDFS-1338:
----------------------------------------------

> ... The MR scheduler has no opportunity to do any optimization for the TestDFSIO MR application. ...

I might be wrong: I think the original design of TestDFSIO is to measure DFS IO but not MR scheduler or other MR component.  Would you consider to have a separated TestMRIO benchmark for MR?

> Improve TestDFSIO
> -----------------
>
>                 Key: HDFS-1338
>                 URL: https://issues.apache.org/jira/browse/HDFS-1338
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Arun C Murthy
>
> Currently the read test in TestDFSIO benchmark just opens a large side file and measures the read performance. The MR scheduler has no opportunity to do *any* optimization for the TestDFSIO MR application. The side-effect of this is that it is *very* hard to do any meaningful analysis of the results of the benchmark i.e. to check if node-local or rack-local or off-switch read performance improved/degraded.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HDFS-1338) Improve TestDFSIO

Posted by "Tsz Wo (Nicholas), SZE (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HDFS-1338?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tsz Wo (Nicholas), SZE updated HDFS-1338:
-----------------------------------------

    Component/s: test

> Improve TestDFSIO
> -----------------
>
>                 Key: HDFS-1338
>                 URL: https://issues.apache.org/jira/browse/HDFS-1338
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: test
>            Reporter: Arun C Murthy
>         Attachments: TestDFSIOparser_y0.20.patch
>
>
> Currently the read test in TestDFSIO benchmark just opens a large side file and measures the read performance. The MR scheduler has no opportunity to do *any* optimization for the TestDFSIO MR application. The side-effect of this is that it is *very* hard to do any meaningful analysis of the results of the benchmark i.e. to check if node-local or rack-local or off-switch read performance improved/degraded.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HDFS-1338) Improve TestDFSIO

Posted by "Hong Tang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HDFS-1338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12896997#action_12896997 ] 

Hong Tang commented on HDFS-1338:
---------------------------------

I think the goal of TestDFSIO is to benchmark the peak HDFS throughput under typical MR usage pattern. This means:
- Files should be replicated.
- Files should be spread to nodes relatively evenly. (Run one map per node on the cluster, and writes out data evenly.)
- Locality information should be exposed to the MR framework correctly. (Should just use FileInputFormat instead of writing a side file.)
- The amount of dataset should not fit in OS buffer cache. (Configure the benchmark such that total amount of data > total RAM).
- Throughput should be aggregated as a time series and we should ignore the ramp up and cool down phase of the execution. (Output of each map should be time series of counters of bytes read so far. The reporting may calculate the max and average of the mid-1/3 of the time series).
- We should minimize the variations of MR scheduling. (Run one wave of maps, increase block size so that each map runs in at least 20 to 30 seconds). 

> Improve TestDFSIO
> -----------------
>
>                 Key: HDFS-1338
>                 URL: https://issues.apache.org/jira/browse/HDFS-1338
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Arun C Murthy
>
> Currently the read test in TestDFSIO benchmark just opens a large side file and measures the read performance. The MR scheduler has no opportunity to do *any* optimization for the TestDFSIO MR application. The side-effect of this is that it is *very* hard to do any meaningful analysis of the results of the benchmark i.e. to check if node-local or rack-local or off-switch read performance improved/degraded.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HDFS-1338) Improve TestDFSIO

Posted by "Tsz Wo (Nicholas), SZE (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HDFS-1338?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tsz Wo (Nicholas), SZE updated HDFS-1338:
-----------------------------------------

    Attachment: TestDFSIOparser_y0.20.patch

TestDFSIOparser_y0.20.patch: a small program to parse TestDFSIO output.

> Improve TestDFSIO
> -----------------
>
>                 Key: HDFS-1338
>                 URL: https://issues.apache.org/jira/browse/HDFS-1338
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Arun C Murthy
>         Attachments: TestDFSIOparser_y0.20.patch
>
>
> Currently the read test in TestDFSIO benchmark just opens a large side file and measures the read performance. The MR scheduler has no opportunity to do *any* optimization for the TestDFSIO MR application. The side-effect of this is that it is *very* hard to do any meaningful analysis of the results of the benchmark i.e. to check if node-local or rack-local or off-switch read performance improved/degraded.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HDFS-1338) Improve TestDFSIO

Posted by "Konstantin Shvachko (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HDFS-1338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12897070#action_12897070 ] 

Konstantin Shvachko commented on HDFS-1338:
-------------------------------------------

DFSIO benchmark is designed to measure HDFS data transfer performance only.
TestDFSIO is not intended to benchmark typical MR usage pattern.
TestDFSIO intentionally avoids any overhead or optimizations induced by MR framework.
The MR scheduler should not be able to do any optimization for TestDFSIO.
It's a simple and straightforward benchmark, I'd prefer to keep it that way.

It seems you are talking about a different benchmark, which will allow to measure the MR framework optimizations. This makes sense, and it is very sad that we still don't have any benchmarks dedicated to this area, if I don't miss anything. I think DFSIO framework can be used for this new benchmark.

What are the main objectives for the new benchmark? As Arun proposed, it should be able to distinguish between node-local, rack-local and off-switch data transfers. Anything else?

In my view Hong's bullet points are well formulated practices of running DFSIO on a cluster to make the results meaningful.
I'd add one thing: turn of logging.

TestDFSIO is a part of mapreduce now. So this jira should rather be filed there. We can keep the discussion here, and create a MR jira later to commit the code once the a patch is ready.

> Improve TestDFSIO
> -----------------
>
>                 Key: HDFS-1338
>                 URL: https://issues.apache.org/jira/browse/HDFS-1338
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Arun C Murthy
>
> Currently the read test in TestDFSIO benchmark just opens a large side file and measures the read performance. The MR scheduler has no opportunity to do *any* optimization for the TestDFSIO MR application. The side-effect of this is that it is *very* hard to do any meaningful analysis of the results of the benchmark i.e. to check if node-local or rack-local or off-switch read performance improved/degraded.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HDFS-1338) Improve TestDFSIO

Posted by "Hong Tang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HDFS-1338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12897066#action_12897066 ] 

Hong Tang commented on HDFS-1338:
---------------------------------

More thoughts:
- I'd correct myself that we should launch sufficient writers so that # of concurrent IO operations are more than # of physical disks. I'd suggest the ratio to be between 1.5 to 2. For instance, if we have 4 disks per node, and rep-degree = 3. Then we should launch two DFS writers per node.
- Similar principle should apply to reader side too. We should have sufficient map slots to allow the # of readers to be 1.5x to 2x of the # of physical drivers. Again, with 4 disks per node, we may need 6 map slots. (And each map should read one block of data instead of a whole file.)

> Improve TestDFSIO
> -----------------
>
>                 Key: HDFS-1338
>                 URL: https://issues.apache.org/jira/browse/HDFS-1338
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Arun C Murthy
>
> Currently the read test in TestDFSIO benchmark just opens a large side file and measures the read performance. The MR scheduler has no opportunity to do *any* optimization for the TestDFSIO MR application. The side-effect of this is that it is *very* hard to do any meaningful analysis of the results of the benchmark i.e. to check if node-local or rack-local or off-switch read performance improved/degraded.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HDFS-1338) Improve TestDFSIO

Posted by "Arun C Murthy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HDFS-1338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12897137#action_12897137 ] 

Arun C Murthy commented on HDFS-1338:
-------------------------------------

{quote}
DFSIO benchmark is designed to measure HDFS data transfer performance only.
TestDFSIO is not intended to benchmark typical MR usage pattern.
TestDFSIO intentionally avoids any overhead or optimizations induced by MR framework.
{quote}

A benchmark should be something we use to reason about a particular aspect of the framework, in this case performance.

The point I'm trying to make is that TestDFSIO, as it stands, is formulated in a way which is impossible to reason about its results. I don't particularly care how we implement it and I agree it shouldn't be constrained by the vagaries of the Map-Reduce scheduler. However, we do need a benchmark which does node-local, rack-local, off-switch reads and writes in a predictable manner so that when we notice a difference in the results of the benchmark we are in position to reason about it.

> Improve TestDFSIO
> -----------------
>
>                 Key: HDFS-1338
>                 URL: https://issues.apache.org/jira/browse/HDFS-1338
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Arun C Murthy
>
> Currently the read test in TestDFSIO benchmark just opens a large side file and measures the read performance. The MR scheduler has no opportunity to do *any* optimization for the TestDFSIO MR application. The side-effect of this is that it is *very* hard to do any meaningful analysis of the results of the benchmark i.e. to check if node-local or rack-local or off-switch read performance improved/degraded.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HDFS-1338) Improve TestDFSIO

Posted by "Arun C Murthy (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HDFS-1338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12896935#action_12896935 ] 

Arun C Murthy commented on HDFS-1338:
-------------------------------------

Some possible enhancements we could aim for, under certain assumptions, are:

# Assume that the cluster is empty and TestDFSIO is the *only* application running
# Get all the nodes in the cluster
# Implement a custom input-split to write only 1 replica to a subset of the nodes in the cluster
# Read the replicas in a manner that ensures equal node-local, rack-local and off-switch replicas.

Thoughts?

> Improve TestDFSIO
> -----------------
>
>                 Key: HDFS-1338
>                 URL: https://issues.apache.org/jira/browse/HDFS-1338
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Arun C Murthy
>
> Currently the read test in TestDFSIO benchmark just opens a large side file and measures the read performance. The MR scheduler has no opportunity to do *any* optimization for the TestDFSIO MR application. The side-effect of this is that it is *very* hard to do any meaningful analysis of the results of the benchmark i.e. to check if node-local or rack-local or off-switch read performance improved/degraded.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.