pg.ddx.io pgsql-performance@postgresql.org mailing list archivehelp / color / mirror / Atom feed
Async Query Processing on Solaris 2+ messages / 1 participants [nested] [flat]
* Async Query Processing on Solaris @ 2003-12-04 06:22 Passynkov, Vadim <Vadim.Passynkov@pathcom.com> 0 siblings, 0 replies; 2+ messages in thread From: Passynkov, Vadim @ 2003-12-04 06:22 UTC (permalink / raw) To: 'pgsql-general@postgresql.org' <pgsql-general@postgresql.org>; +Cc: pgsql-performance I am using Asynchronous Query Processing interface from libpq library. And I got some strange results on Solaris My test select query is 'SELECT * from pg_user;' and I use select system synchronous I/O multiplexer in 'C' The first test sends 10000 select queries using 10 nonblocking connections to database ( PQsendQuery ). The second test sends the same 10000 select queries using 1 connection ( PQexec ). On FreeBSD there is a huge difference between the async and the sync tests. The async test is much faster than sync test. On Solaris there is no speed difference between async and sync test, actually async test is even slower than sync test. Q. Why ? On FreeBSD: /usr/bin/time ./PgAsyncManager async async test start ... 10000 done 9.46 real 3.48 user 1.25 sys /usr/bin/time ./PgAsyncManager sync sync test start ... 10000 done 22.64 real 3.35 user 1.24 sys On Solaris: /usr/bin/time ./PgAsyncManager async async test start ... 10000 done real 20.6 user 2.1 sys 0.4 /usr/bin/time ./PgAsyncManager sync sync test start ... 10000 done real 18.4 user 1.1 sys 0.5 ^ permalink raw reply [nested|flat] 2+ messages in thread
* Async Query Processing on Solaris @ 2003-12-04 12:48 Passynkov, Vadim <Vadim.Passynkov@pathcom.com> 0 siblings, 0 replies; 2+ messages in thread From: Passynkov, Vadim @ 2003-12-04 12:48 UTC (permalink / raw) To: 'pgsql-general@postgresql.org' <pgsql-general@postgresql.org>; +Cc: pgsql-performance I am using Asynchronous Query Processing interface from libpq library. And I got some strange results on Solaris My test select query is 'SELECT * from pg_user;' and I use select system synchronous I/O multiplexer in 'C' The first test sends 10000 select queries using 10 nonblocking connections to database ( PQsendQuery ). The second test sends the same 10000 select queries using 1 connection ( PQexec ). On FreeBSD there is a huge difference between the async and the sync tests. The async test is much faster than sync test. On Solaris there is no speed difference between async and sync test, actually async test is even slower than sync test. Q. Why ? On FreeBSD: /usr/bin/time ./PgAsyncManager async async test start ... 10000 done 9.46 real 3.48 user 1.25 sys /usr/bin/time ./PgAsyncManager sync sync test start ... 10000 done 22.64 real 3.35 user 1.24 sys On Solaris: /usr/bin/time ./PgAsyncManager async async test start ... 10000 done real 20.6 user 2.1 sys 0.4 /usr/bin/time ./PgAsyncManager sync sync test start ... 10000 done real 18.4 user 1.1 sys 0.5 ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2003-12-04 12:48 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2003-12-04 06:22 Async Query Processing on Solaris Passynkov, Vadim <Vadim.Passynkov@pathcom.com> 2003-12-04 12:48 Async Query Processing on Solaris Passynkov, Vadim <Vadim.Passynkov@pathcom.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox