Beruflich Dokumente
Kultur Dokumente
Agenda
Architecture overview
Process model
Memory model
Storage model
Architecture Overview
Disk component
– Disk is a storage facility to
hold table data and system
information necessary to
maintain the server
4 © 2010 IBM Corporation
Information Management – Informix
PROCESS MODEL
100
CPU
Usage
Integrated parallelism
– Dynamic
– Scalable
Threads
– Services requests from client application (user threads)
• E.g. Select query issued by a client is serviced by an user thread
– Accomplish internal tasks like database I/O, logging I/O, page
cleaning, administrative functions (internal threads)
– A thread can run on any VP in its class
– To run a thread, VP retrieves thread’s data and environment
stack from ready queue and executes request
Notice the bottom axis shows “Virtual Processor Usage Over Time”. This
represents time the thread is running on a pre-existing oninit process
CPU
Usage
Write
DSA
Sort processes tasks
Time to concurrently
Process DSA
Join breaks tasks
into subtasks
Scan
Scan
Thread
Disk Scan
Exchange Threads
MEMORY MODEL
Virtual segment
– Contains information about the threads and sessions, and the
data used by them
– Could be paged out to disk by the operating system
– Expandable
Message segment
– Holds the message buffers used in client-server communication
if shared memory communication is configured
18 © 2010 IBM Corporation
Information Management – Informix
STORAGE MODEL
Disk Page
The basic unit of storage in a server
Tablespace
Tablespace
Extent
– Logical collection of extents
Chunks
Largest unit of contiguous disk
dedicated to database server data
storage
Dbspaces
Logical collection of one or more
chunks
Storage Model
Dbspace
Chunk
Chunk Page
Chunk
Extents
Tablespace
Blobspaces
Sbspaces
Mirroring
Process of automatically writing
same data to two disks
Costs
– Additional disk space Writes
– Performance cost of having to
write to two locations
When a client issues a query, the table data is read from disk
into buffers in shared memory
Physical logging
– Process of storing before-images of pages that are being modified
– Before-images are stored in physical log
– Physical log is a collection of contiguous pages on disk
– Required for recovery purpose in event of a system failure
Logical logging
– Process of recording transaction details
– Transaction records are stored in logical log
– Logical log is comprised of logical log files, which are collections of
contiguous pages on disk
– Required for transaction rollback and recovery purpose in event of a
system failure
Checkpoints
– Periodic system event during which all modified buffers are written to
disk
– Establishes a consistent state for database server
– Information on checkpoint event is recorded in the system pages and
logical log (needed for recovery purposes)
Recovery
– If a system failure occurs, the database server restarts at that
established point
– Before-images of pages modified since checkpoint are restored from
physical log
– Transactions since checkpoint are then replayed from the logical log to
get the server to the consistent state just before the time of failure
Resources