public inbox for [email protected]  
help / color / mirror / Atom feed
Reg pg_restore taking more time in windows compare to linux
5+ messages / 2 participants
[nested] [flat]

* Reg pg_restore taking more time in windows compare to linux
@ 2025-01-26 07:14  Praveen Kumar Mandula <[email protected]>
  0 siblings, 1 reply; 5+ messages in thread

From: Praveen Kumar Mandula @ 2025-01-26 07:14 UTC (permalink / raw)
  To: pgsql-performance


Hi Team,
In our AccuRev product we are using postgres 9.5.3 ( open source ).

For one of our customer, when they are restoring DB, its taking more time.
In Windows its taking around 43 hours, where as in Linux its taking around 3 hours.

We tried modifying these in postgresql.conf , but still same behaviour.
shared_buffers = 7GB
effective_cache_size : 20GB
work_mem = '256MB'
maintenance_work_mem = '1GB';

max_wal_size = '3GB';

full_page_writes = off

autovacuum = off

wal_buffers = -1

min_wal_size = '1GB'

Note : we tried in postgres 17.2 also,  still in windows its taking 43 hours for restore, where as in linux its taking just 3hours.

Attached linux and windows logs, Can you please provide any suggestions?


Thanks,
Praveen



Attachments:

  [application/octet-stream] linux-postgresql-2025-01-07.log (50.6K, ../../YT2PR01MB415852867696C25B6D9E16ACB2ED2@YT2PR01MB4158.CANPRD01.PROD.OUTLOOK.COM/3-linux-postgresql-2025-01-07.log)
  download

  [application/octet-stream] postgresql-2025-01-08.log (80.5K, ../../YT2PR01MB415852867696C25B6D9E16ACB2ED2@YT2PR01MB4158.CANPRD01.PROD.OUTLOOK.COM/4-postgresql-2025-01-08.log)
  download

  [application/octet-stream] postgresql-2025-01-09.log (162.5K, ../../YT2PR01MB415852867696C25B6D9E16ACB2ED2@YT2PR01MB4158.CANPRD01.PROD.OUTLOOK.COM/5-postgresql-2025-01-09.log)
  download

  [application/octet-stream] postgresql-2025-01-10.log (2.3K, ../../YT2PR01MB415852867696C25B6D9E16ACB2ED2@YT2PR01MB4158.CANPRD01.PROD.OUTLOOK.COM/6-postgresql-2025-01-10.log)
  download

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

* Re: Reg pg_restore taking more time in windows compare to linux
@ 2025-01-27 08:53  Laurenz Albe <[email protected]>
  parent: Praveen Kumar Mandula <[email protected]>
  0 siblings, 1 reply; 5+ messages in thread

From: Laurenz Albe @ 2025-01-27 08:53 UTC (permalink / raw)
  To: Praveen Kumar Mandula <[email protected]>; pgsql-performance

On Sun, 2025-01-26 at 07:14 +0000, Praveen Kumar Mandula wrote:
> For one of our customer, when they are restoring DB, its taking more time.
> In Windows its taking around 43 hours, where as in Linux its taking around 3 hours.

Check if the problem is caused by lame hardware.

Other than that, activate pg_stat_statements and see which statements take
more time on the windows machine.  Investigating those statements could help
solve the mystery.

Yours,
Laurenz Albe





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

* Re: [EXTERNAL] - Re: Reg pg_restore taking more time in windows compare to linux
@ 2025-01-27 12:29  Praveen Kumar Mandula <[email protected]>
  parent: Laurenz Albe <[email protected]>
  0 siblings, 2 replies; 5+ messages in thread

From: Praveen Kumar Mandula @ 2025-01-27 12:29 UTC (permalink / raw)
  To: Laurenz Albe <[email protected]>; pgsql-performance

linux is a single log file - linux-postgressql-2025-01-07
remaining are windows logs

Attaching linux and windows logs, are they useful in identifying why its taking time more in windows ?

________________________________
From: Laurenz Albe <[email protected]>
Sent: Monday, January 27, 2025 2:23 PM
To: Praveen Kumar Mandula <[email protected]>; [email protected] <[email protected]>
Subject: [EXTERNAL] - Re: Reg pg_restore taking more time in windows compare to linux

CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe. If you feel that the email is suspicious, please report it using PhishAlarm.


On Sun, 2025-01-26 at 07:14 +0000, Praveen Kumar Mandula wrote:
> For one of our customer, when they are restoring DB, its taking more time.
> In Windows its taking around 43 hours, where as in Linux its taking around 3 hours.

Check if the problem is caused by lame hardware.

Other than that, activate pg_stat_statements and see which statements take
more time on the windows machine.  Investigating those statements could help
solve the mystery.

Yours,
Laurenz Albe


Attachments:

  [application/octet-stream] linux-postgresql-2025-01-07.log (50.6K, ../../YT2PR01MB4158E59517F4782A4D982ABCB2EC2@YT2PR01MB4158.CANPRD01.PROD.OUTLOOK.COM/3-linux-postgresql-2025-01-07.log)
  download

  [application/octet-stream] postgresql-2025-01-08.log (80.5K, ../../YT2PR01MB4158E59517F4782A4D982ABCB2EC2@YT2PR01MB4158.CANPRD01.PROD.OUTLOOK.COM/4-postgresql-2025-01-08.log)
  download

  [application/octet-stream] postgresql-2025-01-09.log (162.5K, ../../YT2PR01MB4158E59517F4782A4D982ABCB2EC2@YT2PR01MB4158.CANPRD01.PROD.OUTLOOK.COM/5-postgresql-2025-01-09.log)
  download

  [application/octet-stream] postgresql-2025-01-10.log (2.3K, ../../YT2PR01MB4158E59517F4782A4D982ABCB2EC2@YT2PR01MB4158.CANPRD01.PROD.OUTLOOK.COM/6-postgresql-2025-01-10.log)
  download

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

* Re: [EXTERNAL] - Re: Reg pg_restore taking more time in windows compare to linux
@ 2025-01-27 15:06  Laurenz Albe <[email protected]>
  parent: Praveen Kumar Mandula <[email protected]>
  1 sibling, 0 replies; 5+ messages in thread

From: Laurenz Albe @ 2025-01-27 15:06 UTC (permalink / raw)
  To: Praveen Kumar Mandula <[email protected]>; pgsql-performance

On Mon, 2025-01-27 at 12:29 +0000, Praveen Kumar Mandula wrote:
> Attaching linux and windows logs, are they useful in identifying why its taking time more in windows ?

No.

I told you what to investigate, right?

Yours,
Laurenz Albe





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

* Re: [EXTERNAL] - Re: Reg pg_restore taking more time in windows compare to linux
@ 2025-01-28 17:12  Laurenz Albe <[email protected]>
  parent: Praveen Kumar Mandula <[email protected]>
  1 sibling, 0 replies; 5+ messages in thread

From: Laurenz Albe @ 2025-01-28 17:12 UTC (permalink / raw)
  To: Praveen Kumar Mandula <[email protected]>; pgsql-performance

On Mon, 2025-01-27 at 12:29 +0000, Praveen Kumar Mandula wrote:
> Attaching linux and windows logs, are they useful in identifying why its taking time more in windows ?

No.

Yours,
Laurenz Albe





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


end of thread, other threads:[~2025-01-28 17:12 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-01-26 07:14 Reg pg_restore taking more time in windows compare to linux Praveen Kumar Mandula <[email protected]>
2025-01-27 08:53 ` Laurenz Albe <[email protected]>
2025-01-27 12:29   ` Re: [EXTERNAL] - Re: Reg pg_restore taking more time in windows compare to linux Praveen Kumar Mandula <[email protected]>
2025-01-27 15:06     ` Re: [EXTERNAL] - Re: Reg pg_restore taking more time in windows compare to linux Laurenz Albe <[email protected]>
2025-01-28 17:12     ` Re: [EXTERNAL] - Re: Reg pg_restore taking more time in windows compare to linux Laurenz Albe <[email protected]>

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