[PERFORM] Perfomance Tuning

2003-08-14 Thread mixo
I have just installed redhat linux 9 which ships with Pg
7.3.2. Pg has to be setup so that data inserts (blobs) should
be able to handle at least 8M at a time. The machine has
two P III 933MHz CPU's, 1.128G RAM (512M*2 + 128M), and
a 36 Gig hd with 1 Gig swap and 3 equal size ext3 partitions.
What would be the recomended setup for good performance
considering that the db will have about 15 users for
9 hours in a day, and about 10 or so users throughout the day
who wont be conistenly using the db.


---(end of broadcast)---
TIP 7: don't forget to increase your free space map settings


Re: [PERFORM] Perfomance Tuning

2003-08-14 Thread mixo
Thanks to everyone who responded. It's a pity that the discussion has gone
the ext2 vs ext3 route. The main reason I asked my original question is
that I am currently importing data into Pg which is about 2.9 Gigs.
Unfortunately, to maintain data intergrity, data is inserted into a table
one row at a time. This exercise took ~7 days on the same system with
slightly different setup(PIII 1.0GHZ, 512M RAM -- CPU speed was down graded
due to serveral over heating problems which have since been fixed, and RAM
was added for good measure). I have just reloaded the machine, and started
the import. So far ~ 6000 record have been imported, and there is 32000
left.
P.S. Importing the same data on Mysql took ~2 days.

Bjoern Metzdorf wrote:

be able to handle at least 8M at a time. The machine has
two P III 933MHz CPU's, 1.128G RAM (512M*2 + 128M), and
a 36 Gig hd with 1 Gig swap and 3 equal size ext3 partitions.
What would be the recomended setup for good performance
considering that the db will have about 15 users for
9 hours in a day, and about 10 or so users throughout the day
who wont be conistenly using the db.
   

For 15 users you won't need great tuning at all. Just make sure, that you
have the right indizes on the tables and that you have good queries (query
plan).
About the 8Meg blobs, I don't know. Other people on this list may be able to
give you hints here.
Regards,
Bjoern
 



---(end of broadcast)---
TIP 7: don't forget to increase your free space map settings


[PERFORM] Benchmark

2003-08-15 Thread mixo
I have the following setup :
 Apache 2 + mod_perl 2
 Postgres 7.3.2
I need to is measure the perfomance of a ticketing system (written in perl)
which has web interface (html::mason, apache2) with Pg as a backend. Users
of the ticketing system can only connect to the backend via the web 
interface
and they usually login to the system at the begining of the the day and 
remain
connected untill they knock of. I have setup two test machines, one with Pg
and the other with Mysql. Both machine have the same data (sample).

I am looking for a benchmark utilty that the simulate a user session.
For example, a user login in, displaying a ticket and searching for tickets;
all these invlove a user connecting to the a url, like for search, a 
user needs
to open "somehost.domain/path/to/search.html?with=arguments". The 
utiltly needs
to simulate these actions.

The following tools currently have so far caught my attention:
  Apache Jmeter
  ab
I need suggestions for other utilities.



---(end of broadcast)---
TIP 2: you can get off all lists at once with the unregister command
   (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])