Re: [GHC] #950: Timing stats in GHCi don't work

2007-01-23 Thread GHC
#950: Timing stats in GHCi don't work
--+-
 Reporter:  simonpj   |  Owner: 
 Type:  bug   | Status:  closed 
 Priority:  normal|  Milestone: 
Component:  Compiler  |Version:  6.6
 Severity:  normal| Resolution:  fixed  
 Keywords:| Difficulty:  Unknown
 Testcase:|   Architecture:  Unknown
   Os:  Unknown   |  
--+-
Changes (by igloo):

  * resolution:  => fixed
  * status:  new => closed

Comment:

 This turned out to be caused by an old Linux threads bug; from
 pthreads(7):
 {{{
Some NPTL non-conformances only occur with older kernels:

-  The  information returned by times(2) and getrusage(2) is per-
 thread
   rather than process-wide (fixed in kernel 2.6.9).
 }}}
 The solution is to use a newer kernel, or to compile ghc(i) without
 -threaded.

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #950: Timing stats in GHCi don't work

2006-10-21 Thread GHC
#950: Timing stats in GHCi don't work
--+-
 Reporter:  simonpj   |  Owner: 
 Type:  bug   | Status:  new
 Priority:  normal|  Milestone: 
Component:  Compiler  |Version:  6.6
 Severity:  normal| Resolution: 
 Keywords:| Difficulty:  Unknown
 Testcase:|   Architecture:  Unknown
   Os:  Unknown   |  
--+-
Comment (by igloo):

 I can't reproduce this on Linux/amd64 or Windows/x86 with the expression
 `length [1.. 2^28]`. Has anyone got a testcase for it?

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #950: Timing stats in GHCi don't work

2006-10-18 Thread GHC
#950: Timing stats in GHCi don't work
--+-
 Reporter:  simonpj   |  Owner: 
 Type:  bug   | Status:  new
 Priority:  normal|  Milestone: 
Component:  Compiler  |Version:  6.6
 Severity:  normal| Resolution: 
 Keywords:| Difficulty:  Unknown
 Testcase:|   Architecture:  Unknown
   Os:  Unknown   |  
--+-
Old description:

> The GHCi `set +s` flag doesn't give sensibel timings:
> {{{
>   / _ \ /\  /\/ __(_)
>  / /_\// /_/ / /  | |  GHC Interactive, version 6.6, for Haskell 98.
> / /_\\/ __  / /___| |  http://www.haskell.org/ghc/
> \/\/ /_/\/|_|  Type :? for help.
>
> Loading package base ... linking ... done.
> [1 of 3] Compiling Primes   ( Primes.hs, interpreted )
> [2 of 3] Compiling ContFrac ( ContFrac.hs, interpreted )
> [3 of 3] Compiling Euler44  ( Euler44.hs, interpreted )
> Ok, modules loaded: Euler44, ContFrac, Primes.
> *Euler44> :set +s
> *Euler44> smallest
> (2167,1020,2395,1912)
> (0.02 secs, 910618996 bytes)
> *Euler44>
> }}}
> The run actually took 23 seconds.
>
> Reported by [EMAIL PROTECTED]

New description:

 The GHCi `set +s` flag doesn't give sensible timings:
 {{{
   / _ \ /\  /\/ __(_)
  / /_\// /_/ / /  | |  GHC Interactive, version 6.6, for Haskell 98.
 / /_\\/ __  / /___| |  http://www.haskell.org/ghc/
 \/\/ /_/\/|_|  Type :? for help.

 Loading package base ... linking ... done.
 [1 of 3] Compiling Primes   ( Primes.hs, interpreted )
 [2 of 3] Compiling ContFrac ( ContFrac.hs, interpreted )
 [3 of 3] Compiling Euler44  ( Euler44.hs, interpreted )
 Ok, modules loaded: Euler44, ContFrac, Primes.
 *Euler44> :set +s
 *Euler44> smallest
 (2167,1020,2395,1912)
 (0.02 secs, 910618996 bytes)
 *Euler44>
 }}}
 The run actually took 23 seconds.

 Reported by [EMAIL PROTECTED]

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


[GHC] #950: Timing stats in GHCi don't work

2006-10-18 Thread GHC
#950: Timing stats in GHCi don't work
-+--
Reporter:  simonpj   |   Owner: 
Type:  bug   |  Status:  new
Priority:  normal|   Milestone: 
   Component:  Compiler  | Version:  6.6
Severity:  normal|Keywords: 
  Difficulty:  Unknown   |Testcase: 
Architecture:  Unknown   |  Os:  Unknown
-+--
The GHCi `set +s` flag doesn't give sensibel timings:
 {{{
   / _ \ /\  /\/ __(_)
  / /_\// /_/ / /  | |  GHC Interactive, version 6.6, for Haskell 98.
 / /_\\/ __  / /___| |  http://www.haskell.org/ghc/
 \/\/ /_/\/|_|  Type :? for help.

 Loading package base ... linking ... done.
 [1 of 3] Compiling Primes   ( Primes.hs, interpreted )
 [2 of 3] Compiling ContFrac ( ContFrac.hs, interpreted )
 [3 of 3] Compiling Euler44  ( Euler44.hs, interpreted )
 Ok, modules loaded: Euler44, ContFrac, Primes.
 *Euler44> :set +s
 *Euler44> smallest
 (2167,1020,2395,1912)
 (0.02 secs, 910618996 bytes)
 *Euler44>
 }}}
 The run actually took 23 seconds.

 Reported by [EMAIL PROTECTED]

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs