Re: Configuring IDS for multi-threaded processors
Posted in 2009
Niagra 2 is just as bad as Niagra 1 just worse because is supports more
cores and more threads per core. The major actual improvement of Niagra2
over 1 is that Niagra1 only had one FPU per chip while Niagra2 has one per
core. Otherwise, Niagra2 is probably worse than Niagra1 because one expects
more and gets less.
One client demo'd a 4 processor, 16 core, 128 thread Niagra2 box to replace
an older SPARC IV system with 16 single core processors. They called me in
when the data load to benchmark the machine was running 4 times slower than
their development box (on which they perform the same upload from production
weekly) which was heavily loaded with developers. I could not believe it,
but we could not tune that beast to get anywhere near the performance of the
older processors! It's better if you disable the processor threads at the
OS level, but still not good because the cores are just too slow. The chip
is optimized for badly written C++ and Java style apps running hundreds of
threads the perform a few brief operations and then go to sleep waiting for
each other. IDS doesn't work that way. There are a small number of threads
of operation that are highly CPU intensive. Besides that these threads are
not OS threads but use a thread library developed by Informix (for many
reasons) that is optimized for the way a database server needs its threads
to work. It is non-preemptive and uses its own scheduler so the processors
and OS know nothing about these threads for internal scheduling purposes.
See Kofer's links and do an internet search for "Niagra Performance". I've
also had discussions with the IBM benchmark team, but nothing in writing I
can show you.
Art
Art S. Kagel
Oninit (www.oninit.com)
IIUG Board of Directors (art@iiug.org)
Disclaimer: Please keep in mind that my own opinions are my own opinions and
do not reflect on my employer, Oninit, the IIUG, nor any other organization
with which I am associated either explicitly or implicitly. Neither do
those opinions reflect those of other individuals affiliated with any entity
with which I am affiliated nor those of the entities themselves.
On Mon, Jun 8, 2009 at 9:32 AM, Cesar Inacio Martins <
cesar_inacio_martins@yahoo.com.br> wrote:
> Hi Art,
>
> Can you tell me if this behave occur with processor Niagra 2 (UltraSPARC
> T2) ?
> Where I can get documentation about this kind of information? threads
> optimization on Sun Processors (T1 and T2)...
>
>
> --- Em *seg, 8/6/09, Art Kagel <art.kagel@gmail.com>* escreveu:
>
>
> De: Art Kagel <art.kagel@gmail.com>
> Assunto: Re: Configuring IDS for multi-threaded processors
> Para: "Ian Michael Gumby" <im_gumby@hotmail.com>
> Cc: informix-list@iiug.org, david@smooth1.co.uk
> Data: Segunda-feira, 8 de Junho de 2009, 8:02
>
> David,
>
> You cannot take advantage of the virtual threads in the Niagra processors.
> They were optimized for POSIX threads and perform poorly for single -OS
> LEVEL- threaded applications such as the oninit processes in IDS. To take
> best advantage of the Niagra processors with IDS you have to disable the
> hardware virtual threads and just count on the physical cores when
> calculating the number of CPU VPs to use. This advice from my own testing
> with a client, several posts on the Internet, and the experience of some IBM
> Informix people. Obviously YMMV applies and one should test things oneself,
> but that's my advice. Note that the individual physical cores of even the
> fastest Niagra processor are much slower than the cores in the latest Intel,
> AMD, and PowerPC processors with the obvious results in cross testing.
>
> Art
>
> Art S. Kagel
> Oninit (www.oninit.com)
> IIUG Board of Directors (art@iiug.org <http://mc/compose?to=art@iiug.org>)
>
> Disclaimer: Please keep in mind that my own opinions are my own opinions
> and do not reflect on my employer, Oninit, the IIUG, nor any other
> organization with which I am associated either explicitly or implicitly.
> Neither do those opinions reflect those of other individuals affiliated
> with any entity with which I am affiliated nor those of the entities
> themselves.
>
>
>
> On Sun, Jun 7, 2009 at 8:50 PM, Ian Michael Gumby <im_gumby@hotmail.com<http://mc/compose?to=im_gumby@hotmail.com>
> > wrote:
>
>>
>>
>> > From: david@smooth1.co.uk <http://mc/compose?to=david@smooth1.co.uk>
>>
>> >
>> > On thing you may find is that certain latches/mutexs with in the
>> > instance run hot as they are not tuned for such a large number of CPU
>> > VPs, making
>> > the latches more fine grained make removed bottlenecks with the number
>> > of CPU VPs.
>> >
>> >
>> > I would get someone from the IBM Developement Labs involved as this is
>> > probably the instance with the largest number of CPU VPS in existance.
>> >
>> > The IBM engineers should be keen to make Informix scale to 100+ cpus
>> > and would enjoy the task of tuning this instance.
>> >
>>
>> David,
>>
>> I'd take networking out of the picture and focus on the engine running
>> tests via a shared memory connection.
>> Not that I don't think that there *will* be issues with networking, but
>> that I think we need some form of isolation to force focus on fewer moving
>> parts.
>>
>> I do agree that there are some issues with context switching you're going
>> to have issues, but context switching for 128 vcpus should not be that
>> difficult. Of course having said that... I imagine that when they did
>> certain design decisions, they didn't consider context switching for
>> anything remotely close to 128 vcpus.
>>
>> So is it safe to say that for massively large databases that going the
>> shared nothing distributed route like... dare I say it? ... XPS? 8^0 :-P ...
>> is the way to go? (Each node can be SMPed). The other reason I would
>> considered a clustered shared nothing is that using OTC components, you can
>> build it cheaper than massive SMP boxes. (But I could be wrong... Which is
>> more, a 16 socket Sun box, or a blade center with 8 dual socket blades?
>> (Assuming Sun's sparc VII+ chips are available for blades...
>>
>> I'd wager that IBM is aware of this and working out a solution for it. Of
>> course I don't know if they'll do a DB2 version first, or an IDS version. My
>> gut tells me that in the world of IBM, DB2 is still queen and IDS is that
>> evil stepchild who needs to sweep the floors and do the dishes... ;-) (OK,
>> so I fractured two fairy tales... but you get the idea!)
>>
>> -G
>>
>>
>> ------------------------------
>> Windows Live™ SkyDrive™: Get 25 GB of free online storage. Get it on your
>> BlackBerry or iPhone.<http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_SD_25GB_062009>
>>
>> _______________________________________________
>> Informix-list mailing list
>> Informix-list@iiug.org <http://mc/compose?to=Informix-list@iiug.org>
>> http://www.iiug.org/mailman/listinfo/informix-list
>>
>>
>
> -----Anexo incorporado-----
>
> _______________________________________________
> Informix-list mailing list
> Informix-list@iiug.org <http://mc/compose?to=Informix-list@iiug.org>
> http://www.iiug