473,503 Members | 1,674 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Question regarding CPU usage

ashitpro
542 Recognized Expert Contributor
Hi all,
I am using linux kernel 2.6.20
I've developed one scheduler for my project.
It has many threads working in it.
It is taking 30% of cpu. According to my calculation it should not take this much.
So surely something is wrong with the code.
I got few infinite while loops too, but I also used sleep system calls in each.
So what are other possible reasons that I should look for?
Oct 9 '07 #1
3 1388
arunmib
104 New Member
can you give info. as how many threads are there and the functionality of them.
Oct 9 '07 #2
ashitpro
542 Recognized Expert Contributor
can you give info. as how many threads are there and the functionality of them.
15 threads waiting for dbus call
Oct 9 '07 #3
arunmib
104 New Member
Like what do the 15 threads do when waiting? Do you they all "sleep()" for same time and ping the 'dbus' library at same time causing havoc or have you handled that efficiently.
dbus - you are speaking about the interprocess communication stuff right.
I think you would have gone through their FAQ section fully. In general it is 2.5 times slower than normally doing a socket communcation. So it obviously means you've got some problem or performance related issues. The faq link,

http://dbus.freedesktop.org/doc/dbus-faq.html

There is another chap who has done a performance testing, I think his results will be of use to you.
http://lists.freedesktop.org/piperma...er/001779.html

So in general, an option is that the dbus's inherent performance issue can be the problem.

If you are mentioning about someother 'dbus', then please clarify and ignore this post. Enlighten me if I have seen or said something wrong.
Oct 10 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
1601
by: John Smith | last post by:
I am doing some research regarding writing a small webserver in java... So my question is: How long would it take to write a small webserver in java, by say some one who has little experience...
2
6661
by: W. Loo | last post by:
Hi, I've got a question regarding the usage of Request.ServerVariables. I'm not sure this is really a ASP question, so redirects to a more appropriate newsgroup are welcome. I have a variable...
4
3817
by: solartimba | last post by:
I am a stats man that uses C++ to analyze stock data, but I have run into a problem regarding memory usage. First, though, I need to give a little background info. I want to write a program...
9
3734
by: Dave H | last post by:
Hello, I have a query regarding definition lists. Is it good practice semantically to use the dt and dd elements to mark up questions and answers in a frequently asked questions list, or FAQ? ...
8
5208
by: Mike | last post by:
Hello, I have a few rather urgent questions that I hope someone can help with (I need to figure this out prior to a meeting tomorrow.) First, a bit of background: The company I work for is...
6
532
by: m sergei | last post by:
main(int argc, char *argv) the second parameter to function main takes a pointer to an array. can we also write it in terms of a reference rather than a pointer ? an example of using (usage)...
2
1612
by: Dean R. Henderson | last post by:
For an ASP.NET web application, is there a way for one session (with appropriate security authorization) to set a HttpSessionState variable to point to another session and execute the Abandon...
2
1172
by: Prabhu Gurumurthy | last post by:
Here is a simple program, which queries /var/log/daemon on my OpenBSD box and gets the list of valid ntp peers. Questions: what is the easiest way for me to create lists on the fly, by that I...
12
1301
by: ciccio | last post by:
Hi, I was wondering why in the following piece of code, the function test1 calls a copy constructor at return and why test2 does not. Is the usage of multiple return statements in one function...
1
6452
by: Max2006 | last post by:
Hi, To protect my WCF service boundaries, I assign a unique support ticket to all server side exceptions, log them and send a general FaultException to client that only include the support...
0
7199
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
6982
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7451
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5572
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5000
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4667
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3161
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3150
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
374
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.