pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
request for tuning suggestions from PC Week Labs
3+ messages / 3 participants
[nested] [flat]

* request for tuning suggestions from PC Week Labs
@ 2000-01-30 05:56 Timothy Dyck <Timothy_Dyck@zd.com>
  2000-01-30 11:41 ` Re: [ADMIN] request for tuning suggestions from PC Week Labs Ragnar Kjørstad <postgres@ragnark.vestdata.no>
  0 siblings, 1 reply; 3+ messages in thread

From: Timothy Dyck @ 2000-01-30 05:56 UTC (permalink / raw)
  To: pgsql-admin




Hi all, I'm the database analyst for PC Week Labs and am comparing
PostgreSQL with Inprise's InterBase (which will be open sourced later this
year). As part of this project, I'm running a benchmark with a mix of OLTP
and DSS queries in a set of various mixes and at a variety of user loads
(up to 100 concurrent users). I'd like to get your tuning suggestions on
the engine to make sure I am not missing anything.

My test server is a departmental-type machine with two Pentium III 450MHz
CPUs with 512MB of RAM running RedHat Linux 6.1. PGDATA is pointing to a
RAID 5 array and the database is ~40 MB of data before indexing, and so
will fit entirely into the db cache. The OS swapfile is not used at all. I
will be using ODBC to query the database.

1. The biggest performance item I've seen in looking through the mailing
lists is the fsync option. I want to leave this enabled as I don't think a
transactional database should ever lose data. My understanding is that
with it on PG checkpoints after every commit. Is there a way to let the
log grow to a certain size before checkpointing? When fsync is off, how is
data loss possible?

2. How do I move the log to a different spindle from the disks the
database data is on?

3. Any other suggestions are much appreciated.

Regards,
Tim Dyck
Senior Analyst, PC Week Labs
timothy_dyck@zd.com





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: [ADMIN] request for tuning suggestions from PC Week Labs
  2000-01-30 05:56 request for tuning suggestions from PC Week Labs Timothy Dyck <Timothy_Dyck@zd.com>
@ 2000-01-30 11:41 ` Ragnar Kjørstad <postgres@ragnark.vestdata.no>
  0 siblings, 0 replies; 3+ messages in thread

From: Ragnar Kjørstad @ 2000-01-30 11:41 UTC (permalink / raw)
  To: Timothy Dyck <Timothy_Dyck@zd.com>; +Cc: pgsql-admin

On Sun, Jan 30, 2000 at 12:56:39AM -0500, Timothy Dyck wrote:
> Hi all, I'm the database analyst for PC Week Labs and am comparing
> PostgreSQL with Inprise's InterBase (which will be open sourced later this
> year). As part of this project, I'm running a benchmark with a mix of OLTP
> and DSS queries in a set of various mixes and at a variety of user loads
> (up to 100 concurrent users). I'd like to get your tuning suggestions on
> the engine to make sure I am not missing anything.
> 
> My test server is a departmental-type machine with two Pentium III 450MHz
> CPUs with 512MB of RAM running RedHat Linux 6.1. PGDATA is pointing to a
> RAID 5 array and the database is ~40 MB of data before indexing, and so
> will fit entirely into the db cache. The OS swapfile is not used at all. I
> will be using ODBC to query the database.
> 
> 1. The biggest performance item I've seen in looking through the mailing
> lists is the fsync option. I want to leave this enabled as I don't think a
> transactional database should ever lose data. My understanding is that
> with it on PG checkpoints after every commit. Is there a way to let the
> log grow to a certain size before checkpointing? When fsync is off, how is
> data loss possible?
> 
> 2. How do I move the log to a different spindle from the disks the
> database data is on?
> 
> 3. Any other suggestions are much appreciated.

The speed of fsync is a filesystem issue. 

Reiserfs is generally somewhat faster than ext2, and has journaling.
Unfortenately I think the log can only be used for metadata right now -
but you shold check that with the developers. 



--
Ragnar Kjørstad



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: [ADMIN] request for tuning suggestions from PC Week Labs
@ 2000-01-31 21:45 Hernan J. Gonzalez <leonbloy@yahoo.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Hernan J. Gonzalez @ 2000-01-31 21:45 UTC (permalink / raw)
  To: pgsql-admin

My init script includes this line
(in red hat 6.1):

echo "100000000" > /proc/sys/kernel/shmmax  

to increase the available shared memory,
and afterwards:

/sql/bin/postmaster -B5892 -D/sql/data -o "-e -B5892
-S4000 -F" -i >> /sql/log/sql.log


> When fsync is off, how is
> data loss possible?
> 

I have turned fsync off, since I feel that
the perfomance gain is more important, for 
me, than the risk of loosing data; indeed, my 
database got corrupted,
once or twice, but dropping and recreating all the
indexes was enough... and I backup daily.

Another suggestion I found useful,
to improve disk speed (in linux) is to
increase the default block length 
(4 kb instead of 1 kb); but I don't know
if that matters with raid 5...

Regards

Hernan Gonzalez
Buenos Aires, Argentina
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2000-01-31 21:45 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-01-30 05:56 request for tuning suggestions from PC Week Labs Timothy Dyck <Timothy_Dyck@zd.com>
2000-01-30 11:41 ` Ragnar Kjørstad <postgres@ragnark.vestdata.no>
2000-01-31 21:45 Re: [ADMIN] request for tuning suggestions from PC Week Labs Hernan J. Gonzalez <leonbloy@yahoo.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox