Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UesnL-0001fp-FE for pgsql-performance@arkaria.postgresql.org; Tue, 21 May 2013 20:04:27 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UesnK-0006sG-Sm for pgsql-performance@arkaria.postgresql.org; Tue, 21 May 2013 20:04:26 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UesnJ-0006sA-Bu for pgsql-performance@postgresql.org; Tue, 21 May 2013 20:04:25 +0000 Received: from mail.audifarma.com.co ([190.14.237.212] helo=audifarm.audifarma.com.co) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UesnB-0003nQ-NW for pgsql-performance@postgresql.org; Tue, 21 May 2013 20:04:23 +0000 Received: from [10.1.1.81] (unknown [10.1.1.81]) (Authenticated sender: jeisonb) by audifarm.audifarma.com.co (Postfix) with ESMTP id 04F9F74632A for ; Tue, 21 May 2013 15:04:08 -0500 (COT) Message-ID: <519BD32F.8040201@audifarma.com.co> Date: Tue, 21 May 2013 15:03:59 -0500 From: Jeison Bedoya User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Re: performance database for backup/restore References: <519B743F.7040407@audifarma.com.co> In-Reply-To: Content-Type: multipart/alternative; boundary="------------080308060403070005090704" X-Audifarma-MailScanner-Information: Please contact the ISP for more information X-Audifarma-MailScanner-ID: 04F9F74632A.AF870 X-Audifarma-MailScanner: Found to be clean X-Audifarma-MailScanner-From: jeisonb@audifarma.com.co X-Spam-Status: No X-Pg-Spam-Score: -0.3 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org This is a multi-part message in MIME format. --------------080308060403070005090704 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit hi jeff thanks by your answer, when you say "database objects" you talking about the tables?, because i have 1782 tables in my database. Umm, my boottleneck not is on CPU because the top don´t show something about that, the memory is used 30%, and the IO not have problem, because the Fiber channel SAN have capacity of 8GB and tthe i/o transfer to the disk is no Upper to 1 GB. can you explainme again how do you do a 6bg/min for pd_dump thanks Atentamente, JEISON BEDOYA DELGADO Adm. Servidores y Comunicaciones AUDIFARMA S.A. El 21/05/2013 11:11 a.m., Jeff Janes escribió: > 2013/5/21 Jeison Bedoya > > > Hi people, i have a database with 400GB running in a server with > 128Gb RAM, and 32 cores, and storage over SAN with fiberchannel, > the problem is when i go to do a backup whit pg_dumpall take a lot > of 5 hours, next i do a restore and take a lot of 17 hours, that > is a normal time for that process in that machine? or i can do > something to optimize the process of backup/restore. > > > How many database objects do you have? A few large objects will dump > and restore faster than a huge number of smallish objects. > > Where is your bottleneck? "top" should show you whether it is CPU or IO. > > I can pg_dump about 6GB/minute to /dev/null using all defaults with a > small number of large objects. > > Cheers, > > Jeff > > -- > NOTA VERDE: > No imprima este correo > a menos que sea absolutamente necesario. > Ahorre papel, ayude a salvar un arbol. > > -------------------------------------------------------------------- > Este mensaje ha sido analizado por *MailScanner* > > en busca de virus y otros contenidos peligrosos, > y se considera que esta limpio. > > -------------------------------------------------------------------- > Este texto fue anadido por el servidor de correo de Audifarma S.A.: > > Las opiniones contenidas en este mensaje no necesariamente coinciden > con las institucionales de Audifarma. La informacion y todos sus > archivos Anexos, son confidenciales, privilegiados y solo pueden ser > utilizados por sus destinatarios. Si por error usted recibe este > mensaje, le ofrecemos disculpas, solicitamos eliminarlo de inmediato, > notificarle de su error a la persona que lo envia y abstenerse de > utilizar su contenido. -- NOTA VERDE: No imprima este correo a menos que sea absolutamente necesario. Ahorre papel, ayude a salvar un arbol. -------------------------------------------------------------------- Este mensaje ha sido analizado por MailScanner en busca de virus y otros contenidos peligrosos, y se considera que esta limpio. -------------------------------------------------------------------- Este texto fue anadido por el servidor de correo de Audifarma S.A.: Las opiniones contenidas en este mensaje no necesariamente coinciden con las institucionales de Audifarma. La informacion y todos sus archivos Anexos, son confidenciales, privilegiados y solo pueden ser utilizados por sus destinatarios. Si por error usted recibe este mensaje, le ofrecemos disculpas, solicitamos eliminarlo de inmediato, notificarle de su error a la persona que lo envio y abstenerse de utilizar su contenido. --------------080308060403070005090704 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
hi jeff thanks by your answer, when you say "database objects" you talking about the tables?, because i have 1782 tables in my database.

Umm, my boottleneck not is  on CPU because the top don´t show something about that, the memory is used 30%, and the IO not have problem, because the Fiber channel SAN have capacity of 8GB and tthe i/o transfer to the disk is no Upper to 1 GB.

can you explainme again how do you do a 6bg/min for pd_dump

thanks
Atentamente,


JEISON BEDOYA DELGADO
Adm. Servidores y Comunicaciones
AUDIFARMA S.A.
El 21/05/2013 11:11 a.m., Jeff Janes escribió:
2013/5/21 Jeison Bedoya <jeisonb@audifarma.com.co>
Hi people, i have a database with 400GB running in a server with 128Gb RAM, and 32 cores, and storage over SAN with fiberchannel, the problem is when i go to do a backup whit pg_dumpall take a lot of 5 hours, next i do a restore and take a lot of 17 hours, that is a normal time for that process in that machine? or i can do something to optimize the process of backup/restore.

How many database objects do you have?  A few large objects will dump and restore faster than a huge number of smallish objects.

Where is your bottleneck?  "top" should show you whether it is CPU or IO.

I can pg_dump about 6GB/minute to /dev/null using all defaults with a small number of large objects.

Cheers,

Jeff

--
NOTA VERDE:
No imprima este correo
a menos que sea absolutamente necesario.
Ahorre papel, ayude a salvar un arbol.

--------------------------------------------------------------------
Este mensaje ha sido analizado por MailScanner
en busca de virus y otros contenidos peligrosos,
y se considera que esta limpio.

--------------------------------------------------------------------
Este texto fue anadido por el servidor de correo de Audifarma S.A.:

Las opiniones contenidas en este mensaje no necesariamente coinciden
con las institucionales de Audifarma. La informacion y todos sus
archivos Anexos, son confidenciales, privilegiados y solo pueden ser
utilizados por sus destinatarios. Si por error usted recibe este
mensaje, le ofrecemos disculpas, solicitamos eliminarlo de inmediato,
notificarle de su error a la persona que lo envia y abstenerse de
utilizar su contenido.


--
NOTA VERDE:
No imprima este correo
a menos que sea absolutamente necesario.
Ahorre papel, ayude a salvar un arbol.

--------------------------------------------------------------------
Este mensaje ha sido analizado por MailScanner
en busca de virus y otros contenidos peligrosos,
y se considera que esta limpio.

--------------------------------------------------------------------
Este texto fue anadido por el servidor de correo de Audifarma S.A.:

Las opiniones contenidas en este mensaje no necesariamente coinciden
con las institucionales de Audifarma. La informacion y todos sus
archivos Anexos, son confidenciales, privilegiados y solo pueden ser
utilizados por sus destinatarios. Si por error usted recibe este
mensaje, le ofrecemos disculpas, solicitamos eliminarlo de inmediato,
notificarle de su error a la persona que lo envia y abstenerse de
utilizar su contenido. --------------080308060403070005090704--