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

mmap raises an error Resource temporarily unavailable when reading "indices.bin" of dataset #14

Open
a1bc2def6g opened this issue Aug 29, 2023 · 2 comments

Comments

@a1bc2def6g
Copy link

Hey, I run the /gnn_lab/example/samgraph/train_gcn.py on reddit dataset after successfully installing the samgraph, however, the system raises an error Resource temporarily unavailable in the line 133 of /gnn_lab/samgraph/common/engine.cc but the other data
can run Tensor::FromMmap. I cannot fix this bug, could you help me? Thanks!

@molamooo
Copy link
Contributor

molamooo commented Aug 29, 2023

Tensor::FromMmap locks mapped memory region (source code):

  void *data = mmap(NULL, nbytes, PROT_READ, MAP_SHARED | MAP_FILE | MAP_LOCKED, fd, 0);
  //                                                                 ^^^^^^^^^^

This requires sufficient capacity of your Linux system's limit on memlock. Follow GNNLab's readme to check and increase this limit.

@a1bc2def6g
Copy link
Author

Tensor::FromMmap locks mapped memory region (source code):

  void *data = mmap(NULL, nbytes, PROT_READ, MAP_SHARED | MAP_FILE | MAP_LOCKED, fd, 0);
  //                                                                 ^^^^^^^^^^

This requires sufficient capacity of your Linux system's limit on memlock. Follow GNNLab's readme to check and increase this limit.

Great thanks to your reply, I have fixed this bug!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants