Strange behaviour of ROOT history

Hello,
when I’ve changed my .rootrc line

Rint.History: $(HOME)/.root_hist

to

Rint.History: $(HOME)/.root_history

only then the 500 line restriction of ROOT history file length has disappeared.

In my .rootrc file there are these lines too:
Rint.HistSize: 1000000
Rint.HistSave: 900000

What is wrong?
Regards
Oleg

Rint.HistSize: 1000000
Rint.HistSave: 900000

P.S. I run the ROOT on lxplus.cern.ch

Hi,

sorry, I don’t understand. Can you explain separately what you changed, what you expected to get, and what you did get instead?

Cheers, Axel.

Hi,

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.

Regards
Oleg

P.S. Before to change to .root_history I checked that, really, .root_hist file name does set the history length limit to 441 lines.

Hi,

Which version of ROOT are you using?

Cheers,
Philippe.

ol-223/geadir/geant-dirac> echo $ROOTSYS
/afs/cern.ch/sw/root/v5.10.00/slc3_gcc3.2.3/root

Regards
Oleg

Hi,

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).

Cheers,
Philippe.

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.

Could you fix this bug?

regards
Oleg

Oleg

misprint

Hi,

The correct spelling of the configuration value is Rint.HistorySize and Rint.HistorySave

Cheers,
Philippe.

OK,
thank you.
I’ll check it.
But in ROOT21 Guide another spelling is present:

Rint.HistSize: 500
Rint.HistSave: 400

Regards
Oleg

OK,
thank you.

Now it works properly.

Regards
Oleg

Could you remind me which guide and on which page?

Thanks,
Philippe

Hi,

I see everywhere in the ROOT CERN site the wrong spelling is present:

root.cern.ch/root/doc/RootDoc.html

then the last version of Guide is

ftp://root.cern.ch/root/doc/Users_Guide_5_21.pdf

page 41

or the same
ftp://root.cern.ch/root/doc/2GettingStarted.pdf
Page 13

Also the output of this command:

cat /afs/cern.ch/sw/lcg/app/releases/ROOT/5.24.00/slc4_ia32_gcc34/root/etc/system.rootrc|grep Rint

Rint.Load: rootalias.C
Rint.Logon: rootlogon.C
Rint.Logoff: rootlogoff.C
Rint.History: $(HOME)/.root_hist

Rint.HistSize: 500

Rint.HistSave: 400

Regards
Oleg

P.S.
root.cern.ch/svn/root/branches/v … /rootrc.in
The same.

Regards
Oleg

P.S.
I’ve found some hint on the proper spelling only in
TRint.cxx file.

Regards
Oleg

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.

Cheers, Fons.