I am also trying to move the DatabasePager to its own processor independent of
the rest of OSG and I seem to be having trouble. When I don't use affinity, it
works better than if I do.. When I use affinity, it seems to take hundreds of
frames for the database process to startup (i.e. see DatabasePager::run in the
output log) after its initial database request.
I'm using LINUX.. Can somebody give me an education on what sched_setaffinity()
does.. I see OpenThreads using this call to set the affinity of the thread but
my documentation on this function says this pertains to a process. Does does
this work on a pthread (i.e. Database Pager)?
Paul
----- Original Message ----
From: Zach Deedler <[EMAIL PROTECTED]>
To: osg users <[email protected]>
Sent: Monday, March 12, 2007 1:08:48 PM
Subject: RE: [osg-users] Paging Breakthrough
After I disabled hyper-threading, I still get the hitches.
I'll try to lock the paging thread to one CPU and the graphics threads to
another CPU, and see what I get.
I'm not sure how to verify that a thread's affinity, though. I'll do my best.
Zach
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Zach Deedler
Sent: Monday, March 12, 2007 12:52
To: 'osg users'
Subject: RE: [osg-users] Paging Breakthrough
I'll try that now. I just have to disable it in the BIOS.
Zach
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Osfield
Sent: Monday, March 12, 2007 12:43
To: osg users
Subject: Re: [osg-users] Paging Breakthrough
Hi Zach,
Is it possible to disable hyper threading?
Robert.
On 3/12/07, Zach Deedler <[EMAIL PROTECTED]> wrote:
Hi Robert,
I've tried many different computers. Unfortunately all of them have been
dual-core. Most of them are Pentium D's.
Computer1
CPU: Pentium D 3.2GHz Dual-core w/hyper-threading
RAM: 4GB
OS: WinXP
HD: serial ATA
Computer2
CPU: Pentium D 3.0GHz dual-core
RAM: 1GB
OS: WinXP
HD: IDE
I haven't tried an AMD in awhile.
Zach
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Osfield
Sent: Monday, March 12, 2007 12:06
To: osg users
Subject: Re: [osg-users] Paging Breakthrough
Hi Zach,
This suggests that process migration across cores might be an issue - with
various levels of processor cache being invalidate and reloaded - however, this
isn't something that I'd expect to have such a huge hit, so I'd suspect the OS
handling of this also part of the problem.
What type of hardware setup w.r.t CPU are you using?
Robert.
On 3/12/07, Zach Deedler <[EMAIL PROTECTED] > wrote:
I changed the process affinity of osgviewer to only use one processor (instead
of 4), and I get NO dramatic hitches. Can you explain that?
Notice the solid blue line, below, representing the frame rate:
Any ideas why single proc would run smoother than multi-proc?
osg-zach
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
____________________________________________________________________________________
TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.
http://tv.yahoo.com/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/