Re: root.exe startup is slow in mac 10.6.4

From: xsatya <xsatya_at_gmail.com>
Date: Mon, 16 Aug 2010 00:58:46 +0530


Hi,

I put correct DNS and I get time measure as follows

[Mac$]time root.exe -n -l -q
real 0m3.480s
user 0m0.129s
sys 0m0.062s

[Mac$]time root.exe -n -l -q
real 0m2.132s
user 0m0.102s
sys 0m0.024s

[Mac$]time root.exe -n -l -q
real 0m32.130s
user 0m0.102s
sys 0m0.022s

First time is after fresh restart of laptop. Last one is when I remove network connections. Is there any way to solve this?

With regards,
satya

On Sun, Aug 15, 2010 at 3:36 PM, Fons Rademakers <Fons.Rademakers_at_cern.ch>wrote:

> Do you have correct name servers configured? St home and at work on my Mac
> I get:
>
> (proof) [129] time root.exe -n -q -l
> root [0]
>
> real 0m1.660s
> user 0m0.130s
> sys 0m0.042s
> (proof) [130] time root.exe -n -q -l
> root [0]
>
> real 0m0.151s
> user 0m0.124s
> sys 0m0.021s
> (proof) [131] time root.exe -n -q -l
> root [0]
>
> real 0m0.151s
> user 0m0.124s
> sys 0m0.024s
>
> where the first time is after a fresh restart.
>
> Cheers, Fons.
>
>
>
> On 15/08/10 6:23, xsatya wrote:
>
>> Hello,
>>
>> Thank you very much. Earlier I left the DNS "search domain" as blank. Now
>> I have put one domain name (my institute dn). It is much faster now.
>>
>> time root.exe -n -q -l
>>
>> real 0m3.520s
>> user 0m0.103s
>> sys 0m0.025s
>> However it is remaining still slower when I disconnected from network. I
>> tried few of DNS settings, like switching "IPv6" off, DNS Search to
>> "local". Butting nothing works out when it is not connected to net.
>>
>> Could you please suggest if any thing could be done.
>> Thanks,
>>
>> With regards,
>> satya
>>
>>
>>
>> On Sat, Aug 14, 2010 at 10:59 PM, Fons Rademakers <
>> Fons.Rademakers_at_cern.ch
>> <mailto:Fons.Rademakers_at_cern.ch>> wrote:
>>
>> Hi,
>>
>> As you can see ROOT is waiting in gethostbyname(). This is normally
>> due to a misconfigured dns. Check the dns setting in you config panel.
>> Maybe there is a search domain still specified that is not available
>> anymore. See e.g.
>> <http://www.macosxhints.com/article.php?story=20071221101005962>
>> http://www.macosxhints.com/article.php?story=20071221101005962
>>
>>
>> Cheers, Fons.
>>
>> On 14 Aug 2010, at 13:52, xsatya <xsatya_at_gmail.com
>> <mailto:xsatya_at_gmail.com>> wrote:
>>
>> Hello Fons,
>>>
>>> rootlogon.C is default one. I have not changed it.
>>>
>>> Still it takes long time even if I do root.exe -n option. I tried to
>>> checks through Activity Monitor and following is the outputs from
>>> *"Inspect"*
>>>
>>> /Users/sjena
>>> /Users/sjena/AliSoft/v5-26-00c/bin/root.exe
>>> /Users/sjena/AliSoft/v5-26-00c/lib/libCore.5.26.so
>>> <http://libCore.5.26.so/>
>>>
>>> /Users/sjena/AliSoft/v5-26-00c/lib/libCint.5.26.so
>>> <http://libCint.5.26.so/>
>>>
>>> /Users/sjena/AliSoft/v5-26-00c/lib/libMathCore.5.26.so
>>> <http://libMathCore.5.26.so/>
>>>
>>> /Users/sjena/AliSoft/v5-26-00c/lib/libRint.5.26.so
>>> <http://libRint.5.26.so/>
>>>
>>> /usr/lib/dyld
>>> /private/var/db/dyld/dyld_shared_cache_x86_64
>>> /dev/ttys000
>>> /dev/ttys000
>>> /dev/ttys000
>>> /private/var/folders/Yw/YweMm3pTHiioSeYBkDwZqE+++TI/-Tmp-/tmp.o1mMiq
>>> ->0x05dd5710
>>>
>>> *it waits here for maximum time ( ~30sec )*
>>>
>>> /private/var/folders/Yw/YweMm3pTHiioSeYBkDwZqE+++TI/-Tmp-/tmp.kfeor5
>>> /private/var/folders/Yw/YweMm3pTHiioSeYBkDwZqE+++TI/-Tmp-/tmp.gbbBON
>>> /Users/sjena/AliSoft/v5-26-00c/etc/plugins/TSystem/P010_TRFIOSystem.C
>>>
>>> /Users/sjena/AliSoft/v5-26-00c/etc/plugins/TSystem/P020_TDCacheSystem.C
>>> /Users/sjena/AliSoft/v5-26-00c/etc/plugins/TSystem/P030_TAlienSystem.C
>>> /Users/sjena/AliSoft/v5-26-00c/etc/plugins/TSystem/P040_TXNetSystem.C
>>> /Users/sjena/AliSoft/v5-26-00c/etc/plugins/TSystem/P050_TWebSystem.C
>>> /Users/sjena/AliSoft/v5-26-00c/etc/plugins/TSystem/P060_THDFSSystem.C
>>> /Users/sjena/AliSoft/v5-26-00c/cint/cint/include/iostream
>>> /Users/sjena/AliSoft/v5-26-00c/cint/cint/include/iostream.h
>>> /Users/sjena/AliSoft/v5-26-00c/cint/cint/include/iosenum.h
>>> /Users/sjena/AliSoft/v5-26-00c/cint/cint/include/bool.h
>>> /Users/sjena/AliSoft/v5-26-00c/cint/cint/include/_iostream
>>> /Users/sjena/AliSoft/v5-26-00c/cint/cint/stl/_string
>>> /Users/sjena/AliSoft/v5-26-00c/include/RtypesCint.h
>>> /Users/sjena/AliSoft/v5-26-00c/include/DllImport.h
>>> ------------
>>>
>>> I have attached a txt file captured from *"Sample Process"*
>>>
>>> Thanks and regards,
>>> satya
>>>
>>> On Sat, Aug 14, 2010 at 2:17 PM, Fons Rademakers <
>>> <mailto:Fons.Rademakers_at_cern.ch>Fons.Rademakers_at_cern.ch
>>>
>>> <mailto:Fons.Rademakers_at_cern.ch>> wrote:
>>>
>>> Hi,
>>> Do you have something in your rootlogon.C file or .rootrc?
>>> Please try root.exe -n. If still happens, run activity monitor
>>> and while it hang/waits do stack trace by selecting root.exe.
>>>
>>> Cheers, Fons.
>>>
>>> On 14 Aug 2010, at 06:29, xsatya <
>>> <mailto:xsatya_at_gmail.com>xsatya_at_gmail.com
>>>
>>> <mailto:xsatya_at_gmail.com>> wrote:
>>>
>>> > Hi,
>>> >
>>> > root.exe startup is very slow in my mac.
>>> >
>>> > MAC 10.6.4, 2.4GHz, 2GB Ram, Xcode 2.3.3
>>> >
>>> > gcc version 4.2.1 (Apple Inc. build 5664)
>>> >
>>> > gcc version 4.2.1 (Apple Inc. build 5659) + GF 4.2.4 { gfortran
>>> }
>>> >
>>> > --------------
>>> > I have tested with both root_v26-00-00b
>>> > time root.exe -b -q
>>> >
>>> > real 0m33.273s
>>> > user 0m0.128s
>>> > sys 0m0.064s
>>> > ---------------------
>>> > root_v26-00-00c
>>> > time root.exe -b -q
>>> >
>>> > real 0m32.213s
>>> > user 0m0.078s
>>> > sys 0m0.022s
>>> > -------
>>> > I tried to read couple of posting, but didn't get any solution.
>>> Could any one suggest how to improve it.
>>> >
>>> > Thanks,
>>> > Satya
>>> > --
>>> > ---------------
>>> > Research Student,
>>> > High Energy Physics, India.
>>>
>>>
>>>
>>>
>>> --
>>> ---------------
>>> Research Student,
>>> High Energy Physics, India.
>>> <SampleRoot.txt>
>>>
>>
>>
>>
>>
>> --
>> ---------------
>> Research Student,
>> High Energy Physics, India.
>>
>
> --
> Org: CERN, European Laboratory for Particle Physics.
> Mail: 1211 Geneve 23, Switzerland
> E-Mail: Fons.Rademakers_at_cern.ch Phone: +41 22 7679248
> WWW: http://fons.rademakers.org Fax: +41 22 7669640
>

-- 
---------------
Research Student,
High Energy Physics, India.
Received on Sun Aug 15 2010 - 21:28:54 CEST

This archive was generated by hypermail 2.2.0 : Mon Aug 16 2010 - 11:50:01 CEST