-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Memory usage of printing DArrays #2771
Comments
Sorry this hasn't really been addressed @cpcloud, do you have a code example we can try and reproduce the issue here? There's been a lot of changes in the last year+, so this may not be an issue any more. |
Hm been a while since I've spun up Julia, let me see if I can come up with something :) |
Cc @amitm |
Should this issue be closed and moved to https://github.com/JuliaParallel/DistributedArrays.jl, or is it something that needs to be fixed in Base? |
Yes, this should be moved there - and have a specific issue opened here if there is a dependency on fixing something in Base. |
OK, moved. |
This uses so much memory because of the way we do array printing in Base. The way we print matrices could be made more efficient. |
It would be useful to see if #13598 helps this situation or not. |
DArrays are out of Base now. |
I was playing around with
@parallel
doing the comprehension example from the recently posted videos on the Julia blog and I noticed something strange. I happened to havehtop
running at the time and I noticed that when I evaluated theDArray
at the command line (just printing itself), the amount of memory used on my machine would increase by about the number of bytes that the array takes up in memory. Just as a sanity check I tried the same thing with a regular oldArray
and it works fine.I then
grep
ed the code for "\u22ee" (the vertical dots unicode symbol) to try to find where the issue might lie inshow.jl
.The
show_vector
method ofAbstractArray
s calls theDArray
reshape
method which may be making a copy of the chunks making up the darray indarray2.jl
on line 188. I have no idea how to go about fixing this.The text was updated successfully, but these errors were encountered: