From - Tue Aug 13 15:26:04 2002 Return-Path: Received: from ax8.hep.ucl.ac.uk (hep.ucl.ac.uk [128.40.4.78]) by castor.ts.infn.it (8.11.6/8.11.6) with ESMTP id g7CDKSS20642 for ; Mon, 12 Aug 2002 15:20:28 +0200 (MET DST) Received: from pc49.hep.ucl.ac.uk (pc49.hep.ucl.ac.uk [128.40.4.169]) by ax8.hep.ucl.ac.uk (8.11.6/8.11.6) with ESMTP id g7CDKRx10125; Mon, 12 Aug 2002 14:20:27 +0100 (BST) Received: from localhost (dwaters@localhost) by pc49.hep.ucl.ac.uk (8.11.6/8.9.3) with ESMTP id g7CDKML27825; Mon, 12 Aug 2002 14:20:22 +0100 X-Authentication-Warning: pc49.hep.ucl.ac.uk: dwaters owned process doing -bs Date: Mon, 12 Aug 2002 14:20:22 +0100 (BST) From: David Waters To: Stefano Belforte cc: cdfsam-admin@fnal.gov Subject: Re: why so slow ? In-Reply-To: <3D57AC87.EBDC46A0@ts.infn.it> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 12 Aug 2002, Stefano Belforte wrote: Hi Stefano, Interesting. Not sure I know the answer without looking in more detail. SamInput module should behave identically to FileInput module once it's actually retrieved a file name from SAM. The guts of SamInput are identical to FileInput apart from the details of how it gets the file name. I'm not actually very familiar with DHInput, so cannot immediately tell you if this should be the same as FileInput. If you have time, can you compare SamInput with FileInput ? This would narrow down the problem to something clever that DHInput does that simpler FileInput does not do. Cheers, Dave. > Why is SamInput so slow ? > I mean, I run on a file already on local cache (always the > same), but once the AC++ executable (SamInputTest) has > started it takes miknutes to run EventDump on the first > 10 events. If I start SamInputTest by hand and use DHInput > on the same file, it takes less then a second (of course after > a long pause at the beginning, to swallow some initial DB > I guess). But DHInput, goes fast from one event to the > next, SamInput seems like stopping for a minute or so > at each event. > I tried editing getFilesFromSam.tcl > to remove SamInput debug statements and even RCP access, > but makes no difference. > > The file I am accessing is the one in the test-sam-1g > dataset, that I already have in local cache since the > inital sam test installation: gb01defd.0001exo0 > > Notice also that using SAM I get a lot of message slike: > %ERLOG-e ConfigManager::newRunSection: Cannot find beginRun record > and > %ERLOG-w Missing Begin Run.: The last begin run had a run number of > 122623 > that are absent if I use DHInput > > Note also that adding AC++ "show" command at the end of the > tcl files says that DHINput was called 22 times (2 per > event is "the usual", do not ask me why). While SamInput > was called (for the same begin -nev 10) 214 times ! > > Maybe the begin run is the problem, and things will be > better with a file with more events per run, but... > once we are inside a file, what does SAM require at each > begin run that DHInput does not ? > > I attach the log files (stdout + stderr). > > Stefano > > -- > Stefano Belforte - I.N.F.N. tel : +39 040 375-6261 (fax: 375-6258) > Area di Ricerca - Padriciano 99 e-mail: Stefano.Belforte@ts.infn.it > 34012 TRIESTE TS - Italy Web : http://www.ts.infn.it/~belforte > -- *************************************** * Dr. David Waters * * Department of Physics and Astronomy * * University College London * * Gower Street * * London WC1E 6BT * * * * Tel : (UK)-20-7679-7141 * * (UK)-7812-748843 (mobile) * * Fax : (UK)-20-7679-7145 * ***************************************