RE: [SOLUTION] SF6800 booting problem [kernel/sparcv9/unix]

From: Gajendra, Sharma (Gajendra.Sharma@siemens.com)
Date: Tue Feb 07 2006 - 01:08:25 EST


Hello experts,

I am writing an application in Solaris, which is supposed to work on
PrimePower 650 and SunFire 440 machines. The application listens to the
events raised by the Hardware and OS in /dev/log. The application
listens to the messages logged into /dev/log and do some processing on
them. Now, when there is a load condition occuring at /dev/log(i.e.
number of messages per second ocurring at /dev/log is high), CPU
consumption by my application shoots up to 50%, while my application is
expected to consume not more than 1% CPU.
Now, I want to bring down the CPU consumption to 1%. Since the CPU
consumtion can vary according to various CPU configurations, i have to
ensure that the CPU consumption remains below 1% for low end CPUs.

Thanks in advance.

Currently to solve this problem, i am using the following technique:
1.Process is only reading 5 messages per second from /dev/log and
process them. The process sleeps for rest of the time per second.
2. Every 100 messages, the process sleeps for 5 seconds.

This solution brings down the CPU consumption. On some CPU
configurations, it is less than 1% CPU consumption. But on others still
varies from 3-13%.

Please tell me if the processing delay technique used has some
fundamental faults, or what is the correct technique of introducing
processing delay for controlling CPU consumption.

Please also tell your suggestions for controlling CPU consumption. I
would also appreciate , if you can redirect me to some links where i can
find CPU consumption control techniques and fundamentals.

Thanks and regards.
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:38:51 EDT