On 2012.07.10 14:19, sebasti...@gmx-topmail.de wrote: > Setting the log level to 4 generates huge CPU load and the log file grows > very fast (200-300 Kbyte/s).
Yeah, I was afraid of that. If you have a fair amount of traffic, the log will growth rate with match that. > Rotating the log does not work the way it should. Although logrotate > renames the old logfile to pcscd.log.1 and creates a new one, but pcscd > keeps writing to the old file handle. The new log file remains empty. I think this makes sense. The opened fd still points to the old log, so you actually would have to restart pcscd to get the new logfile to be used. Not sure if that's an option. Restarting pcscd on regular basis could also tell us if we're faced with a crash due to accumulation (eg. overflow that ends up eating a valuable data area) or something random, if its occurrence seems unrelated to how long pcscd has been in operation. > I’m afraid I’ll not be able to introduce this extensive logging in the > productive environment. Understood. If libusbx logging can't do, then maybe you can take a look at usbmon [1], provided it can be setup with minimal logging so as not to interfere too much with your production system. The idea is still to try to figure out what kind of operations are occurring at the time of the crash, to first find out if there's anything out of the ordinary, and if not, identify how it may be possible to replicate the issue. Regards, /Pete [1] http://www.kernel.org/doc/Documentation/usb/usbmon.txt ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel