Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 11-17-2005
kent kent is offline
Registered User
 
Name: quhao
Organization: OPI
Project: Testing
 
Join Date: Jul 2005
Posts: 22
Is Evictor's DbEnvCheckpoint thread nessary?

I find the DbEnvCheckpoint thread caused the process wasting so much cpu's iowait even to 50% every 2 miniutes(default), this badly decreases the process's performance. I want to know If I can set DbEnvCheckpointPeriod as zero to disable the checking thread? Is there and bad affecting if I do this?
__________________
Best Regards,

Hao.Qu
Information Science & Engineering
LiaoNing Institute of Technology
http://www.lnit.edu.cn/inter/index.asp

Middle Service for Web Site

Last edited by kent : 11-17-2005 at 10:50 PM.
Reply With Quote
  #2 (permalink)  
Old 11-17-2005
matthew's Avatar
matthew matthew is online now
ZeroC Staff
 
Name: Matthew Newhook
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Feb 2003
Location: NL, Canada
Posts: 1,060
Yes, disabling this would not be a good idea. The checkpointing writes a "well known place" in the transaction log file. This transaction log file is used to reconstruct the state of the database in the event of a failure (such as OS crash, or application crash). This is known as database recovery.

Since all information is needed from the last checkpoint to recover, if you never checkpoint you cannot remove any of the transaction logs. This means for a long running application you'll have very large transaction logs. In addition, it means that recovery will take a very very long time since there will be a huge number of transactions to replay.
Reply With Quote
  #3 (permalink)  
Old 11-18-2005
kent kent is offline
Registered User
 
Name: quhao
Organization: OPI
Project: Testing
 
Join Date: Jul 2005
Posts: 22
Thanks for your reply!

I have set DBEnv CheckpointPeriod as 600(10 minutes), and PeriodicCheckpointMinSize as 1024k. This improves the application's performance, and decreases cpu's iowait a bit. But when doing TXN checking, iowait is still 30%-50% and last about 10 seconds. This looks not very graceful. Can you give me any suggest about tuning this? My application is using Evitor to store a lot of objects that may be modified frequently, so the Evictor's saving thread is always busy saving modified objects. I set SavePeriod as 3 minutes, SaveSizeTrigger as 100. Thanks!
__________________
Best Regards,

Hao.Qu
Information Science & Engineering
LiaoNing Institute of Technology
http://www.lnit.edu.cn/inter/index.asp

Middle Service for Web Site
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
About creating a new property for Evictor's page size. kent Comments 1 12-12-2005 10:49 AM
Evictor's saving thread? kent Help Center 2 10-26-2005 06:29 AM
a thread problem fw_csha Help Center 2 05-15-2005 06:41 AM
How re-start the thread level Help Center 1 01-17-2005 01:06 PM
Ice::Thread and GUI with Qt catalin Help Center 5 09-08-2004 11:20 AM


All times are GMT -4. The time now is 10:13 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.