473,569 Members | 2,526 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Logging And Performance


As a refresher, a description of my problem is in the message body below.

I could not get answers to all of the questions that were asked below in a
previous thread, but here is what I found out:

1. Number of LOB's inserted per hour and average size
2. Number of LOB's updated per hour and average size
3. Number of LOB's deleted per hour and average size
4. Rough estimate of the amount of non-LOB data inserted, updated, and
deleted per hour

Answer: My DBA tells me that he can not get this information. He claims that
it can be gleaned from the CRM application with some code changes. I don't
know whether this is true or not. But, I don't have this information for
you. Is my DBA mistaken here? Can he get this information from the DB?
5. Type of disk subsystem (including controller) used for log files

Answer: Here is how the disks are set up: The OS is on a mirrored set.
Everything else, including the log files and the DB are on a SCSI External
Raid 5 array.
6. Whether the disk and controller used for logging is used for anything
else (DB2 or non-DB2)

Answer: Yes it is: the log files, the DB, the backup program and backup
files and a monitoring program and files.
7. Size of log buffer

Answer: 1024 pgs of 4k
8. Size and number of log files

Answer: 15000 pgs of 4k: 7 primary & 7 Secondary
9. Number of processors

Answer: 2 processors
I hope this supplies you with enough information to be of some help.

If it is possible to log the LOB data, I have a strong notion that quite a
few of my other issues would be resolved. I just would like to know if
logging the LOB data is going to over tax the system.

My best guess is that over the course of any work day, there will be LOBs
inserted with a mazimum size range of 1 GB, at a rate of about 20 times per
hour.

I am getting conflicting information from my DBA and would like to find out
the "real" story.

Any and all help and/or suggestions is greatly appreciated.

Thanks,

John

"Mark A" <no****@nowhere .com> wrote in message
news:PL******** ************@co mcast.com...
"johnm" <jo***@matrixsg .com> wrote in message
news:11******** *****@corp.supe rnews.com...
We have an application through which users store various types of files

and
attachments in a LOB in a DB2 7.2 database. Some of these files and
attachments can reach a size of 1 GB, although most are in the 10 MB

range.
Logging is not enabled for the LOB columns in the database tables. We do a full offline backup of the DB every night. So, it appears as though, if we suffer a system problem during the day sometime, we could loose up to 24
hours of the LOB data.

We would like to recreate the tables and columns holding the LOB data so
that logging is enabled. That way, should a system failure occur, we could recover all of the LOB data by restoring the back up and then applying the log files with a roll forward. This is what we would like to do if at all possible. We currently generate log files every 15 minutes, so by enabling logging, we would suffer a maximum LOB data loss of 15 minutes.

Our primary goal, which we must accomplish due to regulatory requirements, is to limit any data loss to one hour or less.

However, we have been told that enabling logging for the LOB tables and
columns will significantly impact the performance of the system in a very negative way.
Is this correct?

Any other ideas about how we many obtain a max LOB data loss of 1 hour or less?

Thanks for any and all help.

I can assure you that it is greatly appreciated!

John

Can you provide the following information?:

1. Number of LOB's inserted per hour and average size
2. Number of LOB's updated per hour and average size
3. Number of LOB's deleted per hour and average size
4. Rough estimate of the amount of non-LOB data inserted, updated, and
deleted per hour
5. Type of disk subsystem (including controller) used for log files
6. Whether the disk and controller used for logging is used for anything
else (DB2 or non-DB2)
7. Size of log buffer
8. Size and number of log files
9. Number of processors


Nov 12 '05 #1
2 1726
"johnm" <jo***@matrixsg .com> wrote in message
news:11******** *****@corp.supe rnews.com...

5. Type of disk subsystem (including controller) used for log files

Answer: Here is how the disks are set up: The OS is on a mirrored set.
Everything else, including the log files and the DB are on a SCSI External
Raid 5 array.
Putting the logs on RAID-5 arrays, and on the same disks as the data is not
the best for optimum performance, but whether the difference is noticeable
would depend on your application activity.

Also, in the event that you lost the entire RAID-5 array (maybe lost 2 disks
in the array), then you would not be able to recover. The logs and the data
should be on separate devices.

So the best strategy for logs is either dual logging to 2 single disks on
their own controller, or single logging to the mirrored OS disks.
I hope this supplies you with enough information to be of some help.

If it is possible to log the LOB data, I have a strong notion that quite a
few of my other issues would be resolved. I just would like to know if
logging the LOB data is going to over tax the system.

My best guess is that over the course of any work day, there will be LOBs
inserted with a mazimum size range of 1 GB, at a rate of about 20 times
per
hour.

I am getting conflicting information from my DBA and would like to find
out
the "real" story.

Any and all help and/or suggestions is greatly appreciated.

Thanks,

John

With an average insert rate of one LOB every 3 minutes, I don't see any
reason why you cannot log the LOBs. If the performance suffers too much,
then you can always stop the logging. Some additional fine tuning of the
logs may be in order to accommodate the size and to increase
performance/reliability.
Nov 12 '05 #2
Mark,

Thanks so much for the information. It is exactly what I was looking for.

I'll let you know how all of this turns out.

Thanks again,

John
"Mark A" <no****@nowhere .com> wrote in message
news:xv******** ************@co mcast.com...
"johnm" <jo***@matrixsg .com> wrote in message
news:11******** *****@corp.supe rnews.com...

5. Type of disk subsystem (including controller) used for log files

Answer: Here is how the disks are set up: The OS is on a mirrored set.
Everything else, including the log files and the DB are on a SCSI External Raid 5 array.
Putting the logs on RAID-5 arrays, and on the same disks as the data is

not the best for optimum performance, but whether the difference is noticeable
would depend on your application activity.

Also, in the event that you lost the entire RAID-5 array (maybe lost 2 disks in the array), then you would not be able to recover. The logs and the data should be on separate devices.

So the best strategy for logs is either dual logging to 2 single disks on
their own controller, or single logging to the mirrored OS disks.
I hope this supplies you with enough information to be of some help.

If it is possible to log the LOB data, I have a strong notion that quite a few of my other issues would be resolved. I just would like to know if
logging the LOB data is going to over tax the system.

My best guess is that over the course of any work day, there will be LOBs inserted with a mazimum size range of 1 GB, at a rate of about 20 times
per
hour.

I am getting conflicting information from my DBA and would like to find
out
the "real" story.

Any and all help and/or suggestions is greatly appreciated.

Thanks,

John

With an average insert rate of one LOB every 3 minutes, I don't see any
reason why you cannot log the LOBs. If the performance suffers too much,
then you can always stop the logging. Some additional fine tuning of the
logs may be in order to accommodate the size and to increase
performance/reliability.

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
1388
by: Luther Baker | last post by:
I'd like to include some very simple logging in my app - removable at compile time. Avoiding macros .. I want to make sure this nonsense would be optimized away by the compiler if I don't need it. template<bool b> void log(const char* msg)
6
7310
by: pmatos | last post by:
Hi all, I am trying to create a simple but efficient C++ logging class. I know there are lots of them out there but I want something simple and efficient. The number one requirement is the possibility of shutting logging down at compile time and suffer no performance penalty whatsoever for getting logging on whenever I wish. Of course that...
3
354
by: johnm | last post by:
We have an application through which users store various types of files and attachments in a LOB in a DB2 7.2 database. Some of these files and attachments can reach a size of 1 GB, although most are in the 10 MB range. Logging is not enabled for the LOB columns in the database tables. We do a full offline backup of the DB every night. So, it...
3
4501
by: Oscar Thornell | last post by:
Hi, I am thinking about doing all my logging asynchronously using a delegate. The main resaon for this would be performance and responsiveness of the application (an ASP.NET app). //Exampel delegate void LogDelegate(string message); LogDelegate logger = new LogDelegate(Log.Debug); logger.DynamicInvoke("Some message..");
6
1513
by: Matt | last post by:
I have a production database that I need to change the logging type from circular to archived so that I can do online backups. The database is not particularly large, but is used by many people. What impact from the users perspective can I expect? Is the only impact behind the scenes in the db manager? Thanks in advance for any help. Matt
3
2058
by: Udi | last post by:
Hi All, I'm developping an application that has a very strong logging requirement - we should be able to log up to 5000 messages per second, most of them are reletively small -(16 - 30 Words) while few of them might get to 1Kb in size. The data is binary (numbers) that should be converted to text of course. I'm affraid of a...
7
8542
by: flupke | last post by:
Hi, i'm getting errors with the log module concerning RotatingFileHandler. I'm using Python 2.4.3 on Windows XP SP2. This used to work in previous python versions but since i upgraded to 2.4.3 i get these errors: Traceback (most recent call last): File "C:\Python24\lib\logging\handlers.py", line 71, in emit if...
9
1947
by: Rasika WIJAYARATNE | last post by:
Hi guys, Please check this out: http://rkwcoding.blogspot.com/2007/07/error-logging.html
6
5676
by: Vyacheslav Maslov | last post by:
Hi all! I have many many many python unit test, which are used for testing some remote web service. The most important issue here is logging of test execution process and result. I strongly need following: 1. start/end timestamp for each test case (most important) 2. immediate report about exceptions (stacktrace) 3. it will be nice to...
0
7700
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7614
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7924
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7676
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7974
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6284
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2114
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
938
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.