(What could be wrong with my system)
Good Afternoon,
I'm in the process of developing a personal database that stores stock transactions for analytical use.
Currently we have two almost identical servers running.
The server specs are:
RedHat 7.1 with kernel 2.4.7-2.9enterprise
(i've recompiled the kernel removing unnescary drivers)
The computer actually performed better with
my custom version of the RedHat kernel 2.2.14-5.0smp, and performed similar to
RedHat's Version of kernel-2.4.7-2.9smp
Postgresql 7.1.2. I've gone through phpbuilder.com and made some changes to buffer size, fsync, sort mem.
SuperMicro S2DG2 motherboard-Intel 440GX, 100MHz, dual PIII Xeon 550 MHZ w/512k cache
processors, 512MB PC100 ECC REGISTERED SDRAM
AIC-7896 dual channel Ultra II SCSI controller.
Drives-EIDE-7200 rpm-
Server 1 -27.2 GB
-75.3 GB (IMB DESKTAR)
Server 2 -10.0 GB
-18.0 GB
-27.2 GB
-73.3 GB
ATA 100 controller (Currently, the controller and drive are not configured for ATA 100 transfer rates,
but we will be working on it soon.)
We have a programer in canda that has written a program using sql queries to sort through
every stock's (each stock has its own table) transaction and find the high and low and time of the high and low for each stock for each day. I refer to this as the high low program
Server1 has approximately 90 million records in the PostgreSQL database. Currently, approximately, 800,000
new records are added each trading day. Eventually, that number will increase to approximately 4,000,000 per
trading day
When we were running the HiLo program, we found that the number of records it was creating was almost the same as the number of records that were created when our Canadian friend ran the same program on a dual PIII 233 MHz server with 256 KB of RAM.
Also the first hour that it ran on our server in Houston and on our friend's server in Canada, approximately 7,500 records were created. By the 24th hour, the count was down
to approximately 2,000 per hour, and by the 48th hour, it was down to 1,175. By the 72nd hour, it was down to approximately 1,050.
My questions are:
1) Are these good numbers?
2) If not what could be slowing my system
down
3) Why does postgres get slower as the query
runs longer
4) What do i need to look at to speed things
up?