Good performance requires planning and regular maintenance. Make sure your operating system is configured with sufficient resources for Ingres. Insufficient system resources cause poor performance or prevent Ingres from starting.
The following tools can help you identify operating system resource problems:
UNIX:
BSD:
pstat utility—to display the status of UNIX system tables and system swap space
vmstat utility—to display virtual memory status
System V:
The installation utility allows the examination of all Ingres installed images, showing the amount of global pages and sections available and used.
VMS:
The following VMS tools are very useful for tracing script problems:
Important! This is an unsupported VMS command. Use at your own risk.
set watch file/class=none.
Syntax details are described in VMS Operating System Utilities.
If Ingres seems slow or unresponsive for no apparent reason, follow these steps to diagnose the problem. Write down any error messages you receive when performing these steps:
iinamu
IINAMU> show ingres
iimonitor server_number
IIMONITOR> show sessions
For syntax details, see the sections iimonitor and iinamu in the Command Reference Guide.
Alternatively, you can use the VDBA Performance Monitor to check for this problem.
Windows: In the Task Manager, highlight iidbmst and click on End Process
UNIX:
kill pid
VMS:
stop process/id = pid
where pid is the process ID of the query.
Important! The command format "stop proc" must be used only as a last resort. Use of this option can cause more problems than it solves.
select count(*) from tablename
This verifies that Ingres can sequentially access every row in the table and indicates that other access paths (secondary indexes, hash pointers, B-Tree page pointers, and so on) can cause the problem. Queries using restrictive where clauses probably are using these secondary access methods.
help permit tablename
select * from iirules where table_name = 'tablename'
Alternatively, in the right pane of VDBA's Database Object Manager (DOM) window: