nntpnews.net

Global Usenet Archiver


Register

[Haskell-cafe] Interpreting profiling results

Reply

  #1  
Old 08-02-10, 05:05 PM
Gregory Collins
 
Posts: n/a
Default [Haskell-cafe] Interpreting profiling results

Hello all,

A friend and I are trying to benchmark some network server code which
runs fine on my OSX laptop (~7500 req/s) but which is >10x slower on a
much faster 8-core Xeon Linux box.

The profiling run on Linux looks like this:

individual inherited
COST CENTRE MODULE no. entries %time %alloc %time %alloc

MAIN MAIN 1 0 95.7 0.2 100.0 100.0
...

How should we interpret this result? MAIN doesn't seem to correspond to
any user code so we're wondering where the time is going.

G.
--
Gregory Collins <greg@gregorycollins.net>
_______________________________________________
Haskell-Cafe mailing list
[email]Haskell-Cafe@haskell.org[/email]
[url]http://www.haskell.org/mailman/listinfo/haskell-cafe[/url]
Reply With Quote
  #2  
Old 08-02-10, 06:06 PM
Daniel Fischer
 
Posts: n/a
Default Re: [Haskell-cafe] Interpreting profiling results

Am Montag 08 Februar 2010 17:04:44 schrieb Gregory Collins:
> Hello all,
>
> A friend and I are trying to benchmark some network server code which
> runs fine on my OSX laptop (~7500 req/s) but which is >10x slower on a
> much faster 8-core Xeon Linux box.
>
> The profiling run on Linux looks like this:
>
> individual inherited
> COST CENTRE MODULE no. entries %time %alloc %time %alloc
>
> MAIN MAIN 1 0 95.7 0.2 100.0 100.0
> ...
>
> How should we interpret this result? MAIN doesn't seem to correspond to
> any user code so we're wondering where the time is going.


Insert lots of {-# SCC "foo" #-} pragmas (you did pass -auto-all on the
command line when compiling?). You can't interpret a profile where almost
everything is attributed to MAIN or main.

>
> G.


_______________________________________________
Haskell-Cafe mailing list
[email]Haskell-Cafe@haskell.org[/email]
[url]http://www.haskell.org/mailman/listinfo/haskell-cafe[/url]
Reply With Quote
  #3  
Old 08-02-10, 07:48 PM
Daniel Fischer
 
Posts: n/a
Default Re: [Haskell-cafe] Interpreting profiling results

Am Montag 08 Februar 2010 18:15:30 schrieb Gregory Collins:
>
> I'm just curious as to what the meaning of the MAIN cost centre is -- is
> it just a catch-all bucket? Are we measuring time spent in the runtime
> system?
>
> G


MAIN is always the root of the call-tree, so I think it's the cost-centre
which subsumes all. That its inherited cost is 100% is natural, thus. But
usually, its individual cost is 0%, so there's something strange going on.
_______________________________________________
Haskell-Cafe mailing list
[email]Haskell-Cafe@haskell.org[/email]
[url]http://www.haskell.org/mailman/listinfo/haskell-cafe[/url]
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Haskell-beginners] Interpreting profiling results Patrick LeBoutillier fa.haskell 7 16-02-10 05:43 PM
[Haskell-cafe] Template Haskell + Profiling Krzysztof Skrzętnicki fa.haskell 2 24-04-09 05:31 PM
[Haskell-cafe] cabal install vs. profiling David F. Place fa.haskell 1 15-04-09 05:21 PM
[Haskell-cafe] How to think about this? (profiling) Magnus Therning fa.haskell 10 16-12-08 09:10 PM
[Haskell-cafe] [Fwd: profiling in haskell] Vlad Skvortsov fa.haskell 5 13-09-08 02:38 AM


All times are GMT +1. The time now is 06:16 PM. Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0



For ads on this site use independent advertising companies. These companies may use some data (which does not include your name, address, email address or telephone number) about your visits to this and other websites to create advertisements on products and services you might enjoy. If you'd like more information and to know the options available to prevent the use of such information by these companies, click here