Unix Technical Forum

Transaction Log

This is a discussion on Transaction Log within the Pgsql Performance forums, part of the PostgreSQL category; --> For best performance, the transaction log should be on a separate disk. Does the writing of the log benefit ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql Performance

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-19-2008, 11:27 AM
mbguy2000-1@yahoo.com
 
Posts: n/a
Default Transaction Log

For best performance, the transaction log should be on a separate disk.

Does
the writing of the log benefit from a battery backed controller as
well? If not, what do people think about writing the transaction log
to a flash card or the like?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-19-2008, 11:27 AM
Mark Mielke
 
Posts: n/a
Default Re: Transaction Log

mbguy2000-1@yahoo.com wrote:
> For best performance, the transaction log should be on a separate disk.
>
> Does the writing of the log benefit from a battery backed controller
> as well? If not, what do people think about writing the transaction
> log to a flash card or the like?

How popular are the battery backed RAM drives that exist today? I don't
recall seeing them spoken about in this mailing list. The local geek
shop has these devices on sale. Are they still too expensive?

For those that don't know what I am talking about - they are PCI devices
that present themselves as a hard drive, but are filled with commodity
RAM instead of a magnetic platter, and a battery that lasts a few weeks
without external power.

Cheers,
mark

--
Mark Mielke <mark@mielke.cc>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-19-2008, 11:27 AM
Steve Atkins
 
Posts: n/a
Default Re: Transaction Log


On Aug 29, 2007, at 12:54 PM, Mark Mielke wrote:

> mbguy2000-1@yahoo.com wrote:
>> For best performance, the transaction log should be on a separate
>> disk.
>>
>> Does the writing of the log benefit from a battery backed
>> controller as well? If not, what do people think about writing
>> the transaction log to a flash card or the like?

> How popular are the battery backed RAM drives that exist today? I
> don't recall seeing them spoken about in this mailing list. The
> local geek shop has these devices on sale. Are they still too
> expensive?
>
> For those that don't know what I am talking about - they are PCI
> devices that present themselves as a hard drive, but are filled
> with commodity RAM instead of a magnetic platter, and a battery
> that lasts a few weeks without external power.


It think the general conclusion was "When they come out with an ECC
version, we'll look at them."

There are higher end ones that do have ECC RAM (and backup drives and
stuff) but they're spectacularly more expensive than the cheapo
consumer ones.

Cheers,
Steve




---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-19-2008, 11:27 AM
Steinar H. Gunderson
 
Posts: n/a
Default Re: Transaction Log

On Wed, Aug 29, 2007 at 01:11:32PM -0700, Steve Atkins wrote:
> It think the general conclusion was "When they come out with an ECC
> version, we'll look at them."


FWIW, it shouldn't be impossible to implement ECC in software; they'd still
be orders of magnitude faster than normal disks.

/* Steinar */
--
Homepage: http://www.sesse.net/

---------------------------(end of broadcast)---------------------------
TIP 7: You can help support the PostgreSQL project by donating at

http://www.postgresql.org/about/donate

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-19-2008, 11:27 AM
Bill Moran
 
Posts: n/a
Default Re: Transaction Log

In response to Mark Mielke <mark@mark.mielke.cc>:

> mbguy2000-1@yahoo.com wrote:
> > For best performance, the transaction log should be on a separate disk.
> >
> > Does the writing of the log benefit from a battery backed controller
> > as well? If not, what do people think about writing the transaction
> > log to a flash card or the like?


Flash cards write _very_ slowly.

> How popular are the battery backed RAM drives that exist today? I don't
> recall seeing them spoken about in this mailing list. The local geek
> shop has these devices on sale. Are they still too expensive?


I've seen them around and as best I can tell, they're pretty
inexpensive. The main drawback is the storage, you'd be looking at
the price of the card, plus the price of however much RAM you wanted
on it.

http://www.amazon.com/Gigabyte-GC-RA...8418613&sr=8-1
http://techreport.com/articles.x/9312/1
Up to 4G, but you have to add the price of the RAM on to the price of
the card.

In the case of WAL logs, you could probably get away with a lot less
space than many other usages, so they might be very practical.

--
Bill Moran
Collaborative Fusion Inc.
http://people.collaborativefusion.com/~wmoran/

wmoran@collaborativefusion.com
Phone: 412-422-3463x4023

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-19-2008, 11:27 AM
Alan Hodgson
 
Posts: n/a
Default Re: Transaction Log

On Wednesday 29 August 2007, Steve Atkins <steve@blighty.com> wrote:
> There are higher end ones that do have ECC RAM (and backup drives and
> stuff) but they're spectacularly more expensive than the cheapo
> consumer ones.
>


Yeah the good ones look more like http://ramsan.com/ .

--
"Pulling together is the aim of despotism and tyranny. Free men pull in
all kinds of directions." -- Terry Pratchett


---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:06 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com