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

Help for NEUTRINO-MC-SUPPORT Archives


NEUTRINO-MC-SUPPORT Archives

NEUTRINO-MC-SUPPORT Archives


NEUTRINO-MC-SUPPORT@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

NEUTRINO-MC-SUPPORT Home

NEUTRINO-MC-SUPPORT Home

NEUTRINO-MC-SUPPORT  May 2010

NEUTRINO-MC-SUPPORT May 2010

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: Possible memory leak in NtpMCEventRecord

From:

Costas Andreopoulos <[log in to unmask]>

Reply-To:

Costas Andreopoulos <[log in to unmask]>

Date:

Wed, 26 May 2010 17:35:39 +0100

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (37 lines)

Hi Rosen

as I've written to you, when you first reported the problem, the leak is caused 
because, by design, certain GENIE objects allocate memory in the default constructor.
However, ROOT I/O requires that no memory is allocated in default constructors.
The problem, once recognised, was swept under the carpet because it was not too 
annoying to live with (doesn't affect event generation / only reading from *very* large 
event files) but it was quite annoying to fix (a cascade of required changes).

Thanks to Corey Reed, a ROOT feature was identified and a very easy solution has 
been implemented in the SVN trunk. Basically, one can add an Xyz::Xyz(TRootIOCtor*) 
constructor which takes precedence over the default constructor for ROOT I/O purposes. 
Such (empty) constructors were added in the Interaction and GHEP package classes.
We believe this fixes the problem without interfering at all with any of the existing code.

cheers
Costas

On 13 Apr 2010, at 23:32, Rosen Matev wrote:

> I am trying out the $GENIE/src/test/testEventLoop.cxx with a genie root file. When ran, the memory usage of the process increases with a steady rate. I have isolated the leak to "tree->GetEntry(i);". (obviously, the memory allocation is done in this row.) Can someone try to reproduce this problem? If I only make many consecutive news and deletes of NtpMCEventRecord objects, the memory usage does not grow.
> 
> Note: Because I run out of entries in the input file quickly, I change "tree->GetEntry(i);" to "tree->GetEntry(i % nev);" and run the loop nev*10000 times.
> Versions: genie 2.6.0; root 5.26.00;
> 
> Steps to reproduce:
> wget http://www.hepforge.org/archive/genie/data/2.6.0/gxspl-t2k-v2.6.0.xml
> export GSPLOAD=gxspl-t2k-v2.6.0.xml
> gevgen -s -n 1000 -p 14 -t 1000060120 -e 0,15 -f $GENIE/data/flux/t2kflux.root,h30000
> edit testEventLoop.cxx as mentioned in the note above.
> compile testEventLoop.cxx
> ./testEventLoop -f gntp.0.ghep.root
> 
> 
> Regards,
> Rosen Matev

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

March 2024
February 2024
January 2024
December 2023
November 2023
October 2023
September 2023
July 2023
June 2023
May 2023
March 2023
February 2023
January 2023
December 2022
November 2022
October 2022
September 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
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
December 2019
November 2019
October 2019
September 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
October 2018
July 2018
May 2018
February 2018
January 2018
October 2017
May 2017
April 2017
March 2017
January 2017
December 2016
October 2016
September 2016
August 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
July 2015
May 2015
April 2015
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
April 2014
February 2014
December 2013
November 2013
October 2013
September 2013
August 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
October 2012
April 2012
March 2012
September 2011
July 2011
June 2011
May 2011
December 2010
November 2010
October 2010
September 2010
June 2010
May 2010
April 2010
March 2010
February 2010
July 2009
June 2009
May 2009
April 2009
March 2009
January 2009
December 2008
June 2008
December 2007
August 2007
July 2007


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