Re: [Haskell-cafe] Showing >100% CPU usage of parallel code

2009-02-21 Thread Jim Burton
Jeff Heard wrote: > > Jim, I'm actually not sure that time will report greater than 100% cpu > on ubuntu hardy. (really not sure, and don't have it available right > this moment to check). I would however try making a computation that > will take a little longer and use the system monitor or /

Re: [Haskell-cafe] Showing >100% CPU usage of parallel code

2009-02-21 Thread Felipe Lessa
On Sat, Feb 21, 2009 at 12:17 PM, Jim Burton wrote: > $ time ./Par +RTS -N2 > 1405006117752879898543142606244511569936384005711076 > 1.504 real,2.316 user,0.016 sys, 100.00 cpu I don't know why it is only 100%, but you can see that the user time is greater than real time, so everything is working

Re: [Haskell-cafe] Showing >100% CPU usage of parallel code

2009-02-21 Thread Jeff Heard
Jim, I'm actually not sure that time will report greater than 100% cpu on ubuntu hardy. (really not sure, and don't have it available right this moment to check). I would however try making a computation that will take a little longer and use the system monitor or /proc to look at your CPU usage r

Re: [Haskell-cafe] Showing >100% CPU usage of parallel code

2009-02-21 Thread Bulat Ziganshin
Hello Jim, Saturday, February 21, 2009, 6:17:54 PM, you wrote: > main = a `par` b `par` c `pseq` print (a + b + c) two things: 1) that are grouping order? may be, a `par` (b `par` (c `pseq` print (a + b + c))) ? 2) i recommend you to use 2 *same* computations. otherwise, it's easily possible th

[Haskell-cafe] Showing >100% CPU usage of parallel code

2009-02-21 Thread Jim Burton
Hi, I copied the program below from a reddit post of dons'. I have a dual core laptop with ubuntu hardy and ghc 6.10.1. I can see the difference when I run the program with +RTS -N2 but CPU always says 100%. I'd like an example that shows >100 -- is it not showing >100 because of my timeformat or