Re: [PERFORM] which ext3 fs type should I use for postgresql

2008-05-16 Thread Joshua D. Drake
On Fri, 16 May 2008 11:07:17 -0600 "Scott Marlowe" <[EMAIL PROTECTED]> wrote: > Sorry, but that's like saying that open heart surgery isn't a fix for > clogged arteries because you should have been taking aspirin everyday > and exercising. It might not be the best answer, but sometimes it's > the

Re: [PERFORM] which ext3 fs type should I use for postgresql

2008-05-16 Thread Scott Marlowe
On Thu, May 15, 2008 at 9:38 AM, Joshua D. Drake <[EMAIL PROTECTED]> wrote: > Guillaume Cottenceau wrote: >> >> Matthew Wakeling writes: > >> It is still relevant, as with 5% margin, you can afford changing >> that to 0% with tune2fs, just the time for you to start PG and >> remove some data by SQ

Re: [PERFORM] which ext3 fs type should I use for postgresql

2008-05-16 Thread david
On Thu, 15 May 2008, [EMAIL PROTECTED] wrote: On Thu, 15 May 2008, Matthew Wakeling wrote: On Thu, 15 May 2008, Philippe Amelant wrote: using mkfs.ext3 I can use "-T" to tune the filesytem mkfs.ext3 -T fs_type ... fs_type are in /etc/mke2fs.conf (on debian) If you look at that file, you'd

Re: [PERFORM] which ext3 fs type should I use for postgresql

2008-05-15 Thread Guillaume Cottenceau
"Joshua D. Drake" writes: > Guillaume Cottenceau wrote: >> Matthew Wakeling writes: > >> It is still relevant, as with 5% margin, you can afford changing >> that to 0% with tune2fs, just the time for you to start PG and >> remove some data by SQL, then shutdown and set the margin to 5% >> again.

Re: [PERFORM] which ext3 fs type should I use for postgresql

2008-05-15 Thread Joshua D. Drake
Guillaume Cottenceau wrote: Matthew Wakeling writes: It is still relevant, as with 5% margin, you can afford changing that to 0% with tune2fs, just the time for you to start PG and remove some data by SQL, then shutdown and set the margin to 5% again. I find that if you actually reach that

Re: [PERFORM] which ext3 fs type should I use for postgresql

2008-05-15 Thread Guillaume Cottenceau
Matthew Wakeling writes: > On Thu, 15 May 2008, Guillaume Cottenceau wrote: >> Also, IIRC when PG writes data up to a full filesystem, >> postmaster won't be able to then restart if the filesystem is >> still full (it needs some free disk space for its startup). >> >> Or maybe this has been fixed

Re: [PERFORM] which ext3 fs type should I use for postgresql

2008-05-15 Thread Matthew Wakeling
On Thu, 15 May 2008, Guillaume Cottenceau wrote: Also, IIRC when PG writes data up to a full filesystem, postmaster won't be able to then restart if the filesystem is still full (it needs some free disk space for its startup). Or maybe this has been fixed in recent versions? Ah, the "not enoug

Re: [PERFORM] which ext3 fs type should I use for postgresql

2008-05-15 Thread Guillaume Cottenceau
Craig James writes: > Matthew Wakeling wrote: >> Probably of more use are some of the other settings: >> >> -m reserved-blocks-percentage - this reserves a portion of the filesystem >> that only root can write to. If root has no need for it, you can kill >> this by setting it to zero. Th

Re: [PERFORM] which ext3 fs type should I use for postgresql

2008-05-15 Thread Craig James
Matthew Wakeling wrote: Probably of more use are some of the other settings: -m reserved-blocks-percentage - this reserves a portion of the filesystem that only root can write to. If root has no need for it, you can kill this by setting it to zero. The default is for 5% of the disc to b

Re: [PERFORM] which ext3 fs type should I use for postgresql

2008-05-15 Thread Matthew Wakeling
On Thu, 15 May 2008, [EMAIL PROTECTED] wrote: IIRC postgres likes to do 1M/file, which isn't very largeas far as the -T setting goes. ITYF it's actually 1GB/file. think twice about this. ext2/3 get slow when they fill up (they have fragmentation problems when free space gets too small), this

Re: [PERFORM] which ext3 fs type should I use for postgresql

2008-05-15 Thread david
On Thu, 15 May 2008, Matthew Wakeling wrote: On Thu, 15 May 2008, Philippe Amelant wrote: using mkfs.ext3 I can use "-T" to tune the filesytem mkfs.ext3 -T fs_type ... fs_type are in /etc/mke2fs.conf (on debian) If you look at that file, you'd see that tuning really doesn't change that muc

Re: [PERFORM] which ext3 fs type should I use for postgresql

2008-05-15 Thread Matthew Wakeling
On Thu, 15 May 2008, Philippe Amelant wrote: using mkfs.ext3 I can use "-T" to tune the filesytem mkfs.ext3 -T fs_type ... fs_type are in /etc/mke2fs.conf (on debian) If you look at that file, you'd see that tuning really doesn't change that much. In fact, the only thing it does change (if y

[PERFORM] which ext3 fs type should I use for postgresql

2008-05-15 Thread Philippe Amelant
Hi all, using mkfs.ext3 I can use "-T" to tune the filesytem mkfs.ext3 -T fs_type ... fs_type are in /etc/mke2fs.conf (on debian) is there a recommended setting for this parameter ??? thanks -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your