Search Postgresql Archives

Re: hyperthreading and pqlib

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Bruce Momjian <bruce@xxxxxxxxxx> writes:
> luca.ciciriello@xxxxxxxx wrote:
>> Has someone&nbsp;encountered a problem using pqlib in a multi-threading
>> application (POSIX or Win32) when the Intel Hyperthreading is enabled?
>> Disabling the hyperthreading option from the bios of the computer all works
>> fine, otherwise the threaded application does freeze randomically after a
>> while (This behaviour is common to Linux and WIndows version of the
>> multi-threaded application).Any idea?Thanks in advance.Luca. 

> What version of Postgres?  Does the application freeze or the operating
> system?  We have not heard similar reports.  We don't actually recommend
> hyperthreading usually.

What it sounds like to me is that the multithreaded application has bugs
(race conditions) that happen to be more easily exposed when HT is on,
presumably because it's then possible for more threads to actually execute
concurrently.

If libpq is involved in this at all, it's probably because you're
failing to prevent multiple threads from using the same PGconn object at
the same time.  But it's just as likely that the bug is completely
unrelated to libpq.

Anyway, you're going to need to get out your debugger and see where it's
getting stuck before you can make much progress fixing it.

			regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux