Hi, Here is the log of the chatroom at http://farsides.com/chat/ (or irc://irc.freenode.net/#farsides) for the 2011-04-26.
2011-04-26 07:40:44+0000 da (da) is now online 2011-04-26 08:04:51+0000 dachary (dachary) is now online 2011-04-26 09:31:55+0000 dachary (dachary) is now online 2011-04-26 10:05:27+0000 antoviaque (antoviaque) is now online 2011-04-26 12:56:11+0000 dachary (dachary) is now online 2011-04-26 13:21:06+0000 <dachary> antoviaque: http://dachary.org/?p=386 I think there is a leak in the server code but it's subtle and it will be a long time before it proves inconvenient. 2011-04-26 13:22:05+0000 <dachary> the test server currently runs with 25,000 games and 25,000 users and occupies 300MB of RAM which is more than I would have expected. 2011-04-26 13:24:12+0000 <antoviaque> concurrent users?! it's still very very good 2011-04-26 13:25:13+0000 <antoviaque> ah no ;p 2011-04-26 13:26:07+0000 <dachary> ahahah 2011-04-26 13:26:08+0000 <dachary> total 2011-04-26 13:26:22+0000 <dachary> 25 request per second 2011-04-26 13:27:15+0000 <dachary> I'll go to the railway station 2011-04-26 13:27:18+0000 <dachary> bbl 2011-04-26 13:27:24+0000 <dachary> do you have plans for tonight ? 2011-04-26 13:27:37+0000 <dachary> I'm without child / wife ;-) 2011-04-26 13:27:37+0000 <dachary> bbl 2011-04-26 13:28:55+0000 <antoviaque> Cool, would be nice to do something! 2011-04-26 13:30:12+0000 <antoviaque> I've a meeting at 7pm, but after that I'm free 2011-04-26 13:30:35+0000 <antoviaque> I can come to your place on my way back if you want, drinking a beer or two : ) 2011-04-26 14:45:25+0000 <dachary> back 2011-04-26 14:46:08+0000 <dachary> cool. Drinking beers near the canal would be cool. 2011-04-26 14:47:46+0000 <antoviaque> yup! I give you a call when I'm out ? 2011-04-26 14:47:47+0000 <dachary> I can come @ menilmontant too if tatarugafeliz wants to join 2011-04-26 14:47:55+0000 <antoviaque> let me ask 2011-04-26 14:49:02+0000 <antoviaque> she has a diner with Joana tonight, so it will be only me! 2011-04-26 14:50:31+0000 <dachary> You is good. I'll be expecting your call. 2011-04-26 14:50:39+0000 <antoviaque> ok! 2011-04-26 14:56:57+0000 <dachary> there definitely is a leak in cardstories 2011-04-26 14:56:58+0000 <dachary> mumble 2011-04-26 14:57:38+0000 <dachary> thank you tsung 2011-04-26 16:02:00+0000 * dachary examines the running process using the manhole shell 2011-04-26 16:02:20+0000 <dachary> ssh -p 2222 user@localhost 2011-04-26 16:02:35+0000 <dachary> get me a python prompt in the running process 2011-04-26 16:02:46+0000 <dachary> antoviaque: did you know twisted had that feature ? 2011-04-26 16:09:24+0000 <antoviaque> nope, but that's very kewl :D 2011-04-26 16:16:27+0000 <dachary> :-) 2011-04-26 16:32:32+0000 <dachary> >>> print cardstories_service.players.keys() 2011-04-26 16:32:32+0000 <dachary> print cardstories_service.players.keys() 2011-04-26 16:32:32+0000 <dachary> [887, 895, 898, 899, 900, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921] 2011-04-26 16:32:40+0000 <dachary> this is cool 2011-04-26 16:33:03+0000 <dachary> print cardstories_service.players.keys() 2011-04-26 16:33:03+0000 <dachary> [937, 943, 945, 951, 952, 953, 954, 955, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973] 2011-04-26 16:33:08+0000 <dachary> I see players expiring 2011-04-26 16:34:12+0000 <dachary> I think the memory footprint for each game is bigger than I thought 2011-04-26 16:34:39+0000 <dachary> there were 50,000 on going games when the process was 400MB 2011-04-26 16:35:17+0000 <dachary> ~8k per game 2011-04-26 16:35:45+0000 <dachary> that is the in core object + a timer for the game timeout 2011-04-26 16:36:16+0000 <dachary> I should not be too picky 2011-04-26 16:47:48+0000 <dachary> 321 LOC of JavaScript, 687 LOC of Python = 1008 LOC 2011-04-26 16:50:33+0000 <antoviaque> Yes, it's really not that bad 2011-04-26 16:50:39+0000 <antoviaque> What's a LOC? 2011-04-26 17:13:26+0000 <dachary> Lines Of Code 2011-04-26 17:13:53+0000 <dachary> i.e. without empty / comment lines 2011-04-26 17:14:09+0000 <antoviaque> yup, quite small at the end : ) 2011-04-26 17:14:37+0000 <dachary> very small 2011-04-26 17:14:48+0000 <dachary> still leaks though 2011-04-26 17:14:52+0000 <dachary> dam 2011-04-26 17:14:56+0000 <dachary> can't figure out why 2011-04-26 17:17:22+0000 <dachary> 20MB in one hour. 2011-04-26 17:18:28+0000 <dachary> I'll hit it with ab to make sure the handling of a single request does not leak 2011-04-26 17:18:30+0000 <antoviaque> Issue with Python garbage collection? I never looked closely how it does the job 2011-04-26 17:18:37+0000 <dachary> I doubt that 2011-04-26 17:18:49+0000 <dachary> it's doing a very good job 2011-04-26 17:25:54+0000 <dachary> I'm running ab -c 1 -n 20000000 'http://cardstories.politis.vm.gnt:5000/resource?action=poll&player_id=loic&modified=-1' 2011-04-26 17:26:12+0000 <dachary> which does nothing but return 2011-04-26 17:26:23+0000 <dachary> Requests per second: 67.44 [#/sec] (mean) 2011-04-26 17:26:41+0000 <dachary> I'll let it run for 15 minutes and see if the process grows 2011-04-26 17:27:20+0000 <dachary> that will tell me if the handling of the request, including the auth mechanism leaks or not 2011-04-26 17:28:35+0000 * dachary reading the code in the meantime 2011-04-26 17:33:24+0000 <antoviaque> I didn't go to my meeting, so I can come when you want 2011-04-26 18:24:24+0000 <dachary> antoviaque: you did not say the "dachary" word and I did not see your message before now 2011-04-26 18:59:16+0000 <dachary> I found a vicious bug 2011-04-26 21:24:54+0000 da (da) is now online _______________________________________________ Farsides mailing list - [email protected] Wiki: http://farsides.com/ List: http://farsides.com/ml/ Forum: http://farsides.com/forum/ Ideas: http://farsides.com/ideas/ Chat: http://farsides.com/chat/

