[
https://issues.apache.org/jira/browse/MAPREDUCE-5785?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14221773#comment-14221773
]
Karthik Kambatla commented on MAPREDUCE-5785:
---------------------------------------------
Thanks for your review, Sandy. I just committed this to trunk.
I think we should commit this to branch-2 as well:
# The patch doesn't affect users who set java.opts
# For users that set java.opts but without -Xmx, this would limit their heap
size and could lead to task failures. I am not too concerned about this, as we
expect them to set java.opts and anyway the container would have been killed by
YARN if physical memory constraints are enforced.
# For users that don't set java.opts, this increases the JVM size from 200 MB
to 820 MB. This should be okay for most jobs; streaming tasks might end up
needing more memory because of their java process taking their total usage over
the container size. Even here, this would likely happen only for those tasks
relying on aggressive GC to keep the java.opts under 200 MB.
All in all, I believe the likely cases affect by this is small enough that it
should be okay to include this in a release, provided we release-note
carefully.
[~aw], [~jlowe], [~sandyr] - thoughts?
> Derive heap size or mapreduce.*.memory.mb automatically
> -------------------------------------------------------
>
> Key: MAPREDUCE-5785
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-5785
> Project: Hadoop Map/Reduce
> Issue Type: New Feature
> Components: mr-am, task
> Reporter: Gera Shegalov
> Assignee: Gera Shegalov
> Fix For: 3.0.0
>
> Attachments: MAPREDUCE-5785.v01.patch, MAPREDUCE-5785.v02.patch,
> MAPREDUCE-5785.v03.patch, mr-5785-4.patch, mr-5785-5.patch, mr-5785-6.patch
>
>
> Currently users have to set 2 memory-related configs per Job / per task type.
> One first chooses some container size map reduce.\*.memory.mb and then a
> corresponding maximum Java heap size Xmx < map reduce.\*.memory.mb. This
> makes sure that the JVM's C-heap (native memory + Java heap) does not exceed
> this mapreduce.*.memory.mb. If one forgets to tune Xmx, MR-AM might be
> - allocating big containers whereas the JVM will only use the default
> -Xmx200m.
> - allocating small containers that will OOM because Xmx is too high.
> With this JIRA, we propose to set Xmx automatically based on an empirical
> ratio that can be adjusted. Xmx is not changed automatically if provided by
> the user.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)