Re: [Freeciv-Dev] memory requirement (statistics)
Am Dienstag, 16. November 2010, 16:48:20 schrieb Matthias Pfafferodt: After the increase of the number of players and the map size I did plan a check of the memory requirement of the different freeciv versions. I finished this now and the attached pdf files shows some results. The first two pages show the RAM used by the server as listed by pmap. A savefile with the default settings and aifill = X, map size = Y at turn 100 was loaded. Only one value of X or Y was changed while the other was set to 10. The requirements increase fro release to release; but with 2.3 it goes down for bigger maps. I also tested a game with aifill 100 and mapsize 100 - the server allocates up to 900MB RAM! This value can be analysed with regard to the map. Each player map (for fog of war) needs for each tile 48 byte. For a map size of 100 and 100 players this will be: bytes per tile: 48B tiles on the map: 100 * 1000 player: 100 48B * (100 * 1000) * 100 = 48000B = 457MB The main map needs no memory compared to this value: bytes per tile: 88B tiles on the map: 100 * 1000 88B * (100 * 1000) = 880B = 8MB For the player I have not checked the actuel memory size, but one has to take into account that for each player information about all other players are needed (diplomatic state)! The last two slides show the size of the savegame. For small number of players and map sizes is is OK. But increasing these numbers the size of the savegame increases and, if both are set to 100 the uncompressed savegame reaches a size of over 100MB. For such savegames the time needed to compress the data is significant. For the client, the memory consumption is increased from 1.14 to 2.2 (xaw to gtk2). After that, nearly no change is visible. The client uses up to 500MB, mostly for the graphical toolkit. If there are questions please ask. -- Matthias Pfafferodt - http://www.mapfa.de Matthias.Pfafferodt at mapfa.de ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #17109] Map grid color should be white only when option City Outlines is on.
URL: http://gna.org/bugs/?17109 Summary: Map grid color should be white only when option City Outlines is on. Project: Freeciv Submitted by: None Submitted on: Friday 11/19/2010 at 13:23 CET Category: client-gtk-2.0 Severity: 3 - Normal Priority: 5 - Normal Status: None Assigned to: None Originator Email: Open/Closed: Open Release: Discussion Lock: Any Operating System: GNU/Linux Planned Release: ___ Details: I use the Trident tileset. Sometimes I need to turn on visualization of map grid, and I like its black color, separating the tiles. But near the cities, its color turns white. I think that map grid color should be white only when other option, which is called City Outlines, is turned on. When City Outlines option is off, I think map grid should be entirely black. Tks, KS ___ Reply to this item at: http://gna.org/bugs/?17109 ___ 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] [patch #2214] [autosettler] merge struct settlermap and struct citytile
URL: http://gna.org/patch/?2214 Summary: [autosettler] merge struct settlermap and struct citytile Project: Freeciv Submitted by: syntron Submitted on: Freitag 19.11.2010 um 15:48 Category: ai Priority: 3 - Low Status: Ready For Test Privacy: Public Assigned to: syntron Originator Email: Open/Closed: Open Discussion Lock: Any Planned Release: 2.4.0 ___ Details: * move sum into struct tile_cache_data * move reserved information ___ File Attachments: --- Date: Freitag 19.11.2010 um 15:48 Name: 20101119-03-trunk-autosettler-merge-struct-settlermap-and-struct-cityt.patch Size: 7kB By: syntron http://gna.org/patch/download.php?file_id=11279 ___ Reply to this item at: http://gna.org/patch/?2214 ___ Nachricht geschickt von/durch Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [patch #2215] [autosettler] add static function definitions
URL: http://gna.org/patch/?2215 Summary: [autosettler] add static function definitions Project: Freeciv Submitted by: syntron Submitted on: Freitag 19.11.2010 um 15:51 Category: ai Priority: 3 - Low Status: Ready For Test Privacy: Public Assigned to: syntron Originator Email: Open/Closed: Open Discussion Lock: Any Planned Release: 2.4.0 ___ Details: * use const keyword in aisettler.c ___ File Attachments: --- Date: Freitag 19.11.2010 um 15:51 Name: 20101119-04-trunk-autosettler-add-static-function-definitions.patch Size: 4kB By: syntron http://gna.org/patch/download.php?file_id=11280 ___ Reply to this item at: http://gna.org/patch/?2215 ___ Nachricht geschickt von/durch Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [patch #2216] [autosettler] dynamically allocate struct cityresult
URL: http://gna.org/patch/?2216 Summary: [autosettler] dynamically allocate struct cityresult Project: Freeciv Submitted by: syntron Submitted on: Freitag 19.11.2010 um 15:51 Category: ai Priority: 3 - Low Status: Ready For Test Privacy: Public Assigned to: syntron Originator Email: Open/Closed: Open Discussion Lock: Any Planned Release: 2.4.0 ___ Details: ___ File Attachments: --- Date: Freitag 19.11.2010 um 15:51 Name: 20101119-05-trunk-autosettler-dynamically-allocate-struct-cityresult.patch Size: 19kB By: syntron http://gna.org/patch/download.php?file_id=11281 ___ Reply to this item at: http://gna.org/patch/?2216 ___ Nachricht geschickt von/durch Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [patch #2217] [autosettler] dynamically allocate struct cityresult
URL: http://gna.org/patch/?2217 Summary: [autosettler] dynamically allocate struct cityresult Project: Freeciv Submitted by: syntron Submitted on: Freitag 19.11.2010 um 15:52 Category: ai Priority: 3 - Low Status: Ready For Test Privacy: Public Assigned to: syntron Originator Email: Open/Closed: Open Discussion Lock: Any Planned Release: 2.4.0 ___ Details: ___ File Attachments: --- Date: Freitag 19.11.2010 um 15:52 Name: 20101119-06-trunk-autosettler-dynamically-allocate-citymap-in-struct-c.patch Size: 13kB By: syntron http://gna.org/patch/download.php?file_id=11282 ___ Reply to this item at: http://gna.org/patch/?2217 ___ Nachricht geschickt von/durch Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [patch #2218] [autosettler] use a hash for plr-ai-settler_map
URL: http://gna.org/patch/?2218 Summary: [autosettler] use a hash for plr-ai-settler_map Project: Freeciv Submitted by: syntron Submitted on: Freitag 19.11.2010 um 15:52 Category: ai Priority: 3 - Low Status: Ready For Test Privacy: Public Assigned to: syntron Originator Email: Open/Closed: Open Discussion Lock: Any Planned Release: 2.4.0 ___ Details: ___ File Attachments: --- Date: Freitag 19.11.2010 um 15:52 Name: 20101119-07-trunk-autosettler-use-a-hash-for-plr-ai-settler_map.patch Size: 10kB By: syntron http://gna.org/patch/download.php?file_id=11283 ___ Reply to this item at: http://gna.org/patch/?2218 ___ Nachricht geschickt von/durch Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [patch #2219] [autosettler] use aiplayer framework
URL: http://gna.org/patch/?2219 Summary: [autosettler] use aiplayer framework Project: Freeciv Submitted by: syntron Submitted on: Freitag 19.11.2010 um 15:53 Category: ai Priority: 3 - Low Status: Ready For Test Privacy: Public Assigned to: syntron Originator Email: Open/Closed: Open Discussion Lock: Any Planned Release: 2.4.0 ___ Details: * initialise / free ai settler engine ___ File Attachments: --- Date: Freitag 19.11.2010 um 15:53 Name: 20101119-08-trunk-autosettler-use-aiplayer-framework.patch Size: 7kB By: syntron http://gna.org/patch/download.php?file_id=11284 ___ Reply to this item at: http://gna.org/patch/?2219 ___ Nachricht geschickt von/durch Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [patch #2219] [autosettler] use aiplayer framework
Update of patch #2219 (project freeciv): Depends on: = patch #2168 ___ Reply to this item at: http://gna.org/patch/?2219 ___ Nachricht geschickt von/durch Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [patch #2220] [Metaticket] cleanup autosettler
URL: http://gna.org/patch/?2220 Summary: [Metaticket] cleanup autosettler Project: Freeciv Submitted by: syntron Submitted on: Freitag 19.11.2010 um 15:55 Category: ai Priority: 5 - Normal Status: In Progress Privacy: Public Assigned to: syntron Originator Email: Open/Closed: Open Discussion Lock: Any Planned Release: 2.4.0 ___ Details: * cleanup aisettler.c * use a hash for the settlermap ___ Reply to this item at: http://gna.org/patch/?2220 ___ Nachricht geschickt von/durch Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [patch #2220] [Metaticket] cleanup autosettler
Update of patch #2220 (project freeciv): Depends on: = patch #2210 ___ Reply to this item at: http://gna.org/patch/?2220 ___ Nachricht geschickt von/durch Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #15519] [autosettler] move cachemap for AI auto settler into player ai data struct
Follow-up Comment #7, bug #15519 (project freeciv): Of course, this can be done with a hash table. And this is a very good candidate for. Done; see patch #2218. I hope that the use of the hash functions is correct. Mainly, that the data is freed after use (in hash_destroy, hash_replace). If I understand the code right, this is done automatically be the spechash/genhash module. ___ Reply to this item at: http://gna.org/bugs/?15519 ___ Nachricht geschickt von/durch Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [patch #2168] [ai header] add aiplayer.(ch) as framework for player AI data
Follow-up Comment #1, patch #2168 (project freeciv): changes 20101119: * add function player_ai_control() which is used to toggle ai status (file #11285) ___ Additional Item Attachment: File name: 20101119-trunk-ai-header-add-aiplayer.-ch-as-framework-for-player-A.patch Size:17 KB ___ Reply to this item at: http://gna.org/patch/?2168 ___ Nachricht geschickt von/durch Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [task #7232] Tracking release 2.3.0-beta1
Update of task #7232 (project freeciv): Dependency Removed: = bugs #16887 ___ Reply to this item at: http://gna.org/task/?7232 ___ Nachricht geschickt von/durch Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #17098] fix crash as observer
Update of bug #17098 (project freeciv): Status: Ready For Test = Fixed Open/Closed:Open = Closed ___ Reply to this item at: http://gna.org/bugs/?17098 ___ Nachricht geschickt von/durch Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #17080] unused events
Update of bug #17080 (project freeciv): Status: Ready For Test = Fixed Open/Closed:Open = Closed ___ Reply to this item at: http://gna.org/bugs/?17080 ___ Nachricht geschickt von/durch Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #16963] Missing and incorrect messages
Update of bug #16963 (project freeciv): Status: Ready For Test = Fixed Open/Closed:Open = Closed ___ Reply to this item at: http://gna.org/bugs/?16963 ___ Nachricht geschickt von/durch Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #16958] no messages for diplomat combat when in allied city
Update of bug #16958 (project freeciv): Status: Ready For Test = Fixed Open/Closed:Open = Closed ___ Reply to this item at: http://gna.org/bugs/?16958 ___ Nachricht geschickt von/durch Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #16958] no messages for diplomat combat when in allied city
Follow-up Comment #5, bug #16958 (project freeciv): Sorry for late comment, but I think some of the arguments to the new messages may be wrong? Quick untested patch for S2_3 attached (I haven't checked if it applies to the other branches). Doesn't affect the strings. (file #11286) ___ Additional Item Attachment: File name: S2_3-bug16958-fixes.diff Size:1 KB ___ Reply to this item at: http://gna.org/bugs/?16958 ___ 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 #16958] no messages for diplomat combat when in allied city
Update of bug #16958 (project freeciv): Status: Fixed = Ready For Test Open/Closed: Closed = Open ___ Reply to this item at: http://gna.org/bugs/?16958 ___ Message posté via/par Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #16509] Blank hostname
Update of bug #16509 (project freeciv): Status: Ready For Test = Fixed Open/Closed:Open = Closed ___ Reply to this item at: http://gna.org/bugs/?16509 ___ Message posté via/par Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #16639] fix assert in dbv_isset() at server exit
Update of bug #16639 (project freeciv): Assigned to: pepeto = None ___ Follow-up Comment #6: The Glib warnings are usually caused by clicking the combo boxes (it's a gtk bug). ___ Reply to this item at: http://gna.org/bugs/?16639 ___ Message posté via/par Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #16992] Female qualified ruler title strings ignored
Follow-up Comment #4, bug #16992 (project freeciv): Oops, I should have paid a bit more attention to ruler titles when doing patch #2077. Sorry about that. ___ Reply to this item at: http://gna.org/bugs/?16992 ___ 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 #16769] corrupt save files ( query(bad EOF) )
Update of bug #16769 (project freeciv): Status: Ready For Test = Fixed Open/Closed:Open = Closed ___ Reply to this item at: http://gna.org/bugs/?16769 ___ Message posté via/par Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #16992] Female qualified ruler title strings ignored
Follow-up Comment #5, bug #16992 (project freeciv): This is not a problem, you work was good... It was quite trivial to fix anyway. ___ Reply to this item at: http://gna.org/bugs/?16992 ___ Message posté via/par Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #17042] in look_for_charge() [aiunit.c::851]: assertion '0 def' failed
Update of bug #17042 (project freeciv): Status: Ready For Test = Fixed Open/Closed:Open = Closed ___ Reply to this item at: http://gna.org/bugs/?17042 ___ Message posté via/par Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #17065] Server boolean options cannot be correctly set
Update of bug #17065 (project freeciv): Status: Ready For Test = Fixed Open/Closed:Open = Closed ___ Reply to this item at: http://gna.org/bugs/?17065 ___ Message posté via/par Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #17089] error loading old savegames (startpos)
Update of bug #17089 (project freeciv): Status: Ready For Test = Fixed Open/Closed:Open = Closed ___ Reply to this item at: http://gna.org/bugs/?17089 ___ Message posté via/par Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #17090] Last iterator can be processed many times in pf_map_iterate()
Update of bug #17090 (project freeciv): Status: Ready For Test = Fixed Open/Closed:Open = Closed ___ Reply to this item at: http://gna.org/bugs/?17090 ___ Message posté via/par Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #17092] pft_fill_utype_*() initialized value
Update of bug #17092 (project freeciv): Status: Ready For Test = Fixed Open/Closed:Open = Closed ___ Reply to this item at: http://gna.org/bugs/?17092 ___ Message posté via/par Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [patch #1656] Export specenum_gen enums in the Lua event scripting API
Update of patch #1656 (project freeciv): Status: Ready For Test = Done Open/Closed:Open = Closed ___ Reply to this item at: http://gna.org/patch/?1656 ___ Message posté via/par Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [patch #2207] Extended tools for pf_reverse_map
Update of patch #2207 (project freeciv): Status: Ready For Test = Done Open/Closed:Open = Closed ___ Reply to this item at: http://gna.org/patch/?2207 ___ Message posté via/par Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [patch #2208] Removed hard-coded references to MAX_COST for pf_reverse_map
Update of patch #2208 (project freeciv): Status: Ready For Test = Done Open/Closed:Open = Closed ___ Reply to this item at: http://gna.org/patch/?2208 ___ Message posté via/par Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [patch #2209] Remove last uses of the old warmap
Update of patch #2209 (project freeciv): Status: Ready For Test = Done Open/Closed:Open = Closed ___ Reply to this item at: http://gna.org/patch/?2209 ___ Message posté via/par Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [patch #2211] Move goto_is_sane() to ai/aitools.h
Update of patch #2211 (project freeciv): Status: Ready For Test = Done Open/Closed:Open = Closed ___ Reply to this item at: http://gna.org/patch/?2211 ___ Message posté via/par Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [patch #2142] Remove old modules?
Update of patch #2142 (project freeciv): Status: Ready For Test = Done Open/Closed:Open = Closed ___ Follow-up Comment #3: Committed at revisions #18549 and #18550. ___ Reply to this item at: http://gna.org/patch/?2142 ___ Message posté via/par Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [patch #1303] [Metaticket] Remove warmap
Update of patch #1303 (project freeciv): Status: In Progress = Done Open/Closed:Open = Closed ___ Reply to this item at: http://gna.org/patch/?1303 ___ Message posté via/par Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #17110] Synchronize images for city with city radius
URL: http://gna.org/bugs/?17110 Summary: Synchronize images for city with city radius Project: Freeciv Submitted by: mrvn Submitted on: Saturday 11/20/2010 at 03:14 Category: client Severity: 1 - Wish Priority: 5 - Normal Status: None Assigned to: None Originator Email: Open/Closed: Open Release: Discussion Lock: Any Operating System: None Planned Release: ___ Details: There are images for cities of different size so bigger cities do look bigger on the map. Currenty the first change happens with size 4. The city radius on the other hand grows with size 3 (at least in my ruleset). I think it would be nice if the image for a city would change based on city radius instead of city size when the ruleset has variable city radii. ___ Reply to this item at: http://gna.org/bugs/?17110 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev