[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
About fast restartability,why so slowly for my testing?  XML
Forum Index -> BigMemory
Author Message
lijie

journeyman

Joined: 09/04/2012 23:10:13
Messages: 19
Offline

I load 2800000 objects, time cost = 1780250 ms

Then I shutdown and restart my app, the recovery logs:

信息: Updating stored schema
2012-12-12 21:06:43 net.sf.ehcache.store.offheap.search.Slf4jLoggerFactory$Logger info
信息: Updating stored schema
2012-12-12 21:07:02 net.sf.ehcache.store.offheap.search.Slf4jLoggerFactory$Logger info
信息: Updating stored schema
2012-12-12 21:07:02 net.sf.ehcache.store.offheap.search.Slf4jLoggerFactory$Logger info
信息: Updating stored schema
2012-12-12 21:08:05 com.terracottatech.frs.recovery.RecoveryManagerImpl$ProgressLoggingFilter filter
信息: Recovery progress 10%
2012-12-12 21:08:30 net.sf.ehcache.store.offheap.search.Slf4jLoggerFactory$Logger info
信息: Updating stored schema
2012-12-12 21:09:44 com.terracottatech.frs.recovery.RecoveryManagerImpl$ProgressLoggingFilter filter
信息: Recovery progress 20%
2012-12-12 21:11:45 com.terracottatech.frs.recovery.RecoveryManagerImpl$ProgressLoggingFilter filter
信息: Recovery progress 30%
2012-12-12 21:11:55 net.sf.ehcache.store.offheap.search.Slf4jLoggerFactory$Logger info
信息: Updating stored schema
2012-12-12 21:13:26 com.terracottatech.frs.recovery.RecoveryManagerImpl$ProgressLoggingFilter filter
信息: Recovery progress 40%
2012-12-12 21:15:34 com.terracottatech.frs.recovery.RecoveryManagerImpl$ProgressLoggingFilter filter
信息: Recovery progress 50%
2012-12-12 21:17:30 com.terracottatech.frs.recovery.RecoveryManagerImpl$ProgressLoggingFilter filter
信息: Recovery progress 60%
2012-12-12 21:19:09 com.terracottatech.frs.recovery.RecoveryManagerImpl$ProgressLoggingFilter filter
信息: Recovery progress 70%
2012-12-12 21:21:05 com.terracottatech.frs.recovery.RecoveryManagerImpl$ProgressLoggingFilter filter
信息: Recovery progress 80%
2012-12-12 21:23:21 com.terracottatech.frs.recovery.RecoveryManagerImpl$ProgressLoggingFilter filter
信息: Recovery progress 90%
2012-12-12 21:24:08 net.sf.ehcache.store.offheap.search.Slf4jLoggerFactory$Logger info
信息: Updating stored schema
2012-12-12 21:25:20 com.terracottatech.frs.recovery.RecoveryManagerImpl$ProgressLoggingFilter filter
信息: Recovery progress 100%
recover cost = 1161304, cache.size = 2800000 


My pragram code snippet:
Code:
		cm = CacheManager.create();
 		Cache cache2 = cm.getCache("test");
 		if(cache2!=null && cache2.getSize()>0) {
 			return cache2;
 		}
 		ccf = new CacheConfiguration();
 		ccf.persistence(new PersistenceConfiguration().strategy(Strategy.LOCALRESTARTABLE).synchronousWrites(false));
 		ccf.setName("test");
 		ccf.setMaxEntriesLocalHeap(5000);
 		ccf.setOverflowToOffHeap(Boolean.TRUE);
 		ccf.setMaxMemoryOffHeap("20000m");
 		Searchable searchable = new Searchable();
 		//[color=red]fieldNames.length > 100[/color]
 		for(String fieldName : fieldNames) {			
 			searchable.addSearchAttribute(new SearchAttribute().name(fieldName));
 		}
 		ccf.addSearchable(searchable);
 		cache = new Cache(ccf);
 		cm.addCache(cache);
 		return cache;


Why recovery time costs so much?

Our test environment:
CPU: 64core @2.00GHz
Memory: 128G
OS:CentOS release 6.2 (Final)
jdk1.6( -XX:MaxDirectMemorySize=20480m)

Thanks.
steve

ophanim

Joined: 05/24/2006 14:22:53
Messages: 619
Offline

Hi,

Thanks for posting. Can you file a JIRA and we'll take a look at it.

http://jira.terracotta.org.

Lots of things impact recover performance including:
Disk Speed
Machine speed and load
Tuning parameters
Index count
etc

We'll reproduce and set expectations.

Want to post to this forum? Join the Terracotta Community
lijie

journeyman

Joined: 09/04/2012 23:10:13
Messages: 19
Offline

Hi,steve

I have filed at https://jira.terracotta.org/jira/browse/EHC-978

Thanks.
steve

ophanim

Joined: 05/24/2006 14:22:53
Messages: 619
Offline

Thanks! We are taking a look asap

Want to post to this forum? Join the Terracotta Community
lijie

journeyman

Joined: 09/04/2012 23:10:13
Messages: 19
Offline

Hi,
I find the issue ( https://jira.terracotta.org/jira/browse/EHC-978) have been fixed.
When will the go version 4.0 release?
Thanks.
yzhang

neo

Joined: 01/14/2013 15:47:21
Messages: 5
Offline

Hi the 4.0.0 release is actually on our website now.
You can access the downloads at
http://terracotta.org/downloads
 
Forum Index -> BigMemory
Go to:   
Powered by JForum 2.1.7 © JForum Team