Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Jan 2008 18:26:35 +0200
From:      "Niki Denev" <nike_d@cytexbg.com>
To:        freebsd-performance@freebsd.org
Subject:   Re: postgresql-performance using sysbench
Message-ID:  <2e77fc10801310826v2fabb5g594840241784fc7@mail.gmail.com>
In-Reply-To: <9bbcef730801301157n25684018y3d43bfdd0301a8dd@mail.gmail.com>
References:  <b41c75520801280701x35e628dk90841b55cac77045@mail.gmail.com> <b41c75520801281221i5fbb32f3p1e2f3be40a8dfa74@mail.gmail.com> <479E3C5E.1070405@FreeBSD.org> <b41c75520801281246q16d305ecue915e66bea6ac5ab@mail.gmail.com> <fnmrri$pi4$1@ger.gmane.org> <b41c75520801290146g4e6e2c17oe2fc432245253ba7@mail.gmail.com> <47A043FD.9090607@FreeBSD.org> <fnpjvo$n8i$1@ger.gmane.org> <47A0CD11.802@FreeBSD.org> <9bbcef730801301157n25684018y3d43bfdd0301a8dd@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Jan 30, 2008 9:57 PM, Ivan Voras <ivoras@freebsd.org> wrote:
> On 30/01/2008, Kris Kennaway <kris@freebsd.org> wrote:
>
> > Rewrite of the lockmgr primitive, for starters.  Then we'll see what
> > remains.
>
> Ok, I know about the lockmgr efforts, and they will surely help some
> loads. I'll try to compile the results I've been talking about in a
> few days and post them.
>

Just a thought on the effect that HZ has on filesystem (and overall)
performance :
Linux has sort of backtracked from defaulting to HZ=1000 and enable it
only on kernels compiled
for "Desktop" work, and setting HZ=250 for the "Server" profile.

A very quick /usr/ports/benchmarks/postmark benchmark on my machine
(FreeBSD 7.0 PREREL with ULE on dualcore C2D) shows this :

HZ=1000
Time:
        239 seconds total
        122 seconds of transactions (4 per second)

Files:
        749 created (3 per second)
                Creation alone: 500 files (4 per second)
                Mixed with transactions: 249 files (2 per second)
        267 read (2 per second)
        233 appended (1 per second)
        749 deleted (3 per second)
                Deletion alone: 498 files (498 per second)
                Mixed with transactions: 251 files (2 per second)

Data:
        573.06 megabytes read (2.40 megabytes per second)
        1699.49 megabytes written (7.11 megabytes per second)

HZ=250
Time:
        178 seconds total
        79 seconds of transactions (6 per second)

Files:
        749 created (4 per second)
                Creation alone: 500 files (5 per second)
                Mixed with transactions: 249 files (3 per second)
        267 read (3 per second)
        233 appended (2 per second)
        749 deleted (4 per second)
                Deletion alone: 498 files (498 per second)
                Mixed with transactions: 251 files (3 per second)

Data:
        573.06 megabytes read (3.22 megabytes per second)
        1699.49 megabytes written (9.55 megabytes per second)

A measurable increase in performance when using HZ=250, at least in
this simple benchmark.

The question is do we need such sort of profiles as in Linux, i.e.
HZ=250 for servers and HZ=1000 for desktops.
Of course anyone can set HZ to whatever value he likes, but maybe it
should be better
if it is documented with some advisory settings for different
workloads (server/desktop).

What do you think?

P.S.: Maybe it would be interesting to see how FreeBSD compares to
Linux with equal HZ settings on the benchmark in the first post?



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