Ray object sizes

I’m currently running into an issue where my ray object store runs out of memory, so I’m investigating ray memory to find out what’s taking up so much space.

In ray memory, I can see that an actor call on line 213 of my code takes up 68701298 bytes. On that line, I have a remote actor call. When running sys.getsizeof of the value that stores the result of the actor call, it says 57 bytes. Why is there this difference in size?

Maybe your object points to the underlying objects in the shared memory that are not calculated by sys.getsizeof

https://nedbatchelder.com/blog/202002/sysgetsizeof_is_not_what_you_want.html

1 Like