Dnia niedziela, 29 stycznia 2012 20:06:24 Roberto De Ioris pisze: > > Hi, > > > > after adding avg_rt and rss_size fields to carbon graphs I've noticed > > funny > > thing: avg_rt looks is related to memory usage (or looks like it is), when > > rss_size grows avg_rt also grows, look at the graphs below. > > > > average response time: > > http://imageshack.us/photo/my-images/11/avgrt.png/ > > > > memory usage: > > http://imageshack.us/photo/my-images/831/rsssize.png/ > > > > Maybe: > > a) stats are wrong, response times are constants, only the time needed for > > metrics gathering grows (?) or other issue related to measuring avg_rt > > b) when memory grows uWSGI has more pages to crawl when serving request > > > > App used is just serving static files with --static-index, I use it to > > test my > > whole setup in real life conditions. I've disabled KSM in vassal config > > and it > > had no effect. The avg_rt values are small and so it is likly that this is > > measurment error but the behaviour is very stable and happens always after > > restarting vassal. Version used is 1.0.2.1 with carbon patch from #76. > > I do not report this as an issue that needs resolving, it's only > > observation. > > Have you checked if it happens after a full reload ?
It was caused by large number of workers and low request rate. I have 16 workers and up to 20 requests/second and I've noticed that most requests are handled by 2-3 workers, so the rest had just only few requests served. So after starting workers I had 13x0ms + 3x0.10ms and the total average was very low. After some time when other workres had also some requests served, they got more realistic average response times in statistics output. After changing the number of processes to 1 graphs looks normal, worker shows realistic avg_rt times immediately after start. It's just something one needs to keeps in mind when looking at carbon graphs. Łukasz Mierzwa _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
