Freeing up RAM/cache

classic Classic list List threaded Threaded
4 messages Options
Kamlesh Joshi Kamlesh Joshi
Reply | Threaded
Open this post in threaded view
|

Freeing up RAM/cache

Hi Igniters,

 

Is there any way, to release main memory? I just want to remove few entries from RAM (and not from the persistence). If I need data again I should be able to retrieve it from persistence.

 

I have already gone through the Expiration policy for the same. But, can we set Expiration policy at the runtime or do we need to re-create the caches?

 

Thanks and Regards,

Kamlesh Joshi

 


"Confidentiality Warning: This message and any attachments are intended only for the use of the intended recipient(s), are confidential and may be privileged. If you are not the intended recipient, you are hereby notified that any review, re-transmission, conversion to hard copy, copying, circulation or other use of this message and any attachments is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return email and delete this message and any attachments from your system.

Virus Warning: Although the company has taken reasonable precautions to ensure no viruses are present in this email. The company cannot accept responsibility for any loss or damage arising from the use of this email or attachment."

Denis Mekhanikov Denis Mekhanikov
Reply | Threaded
Open this post in threaded view
|

Re: Freeing up RAM/cache

There is no manual way to evict data from memory. 
You can limit the size of your data region, so that if this limit is reached, then some pages will be dropped from memory automatically and replaced with new ones.

Denis
On 10 Oct 2019, 18:41 +0300, Kamlesh Joshi <[hidden email]>, wrote:

Hi Igniters,

 

Is there any way, to release main memory? I just want to remove few entries from RAM (and not from the persistence). If I need data again I should be able to retrieve it from persistence.

 

I have already gone through the Expiration policy for the same. But, can we set Expiration policy at the runtime or do we need to re-create the caches?

 

Thanks and Regards,

Kamlesh Joshi

 


"Confidentiality Warning: This message and any attachments are intended only for the use of the intended recipient(s), are confidential and may be privileged. If you are not the intended recipient, you are hereby notified that any review, re-transmission, conversion to hard copy, copying, circulation or other use of this message and any attachments is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return email and delete this message and any attachments from your system.

Virus Warning: Although the company has taken reasonable precautions to ensure no viruses are present in this email. The company cannot accept responsibility for any loss or damage arising from the use of this email or attachment."

Kamlesh Joshi Kamlesh Joshi
Reply | Threaded
Open this post in threaded view
|

RE: [External]Re: Freeing up RAM/cache

Thanks for the response Denis ! That answers my one question. Could you please suggest on below question regarding expiration policy ?

 

Thanks and Regards,

Kamlesh Joshi

 

From: Denis Mekhanikov <[hidden email]>
Sent: Thursday, October 10, 2019 10:31 PM
To: [hidden email]; [hidden email]
Subject: [External]Re: Freeing up RAM/cache

 

The e-mail below is from an external source. Please do not open attachments or click links from an unknown or suspicious origin.


There is no manual way to evict data from memory. 

You can limit the size of your data region, so that if this limit is reached, then some pages will be dropped from memory automatically and replaced with new ones.

This process is called page replacement. You can read about it here: <a href="https://cwiki.apache.org/confluence/display/IGNITE/Ignite&#43;Durable&#43;Memory&#43;-&#43;under&#43;the&#43;hood#IgniteDurableMemory-underthehood-Pagereplacement%28rotationwithdisk%29">https://cwiki.apache.org/confluence/display/IGNITE/Ignite+Durable+Memory+-+under+the+hood#IgniteDurableMemory-underthehood-Pagereplacement%28rotationwithdisk%29

 

Denis

On 10 Oct 2019, 18:41 +0300, Kamlesh Joshi <[hidden email]>, wrote:

Hi Igniters,

 

Is there any way, to release main memory? I just want to remove few entries from RAM (and not from the persistence). If I need data again I should be able to retrieve it from persistence.

 

I have already gone through the Expiration policy for the same. But, can we set Expiration policy at the runtime or do we need to re-create the caches?

 

Thanks and Regards,

Kamlesh Joshi

 


"Confidentiality Warning: This message and any attachments are intended only for the use of the intended recipient(s), are confidential and may be privileged. If you are not the intended recipient, you are hereby notified that any review, re-transmission, conversion to hard copy, copying, circulation or other use of this message and any attachments is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return email and delete this message and any attachments from your system.

Virus Warning: Although the company has taken reasonable precautions to ensure no viruses are present in this email. The company cannot accept responsibility for any loss or damage arising from the use of this email or attachment."


"Confidentiality Warning: This message and any attachments are intended only for the use of the intended recipient(s), are confidential and may be privileged. If you are not the intended recipient, you are hereby notified that any review, re-transmission, conversion to hard copy, copying, circulation or other use of this message and any attachments is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return email and delete this message and any attachments from your system.

Virus Warning: Although the company has taken reasonable precautions to ensure no viruses are present in this email. The company cannot accept responsibility for any loss or damage arising from the use of this email or attachment."

Denis Mekhanikov Denis Mekhanikov
Reply | Threaded
Open this post in threaded view
|

RE: [External]Re: Freeing up RAM/cache

Expiry policy is a part of cache configuration that cannot be changed in runtime. So, in order to add expiry policy for an existing cache, you need to drop this cache and create it anew with changed configuration.
But expiry policy doesn’t seem to be useful in your situation anyway. It removes data from both persistence and memory.
If you don’t want to lose expired entries, you’ll need to tune the size of the data region and rely on page replacement or use 3rd party persistence with read-through mode enabled and configure an expiry policy.

Denis
On 14 Oct 2019, 13:30 +0300, Kamlesh Joshi <[hidden email]>, wrote:

Thanks for the response Denis ! That answers my one question. Could you please suggest on below question regarding expiration policy ?

 

Thanks and Regards,

Kamlesh Joshi

 

From: Denis Mekhanikov <[hidden email]>
Sent: Thursday, October 10, 2019 10:31 PM
To: [hidden email]; [hidden email]
Subject: [External]Re: Freeing up RAM/cache

 

The e-mail below is from an external source. Please do not open attachments or click links from an unknown or suspicious origin.


There is no manual way to evict data from memory. 

You can limit the size of your data region, so that if this limit is reached, then some pages will be dropped from memory automatically and replaced with new ones.

 

Denis

On 10 Oct 2019, 18:41 +0300, Kamlesh Joshi <[hidden email]>, wrote:

Hi Igniters,

 

Is there any way, to release main memory? I just want to remove few entries from RAM (and not from the persistence). If I need data again I should be able to retrieve it from persistence.

 

I have already gone through the Expiration policy for the same. But, can we set Expiration policy at the runtime or do we need to re-create the caches?

 

Thanks and Regards,

Kamlesh Joshi

 


"Confidentiality Warning: This message and any attachments are intended only for the use of the intended recipient(s), are confidential and may be privileged. If you are not the intended recipient, you are hereby notified that any review, re-transmission, conversion to hard copy, copying, circulation or other use of this message and any attachments is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return email and delete this message and any attachments from your system.

Virus Warning: Although the company has taken reasonable precautions to ensure no viruses are present in this email. The company cannot accept responsibility for any loss or damage arising from the use of this email or attachment."


"Confidentiality Warning: This message and any attachments are intended only for the use of the intended recipient(s), are confidential and may be privileged. If you are not the intended recipient, you are hereby notified that any review, re-transmission, conversion to hard copy, copying, circulation or other use of this message and any attachments is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return email and delete this message and any attachments from your system.

Virus Warning: Although the company has taken reasonable precautions to ensure no viruses are present in this email. The company cannot accept responsibility for any loss or damage arising from the use of this email or attachment."