# Pvbatch parallel

**URL:** https://discourse.paraview.org/t/pvbatch-parallel/14726
**Category:** ParaView Support
**Created:** [May 28, 2024, 1:36pm UTC](https://discourse.paraview.org/t/pvbatch-parallel/14726 "2024-05-28T13:36:47Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Frankx9](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/f/3e96dc/32.png) [@Frankx9](https://discourse.paraview.org/u/Frankx9)
#### Post date: [May 28, 2024, 1:36pm UTC](https://discourse.paraview.org/t/pvbatch-parallel/14726/1 "2024-05-28T13:36:47Z")

</div>

Hello,

I was trying to run pvbatch in parallel but it seems that it only works on one rank. I tried both with the shipped mpiexec in the /bin directory and the one already present on my desktop but the behaviour is the same.  
What am I missing?

 ![Screenshot 2024-05-28 at 15.27.36](https://discourse.paraview.org/uploads/default/original/2X/7/7f54dad3eb2f83a6e61702aea7ef66e37638b0f2.png)

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [May 28, 2024, 1:42pm UTC](https://discourse.paraview.org/t/pvbatch-parallel/14726/2 "2024-05-28T13:42:38Z")

</div>

> [@Frankx9](#):
>
> What am I missing?

Is your data distributed ?

---

<div class="post-metadata">

### Author: ![Frankx9](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/f/3e96dc/32.png) [@Frankx9](https://discourse.paraview.org/u/Frankx9)
#### Post date: [May 28, 2024, 1:43pm UTC](https://discourse.paraview.org/t/pvbatch-parallel/14726/3 "2024-05-28T13:43:45Z")

</div>

What are you referring to in particular?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [May 28, 2024, 1:45pm UTC](https://discourse.paraview.org/t/pvbatch-parallel/14726/4 "2024-05-28T13:45:33Z")

</div>

> I was trying to run pvbatch in parallel but it seems that it only works on one rank.

Please provide more info about what kind of work you are doing and what kind of data you are opening.

pvserver is working distributed if and only if the data itself is distributed.

---

<div class="post-metadata">

### Author: ![Frankx9](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/f/3e96dc/32.png) [@Frankx9](https://discourse.paraview.org/u/Frankx9)
#### Post date: [May 28, 2024, 1:46pm UTC](https://discourse.paraview.org/t/pvbatch-parallel/14726/5 "2024-05-28T13:46:52Z")

</div>

> Please provide more info about what kind of work you are doing and what kind of data you are opening.

It is executing a paraview trace with pvbatch on a .vtu script (Paraview 5.12)

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [May 28, 2024, 1:51pm UTC](https://discourse.paraview.org/t/pvbatch-parallel/14726/6 "2024-05-28T13:51:26Z")

</div>

> [@Frankx9](#):
>
> .vtu

A .vtu file is not distributed natively. You can see that by displaying the “vtkProcessId” field.  
Add a “DistributeDataSet” filter to your script to distribute the data.

---

<div class="post-metadata">

### Author: ![Frankx9](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/f/3e96dc/32.png) [@Frankx9](https://discourse.paraview.org/u/Frankx9)
#### Post date: [May 28, 2024, 1:53pm UTC](https://discourse.paraview.org/t/pvbatch-parallel/14726/7 "2024-05-28T13:53:26Z")

</div>

Thanks a lot for the insight!

> Add a “DistributeDataSet” filter to your script to distribute the data.

I only have `Distribute Points`, is this?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [May 28, 2024, 1:55pm UTC](https://discourse.paraview.org/t/pvbatch-parallel/14726/8 "2024-05-28T13:55:23Z")

</div>

Sorry, the name is “Redistribute DataSet”

---

<div class="post-metadata">

### Author: ![Frankx9](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/f/3e96dc/32.png) [@Frankx9](https://discourse.paraview.org/u/Frankx9)
#### Post date: [May 28, 2024, 2:05pm UTC](https://discourse.paraview.org/t/pvbatch-parallel/14726/9 "2024-05-28T14:05:45Z")

</div>

Ok now it works! Thanks a lot!

Any filter option do you recommend using for better performance?

Best

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [May 28, 2024, 2:07pm UTC](https://discourse.paraview.org/t/pvbatch-parallel/14726/10 "2024-05-28T14:07:35Z")

</div>

> [@Frankx9](#):
>
> Any filter option do you recommend using for better performance?

Redistribute your data only once and save it to a distributed format like .pvtu, it will then be much more performant as I/O will be distributed too.

But TBH this is a very complex topic: [https://www.kitware.com/paraview-hpc-scalability-guide/](https://www.kitware.com/paraview-hpc-scalability-guide/)
