Skip to content

How to delete graph from vineyard #1317

Answered by sighingnow
fresher1chen asked this question in Q&A
Discussion options

You must be logged in to vote

import graphscope sess = graphscope.session(cluster_type="hosts", num_workers=1,vineyard_shared_mem="240G") sess.as_default() g = sess.g() g= g.add_vertices("./big_date.csv",label="xxx") g.unload()

通过 free -g 观察,g.unload() 语句执行前后,内存 used 没有变化,并没有释放内存。

Not reproducible.

free -g cannot always reflect the actual memory usage of programs, due to the complexity of modern operating system and memory allocator. Instead, you could monitor the shared memory usage of vineyard and how the usage changes before and after g.unload as follows,

  1. Loading a graph
import graphscope
from graphscope.dataset import load_ogbn_mag
g = load_ogbn_mag()
  1. Check the shared memory usage of vineyard
import vineyard
v…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@fresher1chen
Comment options

@sighingnow
Comment options

@fresher1chen
Comment options

Comment options

You must be logged in to vote
1 reply
@sighingnow
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by sighingnow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested component:python
2 participants
Converted from issue

This discussion was converted from issue #1316 on February 14, 2022 07:33.