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

"Out of memory" with large files #183

Open
philipdexter opened this issue Jul 14, 2016 · 2 comments
Open

"Out of memory" with large files #183

philipdexter opened this issue Jul 14, 2016 · 2 comments

Comments

@philipdexter
Copy link
Contributor

Is there a maximum supported size for files? I get the following error when trying to ls a file with size of 1.5gb:

fs9p [DEBUG] S ((tag (1))
                               (payload
                                (Err
                                 ((ename "Out of memory") (errno ())))))

With a slightly smaller file (700mb) I get the following error:

fs9p [DEBUG] S ((tag (1))
                                     (payload
                                      (Err
                                       ((ename
                                         "Unix.Unix_error(Unix.EACCES, \"open\", \"/data/.git/objects/pack/pack-5b5629393a4b074d789894c51cc237f0cc1232f2.idx\")")
                                        (errno ())))))

Smaller files I can successfully ls and cat

@talex5
Copy link
Contributor

talex5 commented Jul 14, 2016

ls in 9p needs to get the size of each file, which it currently does by reading the file. I've now added support in ocaml-git for reading the size directly: mirage/ocaml-git#144
This needs to be added to Irmin so DataKit can use it.

We also need a streaming interface in Irmin and Git to handle large files. Any plans for this @samoht?

@samoht
Copy link
Member

samoht commented Jul 14, 2016

We also need a streaming interface in Irmin and Git to handle large files. Any plans for this @samoht?

That's a very good idea: mirage/ocaml-git#33

avsm added a commit to avsm/datakit that referenced this issue Jan 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants