# Root 6.04.14 hadd 100Gb and rootlogon

**URL:** <https://root-forum.cern.ch/t/root-6-04-14-hadd-100gb-and-rootlogon/24581>\
**Category:** ROOT\
**Created:** [April 28, 2017, 8:15am UTC](https://root-forum.cern.ch/t/root-6-04-14-hadd-100gb-and-rootlogon/24581 "2017-04-28T08:15:37Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pcanal](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pcanal/32/12439_2.png) [@pcanal](https://root-forum.cern.ch/u/pcanal)\
**Post date:** [May 1, 2017, 6:33pm UTC](https://root-forum.cern.ch/t/root-6-04-14-hadd-100gb-and-rootlogon/24581/2 "2017-05-01T18:33:02Z")

</div>

Indeed hadd does not load the rootlogon file. However you can still manager using the following pattern.

Use a source file (let’s called it startup.C) like

```auto
#include "TTree.h"

int startup() {
  TTree::SetMaxTreeSize( 1000000000000LL ); // 1 TB
  return 0;
}

namespace {
  static int i = startup();
}

```

compile it into a shared library, for example with:

```auto
root.exe -b -l -q startup.C+

```

and then use LD\_PRELOAD (DYLD\_INSERT\_LIBRARIES on MacOS) to preload that library:

```auto
 DYLD_INSERT_LIBRARIES=startup_C.so hadd output.root input_*
 LD_PRELOAD=startup_C.so hadd output.root input_*

```

Cheers,  
Philippe.

---

_[View the full topic](https://root-forum.cern.ch/t/root-6-04-14-hadd-100gb-and-rootlogon/24581)._
