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

Szilard Nemeth commented on YARN-9370:
--------------------------------------

Hi [~yeshavora]!

I agree with Eric on using slf4j format strings in order to have improved 
performance. Using StringBuilders can be costly.

> Better logging in recoverAssignedGpus in class GpuResourceAllocator
> -------------------------------------------------------------------
>
>                 Key: YARN-9370
>                 URL: https://issues.apache.org/jira/browse/YARN-9370
>             Project: Hadoop YARN
>          Issue Type: Improvement
>            Reporter: Szilard Nemeth
>            Assignee: Yesha Vora
>            Priority: Trivial
>              Labels: newbie, newbie++
>         Attachments: YARN-9370.001.patch, YARN-9370.002.patch, 
> YARN-9370.003.patch
>
>
> The last line of 
> org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.resources.gpu.GpuResourceAllocator#recoverAssignedGpus
>  is this: 
> {code:java}
> usedDevices.put(gpuDevice, containerId);
> {code}
> We should have an info (or if not info, at least a debug) level log to 
> indicate that a container is allocated to a GPU device during recovery. 
> Please also check recovery related code, maybe there can be some room for 
> improvement around logging. 



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

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org

Reply via email to