[Paraview] 400GB dataset out of memory on 1k cores?

Anton Shterenlikht mexas at bris.ac.uk
Mon Sep 21 09:29:16 EDT 2015


I get OOM on a ~400GB raw dataset
that I process with a script below.
I use 24 core nodes with 64GB per node.
I tried using up to 1008 nodes.

My question: Will increasing the number of
cores/nodes help?
Or is there some serial operation involved
that will not be helped this way?

Thank you

Anton

**************************

The script:

ext1    = 4640       # data extent along 1
ext2    = 4650       # data extent along 2
ext3    = 4650       # data extent along 3
ffile   = "./large/1000/zf5.raw" # fracture file
imsize1 = 1200         # size, in pixels, of the resulting image along 1
imsize2 = 1200         # size, in pixels, of the resulting image along 2

cor1 = 0.5 * ext1
cor2 = 0.5 * ext2
cor3 = 0.5 * ext3

from paraview.simple import *

# the extents start from zero, so need to lower
# the upper extents by 1
cracks = ImageReader( FilePrefix= ffile )
cracks.DataExtent=[ 0, ext1-1, 0, ext2-1, 0, ext3-1 ]
cracks.DataByteOrder = 'LittleEndian'
cracks.DataScalarType = 'int'

RenderView1 = GetRenderView()
DataRepresentation1 = Show()

DataRepresentation1.Representation = 'Outline'
DataRepresentation1.EdgeColor = [0.0, 0.0, 0.5]

# grain boundaries, cell state 2

Threshold1 = Threshold()
Threshold1.Scalars = ['POINTS', 'ImageFile']
Threshold1.ThresholdRange = [ 2, 2 ]
Threshold1.AllScalars = 0

DataRepresentation2 = Show()
DataRepresentation2.ScalarOpacityUnitDistance = 1.0
DataRepresentation2.SelectionPointFieldDataArrayName = 'ImageFile'
DataRepresentation2.DiffuseColor = [ 1, 0, 1 ]

camera = GetActiveCamera()
camera.SetViewUp(-1,0,0)
camera.Azimuth(30)
camera.Elevation(30)

RenderView1.ResetCamera()

# gradient background colour
RenderView1.UseGradientBackground = 1
RenderView1.Background2 = [0.0, 0.0, 0.16470588235294117]
RenderView1.Background = [0.3215686274509804, 0.3411764705882353, 0.43137254901960786]

RenderView1.CenterAxesVisibility = 0
RenderView1.OrientationAxesVisibility = 1
RenderView1.CenterOfRotation = [ cor1, cor2, cor3 ]
RenderView1.CameraFocalPoint = [ cor1, cor2, cor3 ]
RenderView1.ViewSize = [ imsize1, imsize2 ]

RenderView1.CameraViewAngle = 30

# do all crack states from the main dataset
SetActiveSource( cracks )

# (100) cracks
cracks100 = Threshold()
cracks100.Scalars = ['POINTS', 'ImageFile']
cracks100.ThresholdRange = [ 0, 0 ]
cracks100.AllScalars = 0

DataRepresentation3 = Show()
DataRepresentation3.ScalarOpacityUnitDistance = 1.0
DataRepresentation3.SelectionPointFieldDataArrayName = 'ImageFile'
#DataRepresentation3.EdgeColor = [0.0, 0.0, 0.5000076295109483]
#DataRepresentation3.ScaleFactor = -2.0000000000000002e+298
DataRepresentation3.DiffuseColor = [1.0, 1.0, 0.0]

# (110) cracks
SetActiveSource( cracks )
cracks110 = Threshold()
cracks110.Scalars = ['POINTS', 'ImageFile']
cracks110.ThresholdRange = [ -1, -1 ]
cracks110.AllScalars = 0

DataRepresentation4 = Show()
DataRepresentation4.ScalarOpacityUnitDistance = 1.0
DataRepresentation4.SelectionPointFieldDataArrayName = 'ImageFile'
#DataRepresentation4.EdgeColor = [0.0, 0.0, 0.5000076295109483]
#DataRepresentation4.ScaleFactor = -2.0000000000000002e+298
DataRepresentation4.DiffuseColor = [0.0, 1.0, 0.5]

#DataRepresentation3.ColorArrayName = 'ImageFile'
#DataRepresentation3.SelectMapper = 'Fixed point'

# 1 is to show, 0 not to show
# data2 is GB
# data3 is cracks
# data4 is grains microstructure

DataRepresentation2.Opacity = 0.1
WriteImage( "crgb.png" )

DataRepresentation2.Opacity = 1
DataRepresentation3.Visibility = 0
WriteImage( "gb.png" )

DataRepresentation2.Visibility = 0
DataRepresentation3.Visibility = 1
WriteImage( "cr.png" )

RenderView1.ResetCamera()

Render()


More information about the ParaView mailing list