On Mon, May 18, 2009 at 02:11:46PM +0900, Ken'ichi Ohmichi wrote: > > Hi, > > I tested "cgred" service in long time, and /var/log/messages was filled > with many log messages like the following: > > May 18 09:46:46 localhost CGRE[18157]: Cgroup change for PID: 26938, UID: > 500, GID: 0 FAILED! (Error Code: 50016) > May 18 09:46:46 localhost CGRE[18157]: Failed to open /proc/26938/status > May 18 09:46:46 localhost CGRE[18157]: Failed to open /proc/26939/status > May 18 09:46:46 localhost CGRE[18157]: Cgroup change for PID: 26940, UID: > 500, GID: 0 FAILED! (Error Code: 50016) > May 18 09:46:46 localhost CGRE[18157]: Failed to open /proc/26940/status > May 18 09:46:46 localhost CGRE[18157]: Failed to open /proc/26941/status > May 18 09:46:46 localhost CGRE[18157]: Failed to open /proc/26942/status > May 18 09:46:46 localhost CGRE[18157]: Failed to open /proc/26943/status > > I think we can delete the above messages as spam log messages by > two patches: > [PATCH 1/2] Delete "Failed to open /proc/<pid>/status" as spam log. > [PATCH 2/2] Reduce "Cgroup change for PID:X, UID:X, GID:X FAILED!" messages. > > Any comment is welcome. >
While I have no objection to the patches, I am wondering if it is better to throttle the messages. Say maybe 5 messages per 10 seconds, Beyond that, I think we need to make the logging a bit smarter, as in not reporting failures for processes which have already exited instead of just removing all the failures. In some cases we might have a genuine failure. In the meantime, if there are no objections, I will look to merge these patches in. thanks, -- regards, Dhaval ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Libcg-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libcg-devel
