Hi Valentin

TL/DR; How is data evicted from swap then?

I know this is an old issue, but I am also trying to understand the swap
feature.

This may be outdated by now due to the addition of Native Persistence, but I
have a use case where having swap instead of native persistence would be
ideal.

I first thought that the off-heap storage was defined per dataregion, and
the data retained in RAM would be limited by the XX:MaxDirectMemorySize, the
rest would be written to swap.

Now I al really confused, so now my question is now, how to I get the data
off swap?
I don't see anything related to eviction of data from the cache that was
written to swap... plus does it even make sense to have evicted data in
swap?


vkulichenko wrote
> Basically, swap space is another storage layer. You have on-heap, off-heap
> and then swap. So in case of on-heap mode only entry will be written in
> swap when it's evicted from cache due to eviction policy. With off-heap
> enabled it will be written to swap when it's evicted from there due to
> off-heap memory limit.





--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Reply via email to