Re: [PERFORM] SSD + RAID

2010-02-27 Thread Greg Smith
Ron Mayer wrote: Linux apparently sends FLUSH_CACHE commands to IDE drives in the exact sample places it sends SYNCHRONIZE CACHE commands to SCSI drives[2]. [2] http://hardware.slashdot.org/comments.pl?sid=149349&cid=12519114 Well, that's old enough to not even be completely right anymore

Re: [PERFORM] SSD + RAID

2010-02-27 Thread Ron Mayer
Bruce Momjian wrote: > Greg Smith wrote: >> Bruce Momjian wrote: >>> I have added documentation about the ATAPI drive flush command, and the >> >> If one of us goes back into that section one day to edit again it might >> be worth mentioning that FLUSH CACHE EXT is the actual ATAPI-6 command >

Re: [PERFORM] How to troubleshoot high mem usage by postgres?

2010-02-27 Thread Chris
On Sat, Feb 27, 2010 at 3:38 PM, Craig Ringer wrote: > Can you boil this down to a simple PHP test-case that connects to a dummy > database and repeats something that causes the backend to grow in memory > usage? Trying to do this - by progressively cutting things out of your test > until it stops

Re: [PERFORM] How to troubleshoot high mem usage by postgres?

2010-02-27 Thread Chris
On Sat, Feb 27, 2010 at 3:38 PM, Ben Chobot wrote: > In your postgresql.conf file, what are the settings for work_mem and > shared_buffers? I have not done any tuning on this db yet (it is a dev box). It is using defaults. shared_buffers = 32MB #work_mem = 1MB I do appreciate the several quick

Re: [PERFORM] How to troubleshoot high mem usage by postgres?

2010-02-27 Thread Tom Lane
Chris writes: > Hi, I'm having an issue where a postgres process is taking too much > memory when performing many consecutive inserts and updates from a PHP > script (running on the command line). I would like to know what sort > of logging I can turn on to help me determine what is causing memory

Re: [PERFORM] How to troubleshoot high mem usage by postgres?

2010-02-27 Thread Craig Ringer
On 28/02/2010 6:29 AM, Chris wrote: If I am indeed doing everything I can to release the resources (and I'm 95% sure I am) then it looks like the pgsql extension is at fault here. Before assuming some particular thing is at fault, you need to collect some information to determine what is actu

Re: [PERFORM] How to troubleshoot high mem usage by postgres?

2010-02-27 Thread Ben Chobot
On Feb 27, 2010, at 2:29 PM, Chris wrote: > Hi, I'm having an issue where a postgres process is taking too much > memory when performing many consecutive inserts and updates from a PHP [snip] In your postgresql.conf file, what are the settings for work_mem and shared_buffers?

[PERFORM] How to troubleshoot high mem usage by postgres?

2010-02-27 Thread Chris
Hi, I'm having an issue where a postgres process is taking too much memory when performing many consecutive inserts and updates from a PHP script (running on the command line). I would like to know what sort of logging I can turn on to help me determine what is causing memory to be consumed and not

Re: [PERFORM] SSD + RAID

2010-02-27 Thread Bruce Momjian
Greg Smith wrote: > Bruce Momjian wrote: > > I have added documentation about the ATAPI drive flush command, and the > > typical SSD behavior. > > > > If one of us goes back into that section one day to edit again it might > be worth mentioning that FLUSH CACHE EXT is the actual ATAPI-6 comman

Re: [PERFORM] SSD + RAID

2010-02-27 Thread Greg Smith
Bruce Momjian wrote: I have added documentation about the ATAPI drive flush command, and the typical SSD behavior. If one of us goes back into that section one day to edit again it might be worth mentioning that FLUSH CACHE EXT is the actual ATAPI-6 command that a drive needs to support pr