You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Jason Lowe (JIRA)" <ji...@apache.org> on 2015/11/19 16:58:10 UTC

[jira] [Commented] (YARN-4374) RM scheduler UI rounds user limit factor

    [ https://issues.apache.org/jira/browse/YARN-4374?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15013742#comment-15013742 ] 

Jason Lowe commented on YARN-4374:
----------------------------------

I don't know the full history behind why %.1f was used, but I think it may be to help hide single-precision floating point precision problems.  For example:
{noformat}
$ python -c "print repr(0.1)"
0.10000000000000001
{noformat}

So we may still want to have some reasonable limit on the precision we will attempt to show on the UI to hide the annoying effects like the example above.  It looks like %.1f is hiding too much.  Maybe %.3f is more reasonable?  We're already treating other percentages rendered in the UI effectively as %.3f once we account for the scale by 100.

> RM scheduler UI rounds user limit factor
> ----------------------------------------
>
>                 Key: YARN-4374
>                 URL: https://issues.apache.org/jira/browse/YARN-4374
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Chang Li
>            Assignee: Chang Li
>         Attachments: Screenshot1.png, YARN-4374.patch
>
>
> RM scheduler UI rounds user limit factor, such as from  0.25 up to 0.3



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)