On 13.10.2012 11:52, Frank Karlitschek wrote: > Hi Arthur, > > first of all. Thanks for looking into performance. This is very important. +1
> I think it´s a myth that session creation is a significant performance factor > in our case. I worked on PHP systems with 100.000 times more hits than a > normal ownCloud installation without problems in the session management. And > a working session is a essential part of a modern web application. I very much need a session to cache user information like the home dir which I fetch via a custom API. I imagine the same would be the case if the user hame was resolved via LDAP. You don't want to make an extra trip to the API for each request. The problem is annoying enough with webdav clients that dont send the session id on subsequent requests ... > I would like to see performance measurements that show a performance impact > in our case before we change the current behavior. [...] > I suggest to do the following: > > Create a new "PROFILING" switch in config.php similar to "DEBUG" > > Add a "ProfilingEvent" call that takes an event ann writes it into a local > profiling logfile together with an event type and a timestamp. > Add this ProfilingEvent call to OC_DB and OC_Hook. > > Then just do a tail -f to the profiling log and do stuff like syncing a > folder or mounting an external filesystem. There are things that we have to > improve that have a magnitude more impact than a php session. I suggest using xdebug and profiling the bottlenecks. Or maybe first make a list of suspected bottlenecks and send a request for profiling them on the mailing list. Or even better: create a "performance analysis" page on owncloud.org and show in "in the public" that we are working on performance and how people can help (by profiling owncloud with a howto describing cdebug setup and how to read profiling logs, as well as common profiling results explained) ... I don't want to open a can of worms: a wiki comes to mind. But thats a topic for the dev meeting ;) so long Jörn -- Jörn Friedrich Dreyer ([email protected]) Software Developer ownCloud GmbH Your Data, Your Cloud, Your Way! ownCloud GmbH, GF: Markus Rex, Holger Dyroff Schloßäckerstrasse 26a, 90443 Nürnberg, HRB 28050 (AG Nürnberg) _______________________________________________ Owncloud mailing list [email protected] https://mail.kde.org/mailman/listinfo/owncloud
