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

ASF GitHub Bot commented on FLINK-6469:
---------------------------------------

Github user yanghua commented on a diff in the pull request:

    https://github.com/apache/flink/pull/5448#discussion_r193277880
  
    --- Diff: docs/_includes/generated/task_manager_configuration.html ---
    @@ -84,13 +84,13 @@
             </tr>
             <tr>
                 <td><h5>taskmanager.memory.segment-size</h5></td>
    -            <td style="word-wrap: break-word;">32768</td>
    -            <td>Size of memory buffers used by the network stack and the 
memory manager (in bytes).</td>
    +            <td style="word-wrap: break-word;">"32768"</td>
    +            <td>Size of memory buffers used by the network stack and the 
memory manager.</td>
             </tr>
             <tr>
                 <td><h5>taskmanager.memory.size</h5></td>
    -            <td style="word-wrap: break-word;">-1</td>
    -            <td>Amount of memory to be allocated by the task manager's 
memory manager (in megabytes). If not set, a relative fraction will be 
allocated.</td>
    +            <td style="word-wrap: break-word;">"-1"</td>
    --- End diff --
    
    currently, every place we use the value of config item 
`taskmanager.memory.size`, will compare with the default value "-1", if yes, 
will not use the parser, so there is no problem now. But I think the suggestion 
from @zentol  is good. What's your opinion? @StephanEwen 


> Configure Memory Sizes with units
> ---------------------------------
>
>                 Key: FLINK-6469
>                 URL: https://issues.apache.org/jira/browse/FLINK-6469
>             Project: Flink
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Stephan Ewen
>            Assignee: vinoyang
>            Priority: Major
>
> Currently, memory sizes are configured by pure numbers, the interpretation is 
> different from configuration parameter to parameter.
> For example, heap sizes are configured in megabytes, network buffer memory is 
> configured in bytes, alignment thresholds are configured in bytes.
> I propose to configure all memory parameters the same way, with units similar 
> to time. The JVM itself configured heap size similarly: {{Xmx5g}} or 
> {{Xmx2000m}}.
> {code}
> 10000  -> bytes
> 10 kb
> 64 mb
> 1 gb
> ...
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to