Hi Jason,

I think you are right, taskmanager.memory.framework.off-heap.size is also
subtracted, at least according to the source code [1].
Would you like to create a jira issue?

[1]
https://github.com/apache/flink/blob/4cfdc314e39974eaf089ffe0512893b01643ed2e/flink-runtime/src/main/java/org/apache/flink/runtime/util/config/memory/taskmanager/TaskExecutorFlinkMemoryUtils.java#L181

Regards,
Roman


On Thu, Jun 10, 2021 at 2:51 PM Jason Lee <jasonlee1...@163.com> wrote:

>
> Hello everyone
>
> When I studied the memory model of TaskManager, I found that there is a
> problem in the official document, which is the description of
> taskmanager.memory.task.heap.size is incorrect. (
> https://ci.apache.org/projects/flink/flink-docs-release-1.13/docs/deployment/config/#taskmanager-memory-task-heap-size
> )
>
> According to the official memory model, I think the correct description
> should be that task Heap Memory size for TaskExecutors. This is the size of
> JVM heap memory reserved for tasks. If not specified, it will be derived as
> Total Flink Memory minus Framework Heap Memory, Framework Off-Heap Heap
> Memory, Task Off-Heap Memory, Managed Memory and Network Memory. However,
> in the official document, the Framework Off-Heap Heap Memory should be
> subtracted.
>
>  I see all versions of the documents are like this,like Flink 1.10, Flink
> 1.12, Flink 1.13. I am not sure whether it is a mistake in my understanding
> or an error in the official document, and I don’t know whether I should
> raise a Jira for this issue, so I send a mailing group to discuss it with
> you .
>
> Best,
> JasonLee
> JasonLee
> jasonlee1...@163.com
>
> <https://maas.mail.163.com/dashi-web-extend/html/proSignature.html?ftlId=1&name=%E6%9D%8E%E9%97%AF&uid=jasonlee1781%40163.com&iconUrl=https%3A%2F%2Fmail-online.nosdn.127.net%2Fqiyelogo%2FdefaultAvatar.png&items=%5B%22jasonlee1781%40163.com%22%5D>
> 签名由 网易邮箱大师 <https://mail.163.com/dashi/dlpro.html?from=mail81> 定制
>
>

Reply via email to