|
345 | 345 | Received: from renoir.op.net ( [email protected] [209.152.193.4])
|
346 | 346 | by candle.pha.pa.us (8.9.0/8.9.0) with ESMTP id KAA29087
|
347 | 347 | for < [email protected]>; 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 < [email protected]>; 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 < [email protected]>; Tue, 19 Oct 1999 10:19:47 -0400 (EDT) |
349 | 349 | Received: from localhost (majordom@localhost)
|
350 | 350 | by hub.org (8.9.3/8.9.3) with SMTP id KAA30328;
|
351 | 351 | Tue, 19 Oct 1999 10:12:10 -0400 (EDT)
|
|
454 | 454 | Received: from renoir.op.net ( [email protected] [209.152.193.4])
|
455 | 455 | by candle.pha.pa.us (8.9.0/8.9.0) with ESMTP id VAA28130
|
456 | 456 | for < [email protected]>; 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 < [email protected]>; 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 < [email protected]>; Tue, 19 Oct 1999 21:15:28 -0400 (EDT) |
458 | 458 | Received: from localhost (majordom@localhost)
|
459 | 459 | by hub.org (8.9.3/8.9.3) with SMTP id VAA50745;
|
460 | 460 | Tue, 19 Oct 1999 21:07:23 -0400 (EDT)
|
|
1002 | 1002 | phone: +007(095)939-16-83, +007(095)939-23-83
|
1003 | 1003 |
|
1004 | 1004 |
|
| 1005 | +From [email protected] Wed Aug 1 15:22:46 2001 |
| 1006 | + |
| 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 < [email protected]>; 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 | + |
| 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 < [email protected]>; Wed, 1 Aug 2001 15:04:40 -0400 (EDT) |
| 1017 | + |
| 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" < [email protected]> |
| 1022 | + |
| 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 | + |
| 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 [email protected]) |
| 1062 | + |
0 commit comments