# How to merge ROOT files larger than 100 GB

**URL:** <https://root-forum.cern.ch/t/how-to-merge-root-files-larger-than-100-gb/43562>\
**Category:** ROOT\
**Created:** [February 16, 2021, 2:43pm UTC](https://root-forum.cern.ch/t/how-to-merge-root-files-larger-than-100-gb/43562 "2021-02-16T14:43:49Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![etejedor](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/e79b87/32.png) [@etejedor](https://root-forum.cern.ch/u/etejedor)\
**Post date:** [February 17, 2021, 11:27am UTC](https://root-forum.cern.ch/t/how-to-merge-root-files-larger-than-100-gb/43562/2 "2021-02-17T11:27:48Z")

</div>

Hello,

I think this answer by @pcanal can be useful:

> [@Root 6.04.14 hadd 100Gb and rootlogon](https://root-forum.cern.ch/t/root-6-04-14-hadd-100gb-and-rootlogon/24581):
>
> Dear experts, I am currently trying to use hadd to make an output file with a tree with size \> 100 Gb. I read: [https://root-forum.cern.ch/t/root-6-04-14-hadd-100gb-tfilemerger-recursiveremove/24117/4](https://root-forum.cern.ch/t/root-6-04-14-hadd-100gb-tfilemerger-recursiveremove/24117/4) and: It seems that in my case the easiest solution is to create in the directory I execute “hadd” a rootlogon.C file with: { TTree::SetMaxTreeSize( 1000000000000LL ); // 1 TB } However, it seems that when I run “hadd” this new option is not taken into account. I tried two commands: h…

Cheers,  
Enric

---

_[View the full topic](https://root-forum.cern.ch/t/how-to-merge-root-files-larger-than-100-gb/43562)._
