Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Apr 2007 19:17:21 -0400
From:      Kevin Way <kevin@insidesystems.net>
To:        Kris Kennaway <kris@obsecurity.org>
Cc:        freebsd-performance@freebsd.org, Robert Watson <rwatson@FreeBSD.org>
Subject:   Re: Anyone interested in improving postgresql scaling?
Message-ID:  <46255581.8000902@insidesystems.net>
In-Reply-To: <20070417192120.GA5191@xor.obsecurity.org>
References:  <461B0CD0.8090404@insidesystems.net> <20070417174825.X42234@fledge.watson.org> <4625174B.5090208@insidesystems.net> <20070417192120.GA5191@xor.obsecurity.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a cryptographically signed message in MIME format.

--------------ms090308060806080007010801
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Kris Kennaway wrote:
> On Tue, Apr 17, 2007 at 02:51:55PM -0400, Kevin Way wrote:
>
>   
>> I built 7.0 as of 6 days ago, and ran the same test using 8-cores, ULE 
>> and 4BSD.  The results are available at:
>>
>> http://blog.insidesystems.net/articles/2007/04/11/postgresql-scaling-on-6-2-and-7-0
>>
>> Unfortunately, I can't run the additional tests, as the machines in 
>> question have now been deployed to production.  I should have similar 
>> equipment available in a few weeks, and will try the other tests at that 
>> point.
>>     
>
> That's better but still not comparable to my results.  One important
> change you may have missed was to enable MALLOC_PRODUCTION in
> /usr/src/lib/libc/stdlib/malloc.c.  This disables malloc debugging
> which may have significant overhead.
>
> My results from about a month ago:
>
>   http://people.freebsd.org/~kris/scaling/nickel.png
>
> The big dip between 5-7 clients is believed to be due to a ULE bug
> that has known cause but is not yet fixed (on dual core CPUs processes
> are bouncing around between the two cores too much).  The main point
> is that apart from this anomaly in the middle there is approximately
> linear scaling from 1 to 8 CPUs.  On your system it is not scaling
> linearly beyond 4.
>
> I do have some other changes in my kernel but I don't think any of
> them are enough to explain this difference.
>
> Anyway, get back to us when you can retest with the above change.
>
>   

Confirmed, I did miss MALLOC_PRODUCTION.  I incorrectly believed that I 
just needed an empty malloc.conf.  This is somewhat exciting news from 
my vantage point.  I'll post a corrected re-test as soon as I have 
another available 8-core machine.

--------------ms090308060806080007010801
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIMljCC
A2IwggLLoAMCAQICEAvaCxfBP4mOqwl0erTOLjMwDQYJKoZIhvcNAQECBQAwXzELMAkGA1UE
BhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFzcyAxIFB1Ymxp
YyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTk4MDUxMjAwMDAwMFoXDTA4
MDUxMjIzNTk1OVowgcwxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQLExZWZXJp
U2lnbiBUcnVzdCBOZXR3b3JrMUYwRAYDVQQLEz13d3cudmVyaXNpZ24uY29tL3JlcG9zaXRv
cnkvUlBBIEluY29ycC4gQnkgUmVmLixMSUFCLkxURChjKTk4MUgwRgYDVQQDEz9WZXJpU2ln
biBDbGFzcyAxIENBIEluZGl2aWR1YWwgU3Vic2NyaWJlci1QZXJzb25hIE5vdCBWYWxpZGF0
ZWQwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBALtaRIoEFrtV/QN6ii2UTxV4NrgNSrJv
nFS/vOh3Kp258Gi7ldkxQXB6gUu5SBNWLccI4YRCq8CikqtEXKpC8IIOAukv+8I7u77JJwpd
trA2QjO1blSIT4dKvxna+RXoD4e2HOPMxpqOf2okkuP84GW6p7F+78nbN2rISsgJBuSZAgMB
AAGjgbAwga0wDwYDVR0TBAgwBgEB/wIBADBHBgNVHSAEQDA+MDwGC2CGSAGG+EUBBwEBMC0w
KwYIKwYBBQUHAgEWH3d3dy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9zaXRvcnkvUlBBIEluY29y
cC4gQnkgUmVmLixMSUFCLkxURChjKTk4MUgwRgYDVQQDEz9WZXJpU2lnbiBDbGFzcyAxIENB
IEluZGl2aWR1YWwgU3Vic2NyaWJlci1QZXJzb25hIE5vdCBWYWxpZGF0ZWQCEH//rl4NoatS
oVbKWNMj7LQwgfQGCyqGSIb3DQEJEAILMYHkoIHhMIHMMRcwFQYDVQQKEw5WZXJpU2lnbiwg
SW5jLjEfMB0GA1UECxMWVmVyaVNpZ24gVHJ1c3QgTmV0d29yazFGMEQGA1UECxM9d3d3LnZl
cmlzaWduLmNvbS9yZXBvc2l0b3J5L1JQQSBJbmNvcnAuIEJ5IFJlZi4sTElBQi5MVEQoYyk5
ODFIMEYGA1UEAxM/VmVyaVNpZ24gQ2xhc3MgMSBDQSBJbmRpdmlkdWFsIFN1YnNjcmliZXIt
UGVyc29uYSBOb3QgVmFsaWRhdGVkAhB//65eDaGrUqFWyljTI+y0MA0GCSqGSIb3DQEBAQUA
BIIBAChHryWsSWWr++Zjz8hDeCM88oyI6XXuSoka3XKSj+78QJOIWg5ecc/jum+ZZIMYs6Q+
Ap0OknKOONVEi5Jb8QimJe+TKtQgqGKejT1YhI7bG4HFo5UWFZJnb/w5pzp1rN7lkOQeL8AQ
t/iXQJWcqgbpGeXbeptRWA2SsSiT0LBM59WVTmeNWqz6A9HnxcMsqUwTdEmoAW1MOtxEJJFG
YtXqXzhi6vbnf9RKR4+IZ9un1NEELBJvIH2QpyI7quyLV3gpC5cRtVbjXb0W5ZX+LkZseXVI
V2Icqj1GeWVuo8DBBz2efZrsl8nj7ci0Y0hvoCKAjhOaPBIRwC7ixMnIJKMAAAAAAAA=
--------------ms090308060806080007010801--



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