This Slideshare presentation is a partial preview of the full business document. To view and download the full document, please go here:
http://flevy.com/browse/business-document/the-complete-guide-to-dba-practices-and-procedures-system-performance-part-10-581
Part 10 of a multi-part series of presentations on the management discipline of database administration. This installment extends the coverage of managing database performance to look at the details of system software performance. The entire series can be used to implement an efficient and effective database administration function at your organization. This part covers the following areas:
- The Tuning Boxes
- The Larger Environment
-- Operating Systems
-- Allied Agents
-- Hardware Configuration
-- I/O and Disk Subsystems
- DBMS Installation and Configuration Issues
-- Memory
- System Monitoring
2. The Larger Environment
• A DBMS operates within the context of a
larger environment.
• Other software and hardware components
must be installed, configured, and managed
effectively for the DBMS to function as
required.
– Tuning and configuring these components and
connections properly can have a dramatic impact
on system performance.
This document is a partial preview. Full document download can be found on Flevy:
http://flevy.com/browse/document/the-complete-guide-to-dba-practices-and-procedures-system-performance-part-10-581
3. Hardware Configuration
The hardware must be installed and set up properly for the
DBMS to operate efficiently.
• Is the computer hardware and capacity appropriate for the DBMS
environment?
• Is the computer firmware (e.g., ROM BIOS) up-to-date?
• Has a sufficient amount of memory been installed for all of the system
software to be installed (OS, DBMS, and other allied agents)?
• Has an appropriate amount of disk storage space been allocated and
configured for use by the DBMS?
• What type of disk storage is being used and is it appropriate for large data
volumes and high-speed database queries?
• Are all the network cables connected and functioning properly?
• Are all physical connections (e.g., cables, plugs, and board sockets) fully
connected and operational?
• Is the hardware connected to an uninterruptible power supply?
• Is the hardware connected to a surge protection device?
This document is a partial preview. Full document download can be found on Flevy:
http://flevy.com/browse/document/the-complete-guide-to-dba-practices-and-procedures-system-performance-part-10-581
4. Components of the DBMS
• A DBMS is comprised of multiple programs that
deliver the requisite data management
functionality.
– Each program interoperates with other programs to
provide a database management system.
– Each DBMS breaks things apart a little bit differently
than others.
• The DBA must become an expert on the inner
workings of the DBMS in order to ensure an
optimized environment for database applications.
This document is a partial preview. Full document download can be found on Flevy:
http://flevy.com/browse/document/the-complete-guide-to-dba-practices-and-procedures-system-performance-part-10-581
5. Memory Usage
• Relational databases love memory.
• The single biggest system performance tuning task that
a DBA will face is configuring RDBMS memory usage.
• The DBMS uses random access memory to cache data
and other resources required by the DBMS.
– Reading data from memory is much less costly than
reading the data from disk.
• The more memory you can provide to the DBMS, the
better performance will be.
– Of course, the DBMS has to be configured properly to use
the memory efficiently.
This document is a partial preview. Full document download can be found on Flevy:
http://flevy.com/browse/document/the-complete-guide-to-dba-practices-and-procedures-system-performance-part-10-581
6. Data Cache
D
A
T
A
R
E
Q
E
S
T
O
R
S
Data Cache
This document is a partial preview. Full document download can be found on Flevy:
http://flevy.com/browse/document/the-complete-guide-to-dba-practices-and-procedures-system-performance-part-10-581
7. Internal Structures Cache
• To accomplish relational operations, the DBMS
may need to create internal structures that
are not necessarily visible to the end user.
• However, DBAs, and sometimes programmers,
will need to know about the internal
structures.
• These internal structures are often cached
into memory as they are used.
– Example: DBD (database descriptor)
This document is a partial preview. Full document download can be found on Flevy:
http://flevy.com/browse/document/the-complete-guide-to-dba-practices-and-procedures-system-performance-part-10-581
8. How Much Memory is Enough?
• This is a difficult question to answer.
• Have to balance cost of memory versus ROI of
the applications using the DBMS.
• At any rate, after calculating what you will
need to use based on the size and usage of
your database objects, it is always a good idea
to leave some breathing room.
– That is, add a little more memory than you think
you will need.
This document is a partial preview. Full document download can be found on Flevy:
http://flevy.com/browse/document/the-complete-guide-to-dba-practices-and-procedures-system-performance-part-10-581
9. What if…
• Read efficiency is consistently below 80%?
• Consider:
– increasing the size of the data cache
– modifying the number or type of concurrent
processes using the data cache
– reducing the number of tables and indexes assigned
to the data cache
– create an additional backup cache (if possible)
– peg specific pages in memory
– automatically increase cache size based on processing
(if available)
This document is a partial preview. Full document download can be found on Flevy:
http://flevy.com/browse/document/the-complete-guide-to-dba-practices-and-procedures-system-performance-part-10-581
10. All Transactions are Logged
LOG
1
2
CACHED
UPDATE INSERT DELETE
DATA
SQL
CACHED
UPDATE INSERT
DELETE
Database Logging
This document is a partial preview. Full document download can be found on Flevy:
http://flevy.com/browse/document/the-complete-guide-to-dba-practices-and-procedures-system-performance-part-10-581
11. Are all Database Operations Logged?
• Depending on the DBMS, some operations may
not be logged.
• Examples:
– CREATE INDEX
– REORG
– Bulk Copy
– SELECT INTO
• There may be options for turning logging on and
off.
• Proceed with caution.
This document is a partial preview. Full document download can be found on Flevy:
http://flevy.com/browse/document/the-complete-guide-to-dba-practices-and-procedures-system-performance-part-10-581
12. System Catalog Issues
• The physical location and setup of the system
catalog will have an impact on system
performance.
• The DBA must decide where it will be installed,
on what type of disk, and how much space to
allocate.
• These decisions typically are made at installation
time.
• Place the system catalog on a separate disk
device so that it can be managed and tuned
independently from other application data.
This document is a partial preview. Full document download can be found on Flevy:
http://flevy.com/browse/document/the-complete-guide-to-dba-practices-and-procedures-system-performance-part-10-581
13. System Monitoring
• Use a system monitor.
– Built-in or third party
• A DBA must be able to operate and
understand the output of the monitoring
solutions available to him.
• The performance monitor acts as
a window into the efficiency of
the database system.
This document is a partial preview. Full document download can be found on Flevy:
http://flevy.com/browse/document/the-complete-guide-to-dba-practices-and-procedures-system-performance-part-10-581
14. 1
Flevy (www.flevy.com) is the marketplace
for premium documents. These
documents can range from Business
Frameworks to Financial Models to
PowerPoint Templates.
Flevy was founded under the principle that
companies waste a lot of time and money
recreating the same foundational business
documents. Our vision is for Flevy to
become a comprehensive knowledge base
of business documents. All organizations,
from startups to large enterprises, can use
Flevy— whether it's to jumpstart projects, to
find reference or comparison materials, or
just to learn.
Contact Us
Please contact us with any questions you may have
about our company.
• General Inquiries
support@flevy.com
• Media/PR
press@flevy.com
• Billing
billing@flevy.com