Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Async gc. #4362

Merged
merged 11 commits into from
Jun 30, 2022
Merged

Async gc. #4362

merged 11 commits into from
Jun 30, 2022

Conversation

CPWstatic
Copy link
Contributor

@CPWstatic CPWstatic commented Jun 28, 2022

What type of PR is this?

  • bug
  • feature
  • enhancement

What problem(s) does this PR solve?

Issue(s) number:

Description:

How do you solve it?

Special notes for your reviewer, ex. impact of this fix, design document, etc:

Checklist:

Tests:

  • Unit test(positive and negative cases)
  • Function test
  • Performance test
  • N/A

Affects:

  • Documentation affected (Please add the label if documentation needs to be modified.)
  • Incompatibility (If it breaks the compatibility, please describe it and add the label.)
  • If it's needed to cherry-pick (If cherry-pick to some branches is required, please label the destination version(s).)
  • Performance impacted: Consumes more CPU/Memory

Release notes:

Clean the unused memory on background threads, this is helpful for big queries since the memory release of interim results may cost too much time. We sugguest enable async gc in analytics processing scenario.

enable_async_gc
gc_worker_size

@Sophie-Xie Sophie-Xie added ready-for-testing PR: ready for the CI test cherry-pick-v3.2 PR: need cherry-pick to this version labels Jun 29, 2022
nevermore3
nevermore3 previously approved these changes Jun 30, 2022
@codecov-commenter
Copy link

Codecov Report

Merging #4362 (d5a2c1a) into master (1644523) will increase coverage by 0.11%.
The diff coverage is 32.35%.

@@            Coverage Diff             @@
##           master    #4362      +/-   ##
==========================================
+ Coverage   84.82%   84.94%   +0.11%     
==========================================
  Files        1343     1345       +2     
  Lines      133544   133572      +28     
==========================================
+ Hits       113279   113460     +181     
+ Misses      20265    20112     -153     
Impacted Files Coverage Δ
src/common/thread/GenericThreadPool.h 45.00% <0.00%> (-11.25%) ⬇️
src/graph/gc/GC.cpp 0.00% <0.00%> (ø)
src/graph/gc/GC.h 0.00% <0.00%> (ø)
src/graph/service/GraphFlags.cpp 100.00% <ø> (ø)
src/graph/context/ExecutionContext.cpp 93.75% <75.00%> (-1.81%) ⬇️
src/graph/executor/algo/ShortestPathBase.cpp 51.63% <100.00%> (+0.64%) ⬆️
src/storage/mutate/AddEdgesProcessor.cpp 77.86% <100.00%> (+0.08%) ⬆️
src/storage/mutate/AddVerticesProcessor.cpp 86.38% <100.00%> (+0.91%) ⬆️
src/graph/session/GraphSessionManager.h 87.50% <0.00%> (-12.50%) ⬇️
src/storage/exec/IndexNode.h 93.84% <0.00%> (-6.16%) ⬇️
... and 44 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2d319e9...d5a2c1a. Read the comment docs.

@CPWstatic CPWstatic merged commit 1de182c into vesoft-inc:master Jun 30, 2022
Sophie-Xie pushed a commit that referenced this pull request Jun 30, 2022
* Add GC.

* Impl gc.

* Fix linking.

* Using thread pool.

* Using try_dequeue.

* Stop workers when destruct.

* Set default worker size to 8.

* Add repeat task for all.

* Update flags.

* Add comments.

* Fix nightly.
CPWstatic added a commit that referenced this pull request Jun 30, 2022
* enhance nightly tck test job (#4355)

* add lock when multithread access shared variable (#4360)

* Implement inner parallel procesing by using Scatter/Gather model. (#4361)

* Multi job traverse.

Some debug infos.

Multi job AppendVertices handle resp.

Multi job Project.

Enhance AppendVertices.

Multi job filter.

Fix row cnt and delete debug info.

Fix AppendV.

Add debug info.

Rm debug info.

Fix copy in traverse.

Set max_job_size to default 20.

Add runMultiJobs template.

Impl Project/Filter/AppendV.

Impl Join.

Fix double free for join.

Fix filter on GetNeighborsIter.

Fix prop iter.

Fix filter on prop iter.

Fix left join by clearing hash tabls manually.

Report error in filter.

Fix tests: the order is not guarentted in scatter gather model.

Iterates to begin out of job.

Modify the default config.

Fix appendv.

Support run multi job mode test.

Test multi job.

Rebase and compatible with single job.

* Update the logs and flags.

* Add comment.

* Fix nightly.

* Fix test.

* Fix compile.

* Fix test.

* Address comment and fix test.

Co-authored-by: Sophie <84560950+Sophie-Xie@users.noreply.github.com>

* Async gc. (#4362)

* Add GC.

* Impl gc.

* Fix linking.

* Using thread pool.

* Using try_dequeue.

* Stop workers when destruct.

* Set default worker size to 8.

* Add repeat task for all.

* Update flags.

* Add comments.

* Fix nightly.

Co-authored-by: Harris.Chu <1726587+HarrisChu@users.noreply.github.com>
Co-authored-by: jimingquan <mingquan.ji@vesoft.com>
Co-authored-by: cpw <13495049+CPWstatic@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick-v3.2 PR: need cherry-pick to this version ready-for-testing PR: ready for the CI test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants