# How to handle THnSparse larger than 500Mo

**URL:** <https://root-forum.cern.ch/t/how-to-handle-thnsparse-larger-than-500mo/31255>\
**Category:** ROOT\
**Created:** [October 23, 2018, 7:27pm UTC](https://root-forum.cern.ch/t/how-to-handle-thnsparse-larger-than-500mo/31255 "2018-10-23T19:27:08Z")\
**Posts on this page:** 1\
**Showing post:** 24

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [October 24, 2018, 5:55pm UTC](https://root-forum.cern.ch/t/how-to-handle-thnsparse-larger-than-500mo/31255/24 "2018-10-24T17:55:49Z")

</div>

> [@Help on Method/s to create Tree from multi-fold gamma-ray coincidence data](https://root-forum.cern.ch/t/help-on-method-s-to-create-tree-from-multi-fold-gamma-ray-coincidence-data/29704/65):
>
> The “his3D” is a “THnSparseF” and you do not use “weights” when filling it so, it should be 4 bytes per bin. There are 128708567 filled bins so, it should be around 491MB (which is significantly less than 1GB). Why does it need more than 1 GB then? Maybe the chunks’ management uses a lot of memory, too? I’m afraid we need @pcanal for further debugging. @pcanal … Can one somehow write this histogram in “split” mode (so that the 1GB limit is valid for “independent parts” / “data members” of i…

---

_[View the full topic](https://root-forum.cern.ch/t/how-to-handle-thnsparse-larger-than-500mo/31255)._
