Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite9dc342

Browse files
committed
Add mutex test.
1 parent11808a9 commite9dc342

File tree

1 file changed

+60
-2
lines changed

1 file changed

+60
-2
lines changed

‎doc/TODO.detail/performance

Lines changed: 60 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ From owner-pgsql-hackers@hub.org Tue Oct 19 10:31:10 1999
345345
Received: from renoir.op.net (root@renoir.op.net [209.152.193.4])
346346
by candle.pha.pa.us (8.9.0/8.9.0) with ESMTP id KAA29087
347347
for <maillist@candle.pha.pa.us>; Tue, 19 Oct 1999 10:31:08 -0400 (EDT)
348-
Received: from hub.org (hub.org [216.126.84.1]) by renoir.op.net (o1/$Revision: 1.6 $) with ESMTP id KAA27535 for <maillist@candle.pha.pa.us>; Tue, 19 Oct 1999 10:19:47 -0400 (EDT)
348+
Received: from hub.org (hub.org [216.126.84.1]) by renoir.op.net (o1/$Revision: 1.7 $) with ESMTP id KAA27535 for <maillist@candle.pha.pa.us>; Tue, 19 Oct 1999 10:19:47 -0400 (EDT)
349349
Received: from localhost (majordom@localhost)
350350
by hub.org (8.9.3/8.9.3) with SMTP id KAA30328;
351351
Tue, 19 Oct 1999 10:12:10 -0400 (EDT)
@@ -454,7 +454,7 @@ From owner-pgsql-hackers@hub.org Tue Oct 19 21:25:30 1999
454454
Received: from renoir.op.net (root@renoir.op.net [209.152.193.4])
455455
by candle.pha.pa.us (8.9.0/8.9.0) with ESMTP id VAA28130
456456
for <maillist@candle.pha.pa.us>; Tue, 19 Oct 1999 21:25:26 -0400 (EDT)
457-
Received: from hub.org (hub.org [216.126.84.1]) by renoir.op.net (o1/$Revision: 1.6 $) with ESMTP id VAA10512 for <maillist@candle.pha.pa.us>; Tue, 19 Oct 1999 21:15:28 -0400 (EDT)
457+
Received: from hub.org (hub.org [216.126.84.1]) by renoir.op.net (o1/$Revision: 1.7 $) with ESMTP id VAA10512 for <maillist@candle.pha.pa.us>; Tue, 19 Oct 1999 21:15:28 -0400 (EDT)
458458
Received: from localhost (majordom@localhost)
459459
by hub.org (8.9.3/8.9.3) with SMTP id VAA50745;
460460
Tue, 19 Oct 1999 21:07:23 -0400 (EDT)
@@ -1002,3 +1002,61 @@ Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/
10021002
phone: +007(095)939-16-83, +007(095)939-23-83
10031003

10041004

1005+
From pgsql-hackers-owner+M11649@postgresql.org Wed Aug 1 15:22:46 2001
1006+
Return-path: <pgsql-hackers-owner+M11649@postgresql.org>
1007+
Received: from postgresql.org (webmail.postgresql.org [216.126.85.28])
1008+
by candle.pha.pa.us (8.10.1/8.10.1) with ESMTP id f71JMjN09768
1009+
for <pgman@candle.pha.pa.us>; Wed, 1 Aug 2001 15:22:45 -0400 (EDT)
1010+
Received: from postgresql.org.org (webmail.postgresql.org [216.126.85.28])
1011+
by postgresql.org (8.11.3/8.11.1) with SMTP id f71JMUf62338;
1012+
Wed, 1 Aug 2001 15:22:30 -0400 (EDT)
1013+
(envelope-from pgsql-hackers-owner+M11649@postgresql.org)
1014+
Received: from sectorbase2.sectorbase.com (sectorbase2.sectorbase.com [63.88.121.62] (may be forged))
1015+
by postgresql.org (8.11.3/8.11.1) with SMTP id f71J4df57086
1016+
for <pgsql-hackers@postgresql.org>; Wed, 1 Aug 2001 15:04:40 -0400 (EDT)
1017+
(envelope-from vmikheev@SECTORBASE.COM)
1018+
Received: by sectorbase2.sectorbase.com with Internet Mail Service (5.5.2653.19)
1019+
id <PG1LSSPZ>; Wed, 1 Aug 2001 12:04:31 -0700
1020+
Message-ID: <3705826352029646A3E91C53F7189E32016705@sectorbase2.sectorbase.com>
1021+
From: "Mikheev, Vadim" <vmikheev@SECTORBASE.COM>
1022+
To: "'pgsql-hackers@postgresql.org'" <pgsql-hackers@postgresql.org>
1023+
Subject: [HACKERS] Using POSIX mutex-es
1024+
Date: Wed, 1 Aug 2001 12:04:24 -0700
1025+
MIME-Version: 1.0
1026+
X-Mailer: Internet Mail Service (5.5.2653.19)
1027+
Content-Type: text/plain;
1028+
charset="koi8-r"
1029+
Precedence: bulk
1030+
Sender: pgsql-hackers-owner@postgresql.org
1031+
Status: OR
1032+
1033+
1. Just changed
1034+
TAS(lock) to pthread_mutex_trylock(lock)
1035+
S_LOCK(lock) to pthread_mutex_lock(lock)
1036+
S_UNLOCK(lock) to pthread_mutex_unlock(lock)
1037+
(and S_INIT_LOCK to share mutex-es between processes).
1038+
1039+
2. pgbench was initialized with scale 10.
1040+
SUN WS 10 (512Mb), Solaris 2.6 (I'm unable to test on E4500 -:()
1041+
-B 16384, wal_files 8, wal_buffers 256,
1042+
checkpoint_segments 64, checkpoint_timeout 3600
1043+
50 clients x 100 transactions
1044+
(after initialization DB dir was saved and before each test
1045+
copyed back and vacuum-ed).
1046+
1047+
3. No difference.
1048+
Mutex version maybe 0.5-1 % faster (eg: 37.264238 tps vs 37.083339 tps).
1049+
1050+
So - no gain, but no performance loss "from using pthread library"
1051+
(I've also run tests with 1 client), at least on Solaris.
1052+
1053+
And so - looks like we can use POSIX mutex-es and conditional variables
1054+
(not semaphores; man pthread_cond_wait) and should implement light lmgr,
1055+
probably with priority locking.
1056+
1057+
Vadim
1058+
1059+
---------------------------(end of broadcast)---------------------------
1060+
TIP 2: you can get off all lists at once with the unregister command
1061+
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
1062+

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp