Closed mikejiang closed 6 years ago
@mikejiang - can you provide the code that led up to the exception?
f_remote = h5pyd.File("/home/wjiang2/10x", "r")#bug in h5pyd: mode r is still writable
ds_remote = f_remote["/data"]
xstart, xend = 15986, 25986
ystart, yend = 59448, 69448
vals3 = ds_remote[xstart:xend, ystart:yend]
This was failing because the selection size of 10000^2 * 4 ~ 400MB caused the container to run out of memory.
I've put in a check on the server that sends a 413 response (request too large) if the request size is too large (set to 100MB for now).
When h5pyd gets the 413, it breaks up the read into smaller requests.
Looks like the above code is working now.
It worked ok for the smaller region size.