JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for CCPEM Archives


CCPEM Archives

CCPEM Archives


CCPEM@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Monospaced Font

LISTSERV Archives

LISTSERV Archives

CCPEM Home

CCPEM Home

CCPEM  October 2019

CCPEM October 2019

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: C++ Bad Allocation Error with a GPFS Cluster

From:

Takanori Nakane <[log in to unmask]>

Reply-To:

Takanori Nakane <[log in to unmask]>

Date:

Wed, 9 Oct 2019 15:46:22 +0100

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (182 lines)

Hi,

> Thank you very much! We will work on getting that method working on our
> systems. I have one last quick question for you. How does RELION
> divide up the data? Does the master process read all of the data and
> then send chunks of it to each MPI process or does each of the MPI
> processes read it's own chunk of the data directly from the file without
> being handed it's chunk of the data itself from the master process?

By default (i.e. "Use parallel disc I/O: Yes"), each node reads images
that are processed by the node. This happens every iteration.
If you specify "Pre-read all particles into RAM" or "Copy particles to
scratch directory", all nodes copy everything to local scratch or memory
only once at the beginning of the job. Admittedly this is not very efficient
and refactoring of this is on our TODO list (but not for 3.1).

When "Use parallel disc I/O: No", the master reads particles and
sends them to worker nodes every iteration. When combined with
"Pre-read all particles into RAM" or "Copy particles to scratch directory",
the master copies everything to local scratch or memory once at the beginning
of the job and sends it to workers every iteration.

Thus, if the disk is slow but connection between computation nodes is fast,
I recommend "Use parallel disc I/O: No" with "Pre-read all particles into
RAM"
or "Copy particles to scratch directory". Otherwise, all nodes access the
storage
and slow it down.

Best regards,

Takanori Nakane

> Thank you so much once again for your help!
> Sincerely,
> Alex Townsend
> ________________________________
> From: Takanori Nakane <[log in to unmask]>
> Sent: Wednesday, October 9, 2019 9:54 AM
> To: Alex Townsend <[log in to unmask]>
> Cc: [log in to unmask] <[log in to unmask]>
> Subject: Re: [ccpem] C++ Bad Allocation Error with a GPFS Cluster
>
> Hi,
>
>> the number of MPI processes being run per node is the
>> same as the number of cores the node has which is 40 in the nodes that
>> are causing the problem. The job gets spread over 5 nodes with 200 MPI
>> processes and 15 with 600.
>
> OK, this is the problem.
> For a 40 core node, put 2 MPI processes with 20 threads each.
>
> Best regards,
>
> Takanori Nakane
>
>> Hello,
>>
>> Thank you for getting back to me so quickly! That makes a lot of
>> sense. We have 192 GB per node on the cluster this job is being run
>> on. I don't have an exact number of MPI processes per node at the
>> moment. I'll have to dig around in the logs for that info but from
>> what I can tell, the number of MPI processes being run per node is the
>> same as the number of cores the node has which is 40 in the nodes that
>> are causing the problem. The job gets spread over 5 nodes with 200 MPI
>> processes and 15 with 600.
>>
>> Sincerely,
>> Alex Townsend
>> ________________________________
>> From: Takanori Nakane <[log in to unmask]>
>> Sent: Wednesday, October 9, 2019 8:59 AM
>> To: Alex Townsend <[log in to unmask]>
>> Cc: [log in to unmask] <[log in to unmask]>
>> Subject: Re: [ccpem] C++ Bad Allocation Error with a GPFS Cluster
>>
>> Hi,
>>
>> Probably you are running out of memory.
>>
>> How much memory does a node have and how many MPI processes
>> do you run in one node? What is the box size?
>>
>> Best regards,
>>
>> Takanori Nakane
>>
>>> Hello,
>>>
>>> We are attempting to run RELION on a mostly Intel Cluster running
>>> GPFS
>>> linked with 10 Gbps InfiniBand fiber. We have been trying to run 200
>>> and 600 MPI process Relion jobs on this cluster yet whenever we run the
>>> job, within approximately 5 hours, the program crashes and the
>>> following error shows up invariably in the logs. It seems that
>>> something in relion_refine_mpi runs into an std::bad_alloc() error no
>>> matter how many cores it is spread across, even with the --maxsig
>>> parameter set to 3000 and the IB retry count increased. Have any of
>>> you experienced similar issues? If so, can you give us any suggestions
>>> on how to fix it?
>>>
>>> """
>>> terminate called after throwing an instance of 'std::bad_alloc'
>>> what(): std::bad_alloc
>>> [FSUHPC:131639] *** Process received signal ***
>>> [FSUHPC:131639] Signal: Aborted (6)
>>> [FSUHPC:131639] Signal code: (-6)
>>> [FSUHPC:131639] [ 0]
>>> /usr/lib64/libpthread.so.0(+0xf5e0)[0x2b315aa3c5e0]
>>> [FSUHPC:131639] [ 1] /usr/lib64/libc.so.6(gsignal+0x37)[0x2b315b8cc1f7]
>>> [FSUHPC:131639] [ 2] /usr/lib64/libc.so.6(abort+0x148)[0x2b315b8cd8e8]
>>> [FSUHPC:131639] [ 3]
>>> /usr/lib64/libstdc++.so.6(_ZN9__gnu_cxx27__verbose_terminate_handlerEv+0x165)[0x2b315aeb1ac5]
>>> [FSUHPC:131639] [ 4]
>>> /usr/lib64/libstdc++.so.6(+0x5ea36)[0x2b315aeafa36]
>>> [FSUHPC:131639] [ 5]
>>> /usr/lib64/libstdc++.so.6(+0x5ea63)[0x2b315aeafa63]
>>> [FSUHPC:131639] [ 6]
>>> /usr/lib64/libstdc++.so.6(+0x5ec83)[0x2b315aeafc83]
>>> [FSUHPC:131639] [ 7]
>>> /usr/lib64/libstdc++.so.6(_Znwm+0x7d)[0x2b315aeb021d]
>>> [FSUHPC:131639] [ 8]
>>> /usr/lib64/libstdc++.so.6(_Znam+0x9)[0x2b315aeb02b9]
>>> [FSUHPC:131639] [ 9]
>>> relion_refine_mpi(_ZN13MultidimArrayIdE7reshapeEllll+0x17f)[0x4888cf]
>>> [FSUHPC:131639] [10]
>>> relion_refine_mpi(_ZN9Projector26computeFourierTransformMapER13MultidimArrayIdES2_iibb+0x267)[0x486a27]
>>> [FSUHPC:131639] [11]
>>> relion_refine_mpi(_ZN7MlModel23setFourierTransformMapsEbib+0x68e)[0x54de0e]
>>> [FSUHPC:131639] [12]
>>> relion_refine_mpi(_ZN11MlOptimiser16expectationSetupEv+0x48)[0x565278]
>>> [FSUHPC:131639] [13]
>>> relion_refine_mpi(_ZN14MlOptimiserMpi11expectationEv+0x28f)[0x4585df]
>>> [FSUHPC:131639] [14]
>>> relion_refine_mpi(_ZN14MlOptimiserMpi7iterateEv+0xaa)[0x46501a]
>>> [FSUHPC:131639] [15] relion_refine_mpi(main+0xb83)[0x42eee3]
>>> [FSUHPC:131639] [16]
>>> /usr/lib64/libc.so.6(__libc_start_main+0xf5)[0x2b315b8b8c05]
>>> [FSUHPC:131639] [17] relion_refine_mpi[0x4322bf]
>>> [FSUHPC:131639] *** End of error message ***
>>> --------------------------------------------------------------------------
>>> Primary job terminated normally, but 1 process returned
>>> a non-zero exit code. Per user-direction, the job has been aborted.
>>> --------------------------------------------------------------------------
>>> """
>>>
>>> Thank you!
>>> Sincerely,
>>> Alex Townsend
>>>
>>> Florida State University
>>> Research Computing Center
>>>
>>>
>>> ########################################################################
>>>
>>> To unsubscribe from the CCPEM list, click the following link:
>>> https://urldefense.com/v3/__https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=CCPEM&A=1__;!b6vCHzPZcQIc!6H6Y2m_RSpIq2zTy31pRtF5DLc4TZqo8W4Q1ZTRhnBcj6O4ELxr-0xCyTo7rQr4zvg$
>>>
>>
>>
>>
>> ########################################################################
>>
>> To unsubscribe from the CCPEM list, click the following link:
>> https://urldefense.com/v3/__https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=CCPEM&A=1__;!b6vCHzPZcQIc!95QoLIFGErW6VRoLbwdq_dwf0zp8SZUArclUzKkV0-g7VIpBhZcYgQEWuxykc0RghQ$
>>
>
>
>
> ########################################################################
>
> To unsubscribe from the CCPEM list, click the following link:
> https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=CCPEM&A=1
>

########################################################################

To unsubscribe from the CCPEM list, click the following link:
https://www.jiscmail.ac.uk/cgi-bin/webadmin?SUBED1=CCPEM&A=1

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

May 2024
April 2024
March 2024
February 2024
January 2024
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager