Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Apr 2007 00:04:32 -0400
From:      Kevin Way <kevin@insidesystems.net>
To:        freebsd-performance@freebsd.org
Subject:   Re: Anyone interested in improving postgresql scaling?
Message-ID:  <461B0CD0.8090404@insidesystems.net>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Kris Kennaway wrote:
> If so, then your task is the following:
>
> Make SYSV semaphores less dumb about process wakeups.  Currently
> whenever the semaphore state changes, all processes sleeping on the
> semaphore are woken, even if we only have released enough resources
> for one waiting process to claim.  i.e. there is a thundering herd
> wakeup situation which destroys performance at high loads.  Fixing
> this will involve replacing the wakeup() calls with appropriate
> amounts of wakeup_one().
Could this cause problem cause a situation where an 8-Core system was 
50-75% slower than an otherwise equivalent 2-Core system?

I have a graph of my sysbench/pgsql results here:

    http://blog.insidesystems.net/files/sysctl-pgsq-amd64-wtf.png

As the graph shows, the 8-core system is about half the speed of the 
2-core system at 2 simultaneous threads, and it decays down to 
approximately 1/4 the speed of the 2-core system as the # of threads hits 5.

All other (non-pgsql, non-sysv) tests came back approximately as 
expected, but I'm left wondering if I did something wrong, or if 8 cpus 
are slower than 2, when it comes to Postgres on currently available FreeBSD.

Kevin Way
Inside Systems, Inc.

(Full detail of what I did is available at: 
http://blog.insidesystems.net/articles/2007/04/09/what-did-i-do-wrong )

[-- Attachment #2 --]
0	*H
010	+0	*H
0b0ˠ?	tz.30
	*H
0_10	UUS10U
VeriSign, Inc.1705U.Class 1 Public Primary Certification Authority0
980512000000Z
080512235959Z010U
VeriSign, Inc.10UVeriSign Trust Network1F0DU=www.verisign.com/repository/RPA Incorp. By Ref.,LIAB.LTD(c)981H0FU?VeriSign Class 1 CA Individual Subscriber-Persona Not Validated00
	*H
0ZDUz-Ox6
JoTw*h1ApzKHV-BD\B/;'
]6B3nTOJƚj$e~7jJ	00U00GU @0>0<`HE0-0++www.verisign.com/repository/RPA01U*0(0&$" http://crl.verisign.com/pca1.crl0U0	`HB0
	*H
}oEK8Sd!L+@
9j2!,Yb}U87sfcbSpRR[-Ϭ1Tԋ#+2},|.wDe
Mtst.;5r@1ӲīV00^
RVX#0
	*H
010U
VeriSign, Inc.10UVeriSign Trust Network1F0DU=www.verisign.com/repository/RPA Incorp. By Ref.,LIAB.LTD(c)981H0FU?VeriSign Class 1 CA Individual Subscriber-Persona Not Validated0
070308000000Z
070507235959Z010U
VeriSign, Inc.10UVeriSign Trust Network1F0DU=www.verisign.com/repository/RPA Incorp. by Ref.,LIAB.LTD(c)9810UPersona Not Validated1&0$UDigital ID Class 1 - Netscape10U	Kevin Way1&0$	*H
	kevin@insidesystems.net0"0
	*H
0
0'۵6Wr<0yPw;!d5b"z%g?C@t5ㄻ##lRu8011!WC9Ǿlp	PGZBLۨNMw_#O4N=@y:3pL瓝%B!p
dmeshd~CB	Z~+jp)d{K8(}IYxy2ȧKr}?2zgCkxbɡ(j;KY00	U00DU =0;09`HE0*0(+https://www.verisign.com/rpa0U0U%0++03U,0*0(&$"http://crl.verisign.com/class1.crl0
	*H
$uMspZhkl-t!6ޠ=2#D佻⎖sWl
\,s]t'E(;vL:
QKKo"Ka3bcrR00^
RVX#0
	*H
010U
VeriSign, Inc.10UVeriSign Trust Network1F0DU=www.verisign.com/repository/RPA Incorp. By Ref.,LIAB.LTD(c)981H0FU?VeriSign Class 1 CA Individual Subscriber-Persona Not Validated0
070308000000Z
070507235959Z010U
VeriSign, Inc.10UVeriSign Trust Network1F0DU=www.verisign.com/repository/RPA Incorp. by Ref.,LIAB.LTD(c)9810UPersona Not Validated1&0$UDigital ID Class 1 - Netscape10U	Kevin Way1&0$	*H
	kevin@insidesystems.net0"0
	*H
0
0'۵6Wr<0yPw;!d5b"z%g?C@t5ㄻ##lRu8011!WC9Ǿlp	PGZBLۨNMw_#O4N=@y:3pL瓝%B!p
dmeshd~CB	Z~+jp)d{K8(}IYxy2ȧKr}?2zgCkxbɡ(j;KY00	U00DU =0;09`HE0*0(+https://www.verisign.com/rpa0U0U%0++03U,0*0(&$"http://crl.verisign.com/class1.crl0
	*H
$uMspZhkl-t!6ޠ=2#D佻⎖sWl
\,s]t'E(;vL:
QKKo"Ka3bcrR100010U
VeriSign, Inc.10UVeriSign Trust Network1F0DU=www.verisign.com/repository/RPA Incorp. By Ref.,LIAB.LTD(c)981H0FU?VeriSign Class 1 CA Individual Subscriber-Persona Not Validated^
RVX#0	+0	*H
	1	*H
0	*H
	1
070410040432Z0#	*H
	1%)ʁP:2@v(~j0R	*H
	1E0C0
*H
0*H
0
*H
@0+0
*H
(0	+710010U
VeriSign, Inc.10UVeriSign Trust Network1F0DU=www.verisign.com/repository/RPA Incorp. By Ref.,LIAB.LTD(c)981H0FU?VeriSign Class 1 CA Individual Subscriber-Persona Not Validated^
RVX#0*H
	1䠁010U
VeriSign, Inc.10UVeriSign Trust Network1F0DU=www.verisign.com/repository/RPA Incorp. By Ref.,LIAB.LTD(c)981H0FU?VeriSign Class 1 CA Individual Subscriber-Persona Not Validated^
RVX#0
	*H
vʺ*>e^u	P[73v"%@*&5Awצ;#=/$橌HN
xbLJVH6e:(Eq߱KxL"J@dO܎l}3Vˬ|j~ӺnnPP`98p.}H*Sr]h†+1ECƆ)ιOW>t)c5؜4E"NՏ\jm\+2

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?461B0CD0.8090404>