[ https://issues.apache.org/jira/browse/HDDS-1785?focusedWorklogId=275989&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-275989 ]
ASF GitHub Bot logged work on HDDS-1785: ---------------------------------------- Author: ASF GitHub Bot Created on: 12/Jul/19 14:52 Start Date: 12/Jul/19 14:52 Worklog Time Spent: 10m Work Description: adoroszlai commented on issue #1085: HDDS-1785. OOM error in Freon due to the concurrency handling URL: https://github.com/apache/hadoop/pull/1085#issuecomment-510916323 @elek @iamcaoxudong please review ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 275989) Time Spent: 0.5h (was: 20m) > OOM error in Freon due to the concurrency handling > -------------------------------------------------- > > Key: HDDS-1785 > URL: https://issues.apache.org/jira/browse/HDDS-1785 > Project: Hadoop Distributed Data Store > Issue Type: Bug > Reporter: Elek, Marton > Assignee: Doroszlai, Attila > Priority: Blocker > Labels: pull-request-available > Time Spent: 0.5h > Remaining Estimate: 0h > > HDDS-1532 modified the concurrent framework usage of Freon > (RandomKeyGenerator). > The new approach uses separated tasks (Runnable) to create the > volumes/buckets/keys. > Unfortunately it doesn't work very well in some cases. > # When Freon starts it creates an executor with fixed number of threads (10) > # The first loop submits numOfVolumes (10) VolumeProcessor tasks to the > executor > # The 10 threads starts to execute the 10 VolumeProcessor tasks > # Each VolumeProcessor tasks creates numOfBuckets (1000) BucketProcessor > tasks. All together 10000 tasks are submitted to the executor. > # The 10 threads starts to execute the first 10 BucketProcessor tasks, they > starts to create the KeyProcessor tasks: 500 000 * 10 tasks are submitted. > # At this point of the time no keys are generated, but the next 10 > BucketProcessor tasks are started to execute.. > # To execute the first key creation we should process all the > BucketProcessor tasks which means that all the Key creation tasks (10 * 1000 > * 500 000) are created and added to the executor > # Which requires a huge amount of time and memory -- This message was sent by Atlassian JIRA (v7.6.14#76016) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org