|
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.
|
|
|
|
|
You do realize that this site supports development on Windows machines, right?
I'm not saying that this question won't get answered, but this is not the best site for *nix-based development questions.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
|
Hello Where is your question?
|
|
|
|
|
Good Bye
Bye!!!
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi, I have a problem about my internet explorer. Last week my IE run fine but this week it has a problem. The problem is, when i open any link that require to start new IE browser, the previous IE windows is disappear. But if the link do not require to run new IE browse than it work fine. From here i don't understand why this problem occure. Can anyone give me any idea relate to this issue?
Note: I suspect this computer affect with spyware. Because i used this computer to download many trail software a whole night. But when i scan for spyware using windows anti-spyware, there is no spyware found on my machine.
|
|
|
|
|
I'm assuming this is a recent problem, if it is have you tried running a System Restore[^] and resuming from a previous state?
If this doesn't work I'd check that MS AntiSpyware is upto date and it might be a good idea to try sweeping the computer with another spyware scanner like Ad-Aware[^] or something to be doublely sure.
Gavin Taylor
w: http://www.gavspace.com
|
|
|
|
|
Thank you very much for your information.
Gavin Taylor wrote: if it is have you tried running a System Restore[^] and resuming from a previous state?
I never create a restore point, so i can't use system restore in my computer.
Gavin Taylor wrote: If this doesn't work I'd check that MS AntiSpyware is upto date and it might be a good idea to try sweeping the computer with another spyware scanner like Ad-Aware[^] or something to be doublely sure.
I also have windows anti-spyware in my computer. And its automatically scan my computer at 2am during the time that i download a trail software. But its result never found anything. Maybe I need to return back to check it definition again because i think it was update automatically from the web.
|
|
|
|
|
Roath Kanel wrote: I never create a restore point, so i can't use system restore in my computer
Thats cool, Windows automatically makes a restore point for you on very a regular basis (every other day or something), so it's worth trying it anyways.
As for Ms AntiSpyware, I'd still try running a sweep with another scanner to be sure, from experience different scanners find different things.
Gavin Taylor
w: http://www.gavspace.com
|
|
|
|
|
Thank you very much for your information.
Gavin Taylor wrote: Thats cool, Windows automatically makes a restore point for you on very a regular basis (every other day or something), so it's worth trying it anyways.
I forget to tell you that i used to turn off system restore on all drive since the time that i install my windows. Because i heard that system restore will back up the virus into the computer if the virus infect my system.
Gavin Taylor wrote: As for Ms AntiSpyware, I'd still try running a sweep with another scanner to be sure, from experience different scanners find different things.
Beside Ms windows anti-spyware and Ad-aware that you provide to me in the previous link, did you find any other tool that could clean the system effectively?
|
|
|
|
|
Roath Kanel wrote: Because i heard that system restore will back up the virus into the computer if the virus infect my system.
Well, you got bad advice. So what if the virus gets backed up? That's what anti-virus software is for! The point of a restore point is to create a last-known-good backup of the system. On XP, most application installers will force a restore point to be created before the installation takes place. This makes it very easy to go back to the old system if the new application screws something up. Or is your case, something unknown screws soemthing up.
Roath Kanel wrote: did you find any other tool that could clean the system effectively?
There's a bunch. All you have to do is Google for "Anti Spyware".
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Dear All,
I am getting problem during installation of Php-5.0.5 in Mandrake 9.0 .
Apache2 is running in this OS.
When I am running ./configure --with -apxs2=/.../...
It is giving ....
Checking whether LIBXML2 Support... yes
Checking libxml2 installdir...no
Configure:Error xml2-config not found Please check your xml2 installation.
Although my libxml2 installed as checked from Mandrake control centre. but where is the location i do not know .
Please anybody in help ?
rpkumar
|
|
|
|
|
Hi, trying to set up clustering with vmware. Following instructions on the following articles:
REF 1 Set up VMware to install Windows clusters. http://techrepublic.com.com/5100-1035_11-1058354.html
REF 2 Using the VMware SCSI Disk Driver for Windows Guest Operating Systems. http://www.vmware.com/support/refer...in_scsidrv.html
I download from REF 2 and I didn't see any zip file (which contains the pln and dat files) mentioned in REF 1. All I found was a file named "vmscsi-1.2.0.2.flp". Any clue? Thanks.
|
|
|
|
|
Hi, my computer have a network card that do not support to boot from a network. Now I'm need to study the lesson on remote installation which require to boot from the network. Does anyone know any device (exp: usb) that just connect to my computer and it will boot to the specific machine in order to install OS from the remote destination?
|
|
|
|
|
You'll need a network card that support PXE Boot, and you'll need a service running on whatever server you're using that supports PXE. For Windows servers, this is the Remote Installation Services[^] or Automated Deployment Services[^].
That's really the only way you're going to learn how it works in the real world.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Dave Kreskowiak wrote: You'll need a network card that support PXE Boot
Yes, I know about that. Currently, i have a network card that do not have PXE boot rom. What i want is just buy a usb pxe boot device that just plug to the usb port and configure in CMOS. Then my computer could boot up to install OS from the specific server.
Do you have any idea?
|
|
|
|
|
There is no USB PXE Boot device. You CAN however boot from a USB ThumnbDrive (if your system supports it!). In that case, all you need to do is configure a PXE Boot Disk using what Service you have installed on your Server, and put that on the ThumbDrive.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thank you very much for your information.
|
|
|
|
|
Dear All,
I am getting problem during installation of Php-5.0.5 in Mandrake 9.1 .
Apache2 is running in this OS.
When I am running ./configure --with -apxs2=/.../...
It is giving ....
"checking lex output file ./configure :line 2428: lex command not found. can not find output from lex : giving up
Anybody in help ?
rpkumar
|
|
|
|
|
Hi everybody,
From last few weeks, I am struggling to make my color monitor look like black and white monitor.
Can anyone suggest me any means, by which I can change my windows theme to be completely black and white.
Or by programming, how can I change my graphics driver to render my windows in black and white.
I am getting very desperate to get this done, please help me in any way..struggling for this has already wasted my lot of time.
thank you community in advance if you can come up with some solution to me.
cheers.
Surya
Surya, Australia
|
|
|
|
|
surya_soni wrote: by which I can change my windows theme to be completely black and white.
Control Panel - Display - Appearance tab - Advanced button. Start changing each element in the theme to some shaed of black and white.
This will NOT stop each application from drawing it's own elements in color.
But...why are you doing this????
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hello,
I am trying to create a custom window where my framework draws controls the nonclient areas completely; however, besides that the window should be as close to a standard as possible because I want to utilize it e.g. for DirectX.
Now, drawing of a window frame did not appear to be a big thing, it's just responding to the appropriate window messages. Only -- one problem is left.
Depending upon the current system setting "Properties"--"Display Properties"--"Appearence", the nonclient area is somehow clipped (e.g. rounded corners). Usage of function SetWindowRgn to achieve a strict rectangular window shape does not help. I guess the problem is caused by the metaregion but I do not see a way how to extend that region (Function SetMetaRgn produces an intersection of the current with the new region).
Is there a way to change the drawing rectangle of the nonclient area to the exact rectangle, regardless of the current appearence settings?
-- modified at 9:40 Monday 6th February, 2006
|
|
|
|
|
My company implemented a mandatory screen saver (all work related "rah-rah" thing) and made the Display->Property->Screensaver tab go away. I'm pretty sick of it poping up every 10 mins.
How can I get the screen saver tab back so I can change how long before it pops up and what pop's up?
Thanks
|
|
|
|
|
Basically, you can't.
Your company created a policy that sets the screen saver and takes the tab away. You COULD get the tab back, but only briefly. Policies refresh themselves every so often. The refresh will reset any changes you make to what the policy specifies.
The only thing you can do is bitch at your IT people and see if someone can get that policy reversed or at least changed to be more flexible.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-- modified at 15:58 Thursday 2nd February, 2006
|
|
|
|
|
I did find the setting in the registry to get the tab back but I haven't located the program that is being run to put up the screen saver. The registry still says Marquee.scr. I could probably write a program to change the registry back to what I want every morning before I get in.
I did replace all the "Inspirational/company rah-rah" pictures folder with a bunch of Dilbert cartoons.
Thanks,
|
|
|
|