[Paraview] What is the performance bottleneck in ParaViewWeb?

David E DeMarle dave.demarle at kitware.com
Mon Mar 17 11:46:01 EDT 2014


David,

Did you ParaView come from the openFOAM distribution? If so I wonder what
differences there are in the compilation settings and patch sets for
openFOAM's packaged ParaView and the binaries from Kitware. You might try
installing the 4.1 binary from Kitware in a different location and
comparing that to what you have.

cheers

David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909


On Mon, Mar 17, 2014 at 11:35 AM, Sebastien Jourdain <
sebastien.jourdain at kitware.com> wrote:

> That means it is using the GPU to do the rendering, which is good and
> that's what is expected.
>
> But I still don't understand why you get so terrible fps.
>
> Seb
>
> PS: Bring back the list in the loop ;-)
>
>
> On Mon, Mar 17, 2014 at 9:26 AM, David Torres <david.torres at renuda.com>wrote:
>
>>  > Do you see a pop-up window showing up with the 3D content in it on
>> the server machine?
>>
>> Yes I do see a pop-up window with the axes at the first moment. But then
>> it turns black and I cannot see the content in it (only in the browser).
>> This pop-up window is however changing its size when I change the size of
>> the browser window (so it is still connected in some way).
>>
>> Does this say something to you?
>>
>> Best regards,
>>
>>    David Torres
>>
>>  Computer Scientist
>> Renuda UK
>>
>>  tel: +44 (0)20 3371 1709
>> web: www.renuda.com
>>
>>  Renuda UK is registered in England and Wales.  Company number 6218863.
>> VAT registration number 918 6490 91. Registered office: 35 Charleville
>> Road, London W14 9JJ, UK.
>> Renuda registered trade mark.
>>      ------------------------------
>> *From:* Sebastien Jourdain [sebastien.jourdain at kitware.com]
>> *Sent:* 17 March 2014 15:07
>> *To:* David Torres
>>
>> *Subject:* Re: What is the performance bottleneck in ParaViewWeb?
>>
>>   You are...
>>
>>  This is really strange...
>>
>>  Do you see a pop-up window showing up with the 3D content in it on the
>> server machine?
>>
>>  Seb
>>
>>
>> On Mon, Mar 17, 2014 at 8:09 AM, David Torres <david.torres at renuda.com>wrote:
>>
>>>  Hi,
>>>
>>>
>>> > Are you using the same paraview binary when you compare pvweb and pv?
>>>
>>>  Yes I am using the same (I think)
>>>
>>> I am using */opt/paraviewopenfoam410/bin/paraview* to run ParaView
>>>
>>> and */opt/paraviewopenfoam410/bin/pvpython
>>> lib/paraview-4.1/site-packages/paraview/web/pv_web_visualizer.py* *--content
>>> /opt/**paraviewopenfoam410/share/paraview-4.1/www --data-dir
>>> /home/myuser/VTKData/ --port 8080...* to run ParaViewWeb.
>>>
>>>
>>> Best regards,
>>>
>>>    David Torres
>>>
>>>  Computer Scientist
>>> Renuda UK
>>>
>>>  tel: +44 (0)20 3371 1709
>>> web: www.renuda.com
>>>
>>>  Renuda UK is registered in England and Wales.  Company number 6218863.
>>> VAT registration number 918 6490 91. Registered office: 35 Charleville
>>> Road, London W14 9JJ, UK.
>>> Renuda registered trade mark.
>>>      ------------------------------
>>> *From:* Sebastien Jourdain [sebastien.jourdain at kitware.com]
>>> *Sent:* 17 March 2014 14:03
>>>
>>> *To:* David Torres
>>> *Cc:* paraview at paraview.org
>>>  *Subject:* Re: What is the performance bottleneck in ParaViewWeb?
>>>
>>>    Are you using the same paraview binary when you compare pvweb and
>>> pv?
>>>
>>> On Mar 17, 2014, at 5:24, David Torres <david.torres at renuda.com> wrote:
>>>
>>>   Hi Seb,
>>>
>>> Thank you for the information :)
>>>
>>> There is not network involved. I am using the same machine as client and
>>> server (I access like this: http://localhost:8080/apps/Visualizer/)
>>>
>>> I changed the quality of the images and there is no difference in the
>>> performance (you were right). So, then, what is the bottleneck? Server and
>>> client is the same machine and I can move fluently (25-30fps) the models I
>>> am opening with ParaViewWeb if I open them just with ParaView.
>>>
>>> By the way, I have the bad performance in ParaViewWeb (2-5 fps) even if
>>> I don't load anything and I only move the axes. Any idea where the
>>> bottleneck might be? Anything I can do to find it out?
>>>
>>> Many thanks in advance for your help.
>>>
>>> Best regards,
>>>
>>>    David Torres
>>>
>>>  Computer Scientist
>>> Renuda UK
>>>
>>>  tel: +44 (0)20 3371 1709
>>> web: www.renuda.com
>>>
>>>  Renuda UK is registered in England and Wales.  Company number 6218863.
>>> VAT registration number 918 6490 91. Registered office: 35 Charleville
>>> Road, London W14 9JJ, UK.
>>> Renuda registered trade mark.
>>>      ------------------------------
>>> *From:* Sebastien Jourdain [sebastien.jourdain at kitware.com]
>>> *Sent:* 14 March 2014 20:22
>>> *To:* David Torres
>>> *Cc:* paraview at paraview.org
>>> *Subject:* Re: [Paraview] Where is the properties file for ParaViewWeb?
>>>
>>>   Are you trying directly on the machine that act as the server, or
>>> using a remote client? On what network type?
>>> Because usually when I get 2-5 fps, it's because the server is in US and
>>> I'm on a basic DSL line in France...
>>>
>>>  I'm not sure that lowering the image quality will change that much. In
>>> fact, it already do it by default.
>>>
>>>  I'm still thinking the issue is somewhere else.
>>>
>>>  Anyway to change the quality, you will need to edit the
>>> www/apps/Visualizer/index.html
>>>
>>>  [...]
>>>  // Build application
>>> function init() {
>>>    // - viewport
>>>    $(".viewport-container").empty();
>>>    viewport = vtkWeb.createViewport({
>>>          session: session,
>>>           interactiveQuality: 30,
>>>          stillQuality: 100
>>>     });
>>>  [...]
>>>
>>>  Here is the full documentation about that:
>>> http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/index.html#!/api/vtkWeb.Viewport
>>>
>>>  Seb
>>>
>>>
>>> On Fri, Mar 14, 2014 at 12:12 PM, David Torres <david.torres at renuda.com>wrote:
>>>
>>>>  Hi Seb,
>>>>
>>>> I tested in Chrome 26.0.1410.63 and in Firefox 20.0 (Mozilla Firefox
>>>> for Ubuntu canonical - 1.0)
>>>> I got similar results. I also noticed that the selector which changes
>>>> from "Images" to "WebGL" or "VGL - WebGl" is not doing anything (or at
>>>> least I cannot see any difference). In any case I am interested in "Images"
>>>> i.e. rendering in the server. But I would need to low the quality of the
>>>> images in order to boost the performance.
>>>>
>>>> Could you point any instructions that allow me to change the images
>>>> resolution when the model is being moved?
>>>>
>>>> Many many thanks :)
>>>>
>>>> PS: Only as an example, in order to clarify: I have tried a mesh with
>>>> 100 cells and a mesh with 10 million cells. I am getting exactly the same
>>>> performance for both of them (2-5 fps).
>>>>
>>>>
>>>> Best regards,
>>>>
>>>>    David Torres
>>>>
>>>>  Computer Scientist
>>>> Renuda UK
>>>>
>>>>  tel: +44 (0)20 3371 1709
>>>> web: www.renuda.com
>>>>
>>>>  Renuda UK is registered in England and Wales.  Company number 6218863.
>>>> VAT registration number 918 6490 91. Registered office: 35 Charleville
>>>> Road, London W14 9JJ, UK.
>>>> Renuda registered trade mark.
>>>>      ------------------------------
>>>> *From:* Sebastien Jourdain [sebastien.jourdain at kitware.com]
>>>> *Sent:* 14 March 2014 16:38
>>>>
>>>> *To:* David Torres
>>>> *Cc:* paraview at paraview.org
>>>> *Subject:* Re: [Paraview] Where is the properties file for ParaViewWeb?
>>>>
>>>>    Hi David,
>>>>
>>>>  you are right, your browser will just display the images that are
>>>> sent by ParaViewWeb.
>>>>
>>>>  BTW, which browser+version are you using?
>>>>
>>>>  Thanks,
>>>>
>>>>  Seb
>>>>
>>>>
>>>> On Fri, Mar 14, 2014 at 3:10 AM, David Torres <david.torres at renuda.com>wrote:
>>>>
>>>>>  Thank you Sabastien,
>>>>>
>>>>> The thing is that in my machine, I have a good performance with
>>>>> ParaView. The bad performance is with ParaViewWeb. I am assuming that this
>>>>> is because the quality of the images that is sending is too high (I think
>>>>> the browser is not rendering, only receiving images from the server, am I
>>>>> right?).
>>>>>
>>>>> For the record, I installed ParaView using
>>>>> `sudo apt-get install paraviewopenfoam410`
>>>>> as `sudo apt-get install paraview` was installing the version 3.X and
>>>>> here [1] says that 4.1 or newer is required in order to have ParaViewWeb.
>>>>>
>>>>> Thank you for your help.
>>>>>
>>>>> [1]
>>>>> http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/index.html#!/guide/quick_start
>>>>>
>>>>> Best regards,
>>>>>
>>>>>    David Torres
>>>>>
>>>>>  Computer Scientist
>>>>> Renuda UK
>>>>>
>>>>>  tel: +44 (0)20 3371 1709
>>>>> web: www.renuda.com
>>>>>
>>>>>  Renuda UK is registered in England and Wales.  Company number
>>>>> 6218863.
>>>>> VAT registration number 918 6490 91. Registered office: 35 Charleville
>>>>> Road, London W14 9JJ, UK.
>>>>> Renuda registered trade mark.
>>>>>      ------------------------------
>>>>> *From:* Sebastien Jourdain [sebastien.jourdain at kitware.com]
>>>>> *Sent:* 14 March 2014 04:02
>>>>> *To:* David Torres
>>>>> *Cc:* paraview at paraview.org
>>>>> *Subject:* Re: [Paraview] Where is the properties file for
>>>>> ParaViewWeb?
>>>>>
>>>>>    Hi David,
>>>>>
>>>>>  The file pw-config.properties is used with the Java version of the
>>>>> launcher. Now with the latest release, we also provide a Python one.
>>>>> =>
>>>>> http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/index.html#!/guide/py_launcher
>>>>>
>>>>>  Moreover, those configuration files are used to configure a
>>>>> front-end web server that will trigger pvpython command lines. For testing
>>>>> out ParaViewWeb, those front-end are optional. Although, it should be
>>>>> pretty easy to setup the python one by creating a config file that match
>>>>> your local setting.
>>>>> For real deployment read the EC2 documentation that explain how to
>>>>> setup apache to deal with the ws forwarding.
>>>>>
>>>>>  Regarding the performances, on a local machine, you should be around
>>>>> 30 fps. So I suspect, you don't have a proper driver for your graphic card.
>>>>> If you have an Nvidia graphic card, try to install their driver.
>>>>>
>>>>>  Thanks for letting me know that the script does not work for you,
>>>>> I'll fix it once I have a chance.
>>>>>
>>>>>  Seb
>>>>>
>>>>>
>>>>> On Thu, Mar 13, 2014 at 11:01 AM, David Torres <
>>>>> david.torres at renuda.com> wrote:
>>>>>
>>>>>>  Hello,
>>>>>> in Linux using apt-get, and started the
>>>>>>
>>>>>> I am starting with ParaViewWeb. I installed Paraview 4.1.0. in Linux
>>>>>> using apt-get, and started the ParaViewWeb server using the guide in
>>>>>> [1].
>>>>>>
>>>>>> I found is working very slow, even in local (2-5fps I think). And I
>>>>>> read that I could play with images quality but I don't know where can I
>>>>>> change them. Here [2] says there is a file called *
>>>>>> pw-config.properties *which I couldn't find (I used `find / -name
>>>>>> pw-config.properties`). I guess it belongs to a previous ParaView version.
>>>>>>
>>>>>> Then, my question is: where is the properties file in 4.1.0 and what
>>>>>> is its name? Will I be able to change the quality of the images there?
>>>>>>
>>>>>> By the way, I tried the script provided in 'Simple Install' section
>>>>>> in [1]. It has a mistake in the line 15.
>>>>>> It is:
>>>>>> `data = "ParaViewData-v4.1.zip"`
>>>>>> and it should be
>>>>>> `data = "ParaViewData-v4.1.0.zip"`
>>>>>>
>>>>>> However, after correcting that, is still failing in line 160 at some
>>>>>> point (at least in Linux) and I couldn't find the error.
>>>>>>
>>>>>> Thank you in advance for your help.
>>>>>>
>>>>>> [1]
>>>>>> http://www.paraview.org/ParaView3/Doc/Nightly/www/js-doc/index.html#!/guide/quick_start
>>>>>> [2] http://www.paraview.org/Wiki/ParaViewWeb_Server_setting
>>>>>>
>>>>>> Best regards,
>>>>>>
>>>>>>    David Torres
>>>>>>
>>>>>>  Computer Scientist
>>>>>> Renuda UK
>>>>>>
>>>>>>  tel: +44 (0)20 3371 1709
>>>>>> web: www.renuda.com
>>>>>>
>>>>>>  Renuda UK is registered in England and Wales.  Company number
>>>>>> 6218863.
>>>>>> VAT registration number 918 6490 91. Registered office: 35
>>>>>> Charleville Road, London W14 9JJ, UK.
>>>>>> Renuda registered trade mark.
>>>>>>
>>>>>> _______________________________________________
>>>>>> Powered by www.kitware.com
>>>>>>
>>>>>> Visit other Kitware open-source projects at
>>>>>> http://www.kitware.com/opensource/opensource.html
>>>>>>
>>>>>> Please keep messages on-topic and check the ParaView Wiki at:
>>>>>> http://paraview.org/Wiki/ParaView
>>>>>>
>>>>>> Follow this link to subscribe/unsubscribe:
>>>>>> http://www.paraview.org/mailman/listinfo/paraview
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20140317/5da7523c/attachment-0001.html>


More information about the ParaView mailing list