Before I had in my .rootrc file these lines, which manage the root history file:
Rint.History: $(HOME)/.root_hist
Rint.HistSize: 1000000
Rint.HistSave: 900000
but recently I found that the number of lines in this $(HOME)/.root_hist file is less than 500 instead of some thousands, I expected. I found that it is too strange and changed the root history file name from
.root_hist to .root_history. Then I checked the ROOT history behaviour and found that after this change the ROOT history behaviour became normal - now I has its length of several thousands of lines.
I found already that on lxpub01.jinr.ru the line
Rint.History: $(HOME)/.root_hist works properly: it means that there is some problem on lxplus.cern.ch.
The support for Rint.HistSize was introduced in v5.14 so the behavior when using the default name is the one I expect. When you use a different name, I am guessing it will grow indefinitely. Please try with the latest version of ROOT (v5.24).
Sorry,
I was wrong saying that this line
Rint.History: $(HOME)/.root_history
allows to have the infinite length of ROOT history file.
NO, it does not.
Even with
/afs/cern.ch/sw/lcg/app/releases/ROOT/5.24.00/slc4_ia32_gcc34/root/
on lxplus.cern.ch
I’ve got the restriction on history length. But strange: the length grows up to several thousands of lines and after decreases up to 440. And then
the length fixes at this value.
I’ve copied ROOT24.00 to lxpub01.jinr.ru and found there the same situation.
It seems the ROOT can not work properly with its history.
There was indeed a mismatch between code and doc. In the code we checked for HistorySize and HistorySave and in the doc (and system.rootrc file) we mentioned HistSize and HistSave. This bug has now been fixed and in the code we now also check for HistSize and HistSave as mentioned in the doc.