I’m using root to produre a large file which is about 6G, but the generated file is about 1.8G and also the content is wrong.
At first, I doubt the linux system has some limitations in produre a file larger than 2G. Then I write a simple c program to produce a large file about 6G and it works. I thought if there is some limitations in root to produre a large file or if I need to do some special changes.
In addition, my command to execute function is “root -l xxx.c” and I am sure my xxx.c file is correct.
This is a sample example for explanation.
No matter what the content is and the file is excepted to be 57528896964/1024/1024≈6G. But the generated file is about 1.8G. And this is my problem.
this last file is basically pure C++ but the instantiation of a TChain. In other words ROOT does not seem to be the issue but rather the underlying system.
I just tried to run it as a macro on macos and the file is produced just fine. Are you sure that for example you are not on a 32-bits platform?