Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2004:
[Freeciv-Dev] Re: (PR#11562) Freeciv Server Performance
Home

[Freeciv-Dev] Re: (PR#11562) Freeciv Server Performance

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: kaufman@xxxxxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#11562) Freeciv Server Performance
From: "Vasco Alexandre da Silva Costa" <vasc@xxxxxxxxxxxxxx>
Date: Fri, 17 Dec 2004 10:39:00 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=11562 >

On Thu, 16 Dec 2004, Mike Kaufman wrote:

> <URL: http://bugs.freeciv.org/Ticket/Display.html?id=11562 >
>
> Observations:
>
> on the S2_0 and HEAD versions, there is an annoyingly long wait after game
> start but before con_prompt_init(). This may be the entire difference on
> 1 turn games.
>
> Sanity checking on game loading (by S2_0 and HEAD) found some savegame
> errors for the 2001 and 2101 games.
>
> Loading the game and rulesets are probably the majority of the time on 1
> turn games.
>
> In the later stages, S2_0 and HEAD are insanely slow compared to 1.14.2
> Taking 2 and 3 times as long is simply unacceptable.
>
> Waiting 30-40sec on turn done on a P4 is bad enough. I dare not see
> how pubserver handles this!
>
> Serious thought about optimization is warranted here.

Try -O3. It should boost the effects code by a whole lot, for one.

From your tests S2_0 is 3-4x slower than S1_14.

> If people have any patches or scripts they use to measure server
> performance, then by all means, post them here.
>
> If someone would like to post a recent profile, that would be nice too.

Compile the server with "-pg -g" and run it. After it terminates with
exit(0) as normal, run "gprof <executable-name>".

---
Vasco Alexandre da Silva Costa @ Instituto Superior Tecnico, Lisboa





[Prev in Thread] Current Thread [Next in Thread]