Re: [Freeciv-Dev] [bug #24018] The AI players are extremely slow during europa_1901's turn change

2015-11-04 Thread Andreas Røsdal
> Are the AI players unusually slow for the number of units and cities they
have?

I think the AI is unusually slow in this scenario. At the moment the Europe
1901 is not usable on the production server.
Possibly the AI will have to behave differently with a very large number of
cities and units, for example perform less calculations for each unit if
the number of units is above some threshold value.


Andreas
___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #24018] The AI players are extremely slow during europa_1901's turn change

2015-11-04 Thread Marko Lindqvist
Follow-up Comment #4, bug #24018 (project freeciv):

In case of aitoggle, at least, the time is spent in assess_danger(), called
for 46 cities player owns, each taking seconds to process.

___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #24018] The AI players are extremely slow during europa_1901's turn change

2015-11-04 Thread Marko Lindqvist
Follow-up Comment #3, bug #24018 (project freeciv):

Yeah, I took "George V" to enter the game. Tried to aitoggle him off to have
an all-AI game, and that simple *aitoggle* took extremely long time. This is
something to investigate.

___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #24018] The AI players are extremely slow during europa_1901's turn change

2015-11-04 Thread Marko Lindqvist
Follow-up Comment #6, bug #24018 (project freeciv):

With patch #6550:

Each sample counts as 0.01 seconds.
  %   cumulative   self  self total   
 time   seconds   secondscalls   s/call   s/call  name
 37.63 31.4031.40 139470450 0.00 0.00  pf_normal_map_iterate
 11.05 40.62 9.22 544973169 0.00 0.00  tile_move_cost_ptrs
  9.68 48.70 8.08 533192173 0.00 0.00 
base_get_direction_for_step
  3.15 51.33 2.63 1770384743 0.00 0.00  is_native_to_class
  2.34 53.28 1.95 1149920129 0.00 0.00  map_pos_to_tile
  2.07 55.01 1.73 1730602476 0.00 0.00  tile_has_extra
  2.04 56.71 1.70 544973169 0.00 0.00  normal_move
  1.88 58.28 1.57 166058467 0.00 0.00  player_can_invade_tile
  1.65 59.66 1.38 1235025786 0.00 0.00 
is_native_tile_to_class
  1.33 60.77 1.11 535356118 0.00 0.00  is_native_move
  1.32 61.87 1.10 851560216 0.00 0.00  utype_has_flag
  1.29 62.95 1.08 tile_has_road_flag
  1.28 64.02 1.07 168315999 0.00 0.00  pf_get_move_scope
  1.27 65.08 1.06 533192173 0.00 0.00  get_direction_for_step
  1.23 66.11 1.03 533192173 0.00 0.00  is_move_cardinal
  1.03 66.97 0.86
can_attack_from_non_native
  1.03 67.83 0.86 genlist_release_mutex


___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #24018] The AI players are extremely slow during europa_1901's turn change

2015-11-04 Thread Marko Lindqvist
Follow-up Comment #5, bug #24018 (project freeciv):

Each sample counts as 0.01 seconds.
  %   cumulative   self  self total   
 time   seconds   secondscalls   s/call   s/call  name
 38.67 52.3252.32 139470450 0.00 0.00  pf_normal_map_iterate
 10.52 66.5514.23 533192173 0.00 0.00 
base_get_direction_for_step
  8.15 77.5811.03 544973169 0.00 0.00  tile_move_cost_ptrs
  5.63 85.20 7.62 3572464560 0.00 0.00  map_pos_to_tile
  3.60 90.07 4.87 166058467 0.00 0.00  player_can_invade_tile
  2.96 94.07 4.00 1770384743 0.00 0.00  is_native_to_class
  2.19 97.03 2.96 535356118 0.00 0.00  is_native_move
  1.58 99.17 2.14 1730602476 0.00 0.00  tile_has_extra
  1.45101.13 1.96 1235025786 0.00 0.00 
is_native_tile_to_class
  1.43103.06 1.93 544973169 0.00 0.00  normal_move
  1.39104.94 1.88 168315999 0.00 0.00  pf_get_move_scope
  1.32106.72 1.78 tile_has_road_flag
  1.20108.34 1.62 533192173 0.00 0.00  is_move_cardinal
  1.14109.88 1.541 1.54 1.54  map_init_topology
  1.13111.41 1.5356580 0.00 0.00  pf_reverse_map_pos


___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #24018] The AI players are extremely slow during europa_1901's turn change

2015-11-03 Thread Andreas Røsdal
Follow-up Comment #1, bug #24018 (project freeciv):

Yes, I can confirm that this is the issue with Freeciv-web as well. 
The freeciv server process is running at 100% CPU usage.
Attaching a backtrace generated with gdb when attatching to such a process.

(file #25582)
___

Additional Item Attachment:

File name: freeciv-europe.txt Size:5 KB


___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #24018] The AI players are extremely slow during europa_1901's turn change

2015-11-03 Thread Jacob Nevins
Follow-up Comment #2, bug #24018 (project freeciv):

Are the AI players unusually slow for the number of units and cities they
have?

It's unusual to experience this right from the start of a game, rather than
having one's frog boiled  as the
game progresses.

___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #24018] The AI players are extremely slow during europa_1901's turn change

2015-11-02 Thread Sveinung Kvilhaugsvik
URL:
  

 Summary: The AI players are extremely slow during
europa_1901's turn change
 Project: Freeciv
Submitted by: sveinung
Submitted on: Mon 02 Nov 2015 10:43:46 PM UTC
Category: ai
Severity: 3 - Normal
Priority: 5 - Normal
  Status: None
 Assigned to: None
Originator Email: 
 Open/Closed: Open
 Release: TRUNK
 Discussion Lock: Any
Operating System: None
 Planned Release: 

___

Details:

Slow enough to give the impression that the server has locked up. This didn't
happen before patch #6493 made all players AI controlled by default.

Andreas: Could you check if this is the issue in Freeciv-web too?




___

Reply to this item at:

  

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev