Cool VL Viewer forum

View unanswered posts | View active topics It is currently 2022-07-04 12:31:49



Reply to topic  [ 8 posts ] 
High CPU Usage on entering new regions 
Author Message

Joined: 2009-09-08 01:27:46
Posts: 172
Reply with quote
When entering new regions with Cool VL Viewer 1.25, I experience very high CPU load, with the viewer taking up an average of 90-95% CPU usage on both cores and a framerate reduction of one half. After everything has loaded, the CPU usage levels off and drops to what it was in 1.23/1.24


2010-08-16 14:52:05
Profile WWW

Joined: 2009-03-17 18:42:51
Posts: 4937
Reply with quote
Please, provide the info as listed in the rules for this forum. I can't investigate if I don't even know what OS and OS version you are using...


2010-08-16 17:29:20
Profile WWW

Joined: 2009-09-08 01:27:46
Posts: 172
Reply with quote
Sorry, forgot about that:

Quote:
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 5000+
Memory: 3278 MB
OS Version: Linux 2.6.34-ARCH #1 SMP PREEMPT Tue Aug 10 21:38:22 CEST 2010 i686
Graphics Card Vendor: NVIDIA Corporation
Graphics Card: GeForce 9800 GT/PCI/SSE2/3DNOW!
OpenGL Version: 3.3.0 NVIDIA 256.44

libcurl Version: libcurl/7.16.4 OpenSSL/0.9.7c zlib/1.2.3.3 c-ares/1.4.0
J2C Decoder Version: KDU
Audio Driver Version: OpenAL, version 1.1 ALSOFT 1.10.622 / OpenAL Community / OpenAL Soft: PulseAudio Software
Qt Webkit Version: 4.5.2


2010-08-16 23:30:10
Profile WWW

Joined: 2009-03-17 18:42:51
Posts: 4937
Reply with quote
I'm myself using Linux and never encountered such an issue...

You didn't provide the whole copy of the about screen (viewer and server version), but the only case I know of that would result in such an issue would be the use of a viewer complied by yourself and using a libcurl version that is not using c-ares (which provides non-blocking DNS calls). The libcurl version provided together with the viewer does use c-ares and doesn't suffer from such blocking calls during DNS lookups (which occur much more often with v1.25 than with v1.23 if you are using the "HTTP texture loading" advanced render setting in the former).


2010-08-17 00:01:14
Profile WWW

Joined: 2009-09-08 01:27:46
Posts: 172
Reply with quote
Here's the full one:

Quote:
Cool VL Viewer 1.25.0 (1) Aug 14 2010 14:51:21 (Cool VL Viewer)
Release Notes

Built with GCC version 40102

CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 5000+
Memory: 3278 MB
OS Version: Linux 2.6.34-ARCH #1 SMP PREEMPT Tue Aug 10 21:38:22 CEST 2010 i686
Graphics Card Vendor: NVIDIA Corporation
Graphics Card: GeForce 9800 GT/PCI/SSE2/3DNOW!
OpenGL Version: 3.3.0 NVIDIA 256.44

libcurl Version: libcurl/7.16.4 OpenSSL/0.9.7c zlib/1.2.3.3 c-ares/1.4.0
J2C Decoder Version: KDU
Audio Driver Version: OpenAL, version 1.1 ALSOFT 1.10.622 / OpenAL Community / OpenAL Soft: PulseAudio Software
Qt Webkit Version: 4.5.2


2010-08-17 14:08:39
Profile WWW

Joined: 2009-03-17 18:42:51
Posts: 4937
Reply with quote
I see nothing wrong with your setting.

The only change between v1.24 and v1.25 is that v1.25 (and the latest v1.23 release too) got the objects caching fixed, which results in a much faster rezzing speed for region you already visited once in the past and therefore in a much higher number of textures decoding per second on login and TP in these regions (since the viewer doesn't have to wait for the server to send the objects parameters among which are the texture ids).

If your viewer is configured to "Run Multiple Thread" (Advanced -> Rendering menu), then it will spawn a new thread for each texture decoding, and Linux will spread the load over the free cores of your CPU. Here, with a quad core (Q6600 @ 3.4GHz), I don't see any slow down in the frame rate, and the CPU load stays low (around 30-40%), but with a slower dual core, you might indeed get a 100% CPU load during initial texture decoding.

The efficiency of the Linux scheduler and the response time of the system to events during high CPU loads may also vary from one distro to another, depending on what preemptive mode is used (mine is configured for "Voluntary Kernel Preemption"), and the timer frequency (mine is set for 300Hz).


2010-08-17 16:41:29
Profile WWW

Joined: 2009-09-08 01:27:46
Posts: 172
Reply with quote
I'll have to have a look at that, then. My CPU is a 2.6ghz dual-core, so it probably will have higher CPU usage than yours. Do you know how I can check which preemptive mode my kernel is using? And does setting it require a kernel recompile?


2010-08-19 16:19:37
Profile WWW

Joined: 2009-03-17 18:42:51
Posts: 4937
Reply with quote
Zauber Exonar wrote:
I'll have to have a look at that, then. My CPU is a 2.6ghz dual-core, so it probably will have higher CPU usage than yours. Do you know how I can check which preemptive mode my kernel is using?
You should be able to find the config file for your kernel in the /boot directory. Look for the following settings:
CONFIG_PREEMPT_NONE ( = No Forced Preemption)
CONFIG_PREEMPT_VOLUNTARY ( = Voluntary Kernel Preemption)
CONFIG_PREEMPT ( = Preemptible Kernel)

CONFIG_PREEMPT_VOLUNTARY is a good compromise.

Quote:
And does setting it require a kernel recompile?
Yes.


2010-08-19 21:08:44
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 8 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.