# Problem running TMVA

**URL:** <https://root-forum.cern.ch/t/problem-running-tmva/36865>\
**Category:** TMVA\
**Created:** [November 17, 2019, 2:40pm UTC](https://root-forum.cern.ch/t/problem-running-tmva/36865 "2019-11-17T14:40:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![11116](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/1/6bbea6/32.png) [@11116](https://root-forum.cern.ch/u/11116)\
**Post date:** [November 17, 2019, 2:40pm UTC](https://root-forum.cern.ch/t/problem-running-tmva/36865/1 "2019-11-17T14:40:58Z")

</div>

I am new to TMVA. So far, I define my signal and background region and prepare an output to use for TMVA. I am using BDT(boosted decision tree) method.  
My question is when I using the small size samples (10000000 events)to do the training and testing, the MVA works. However, if I change the larger size samples (40000000 events)to training, the training will break down, seems like:

```auto
[sheny@lxplus784 HZg]$ root -l HZg_mva.c
root [0]
Processing HZg_mva.c...
input signal file
debug
DataSetInfo : [dataset] : Added class "Signal"
                         : Add Tree mEvent of type Signal with 14342801 events
                         : Add Tree mEvent of type Signal with 36318813 events
DataSetInfo : [dataset] : Added class "Background"
                         : Add Tree mEvent of type Background with 66930010 events
Factory : Booking method: BDT
                         :
[sheny@lxplus784 HZg]$

```

I do not think the problem is in the code itself.  
Can someone help me, please?  
Here is my MVAcode:[HZg\_mva.c](https://root-forum.cern.ch/uploads/short-url/hmO5wTn3oeHo0SnDXlsi2rPhRUz.c) (4.2 KB)

---

<div class="post-metadata">

**Author:** ![kialbert](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/kialbert/32/16537_2.png) [@kialbert](https://root-forum.cern.ch/u/kialbert)\
**Post date:** [November 20, 2019, 12:31pm UTC](https://root-forum.cern.ch/t/problem-running-tmva/36865/2 "2019-11-20T12:31:16Z")

</div>

Hi and welcome to the forums!

This could be a memory issue. TMVA by design loads all data into memory before processing, especially when it “works fine” with the smaller size.

You could verify this using a command like `top -o MEM`, `free`, or `memusage` (pending availability on your system).

Cheers,  
Kim
