summaryrefslogtreecommitdiff
path: root/scripts/manifest_check_test.py
diff options
context:
space:
mode:
author Lukacs T. Berki <lberki@google.com> 2022-10-31 09:01:34 +0000
committer Lukacs T. Berki <lberki@google.com> 2022-10-31 16:04:13 +0000
commitbc5f7317910356fb699f4df29e3a47cb1546c756 (patch)
tree39bd5272a779d9636ed5ed138db178a9a3a62d31 /scripts/manifest_check_test.py
parent2b8462997a46da3087670154ccda89eb41e0be85 (diff)
Multithread symlink forest removal.
This is a second attempt at aosp/2273288 which got rolled back because it turned out that: 1. We make ~120K symlinks in AOSP (!), all of which need to be deleted 2. System calls are sometimes slow 3. Golang spawns a new OS-level thread for each blocking system calls to keep cores busy All this together means that we sometimes had 10K system calls in flight, which meant 10K OS-level threads, which is when Go gives up and says "I created too many threads, please help". The fix is to move the system calls into a pool of goroutines, which soon end up on a pool of threads (since they mostly do blocking system calls) Test: Presubmits. Change-Id: Ia9aefff3b0ed373f09bb6c8b2ec1d8b0f00b213b
Diffstat (limited to 'scripts/manifest_check_test.py')
0 files changed, 0 insertions, 0 deletions