LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-31-2010, 03:11 AM   #1
barunparichha
Member
 
Registered: Jun 2006
Location: Bangalore,india
Distribution: Linux(Redhat,fedora,suse,ubantu), Solaris (s8/s9/s10/nevada/open-solaris)
Posts: 303

Rep: Reputation: 32
Select() call consumes CPU


The Select() call used in linux socket programs consumes CPU as it needs continuous pooling in some loop.

Do we have some approach to minimize CPU consumption ??

Last edited by barunparichha; 03-31-2010 at 03:36 AM.
 
Old 03-31-2010, 07:14 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,148

Rep: Reputation: 8049Reputation: 8049Reputation: 8049Reputation: 8049Reputation: 8049Reputation: 8049Reputation: 8049Reputation: 8049Reputation: 8049Reputation: 8049Reputation: 8049
Quote:
Originally Posted by barunparichha View Post
The Select() call used in linux socket programs consumes CPU as it needs continuous pooling in some loop.

Do we have some approach to minimize CPU consumption ??
Probably, but since you don't give any actual details as to your program, what you're trying to do, etc., there's no way we can tell you.

Since this is your program, you'd be the one to best answer how to optimize it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Xorg consumes too much CPU when SXCE is run as a VirtualBox guest crisostomo_enrico Solaris / OpenSolaris 1 01-29-2009 02:21 PM
gil = TCP/IP process consumes a lot of CPU pete83 AIX 1 05-09-2008 02:57 AM
QjackCtl or Qsynth window consumes 100% of CPU (without actually starting services) Xdrummer Slackware 1 03-18-2008 01:20 PM
pdftotext consumes 100%cpu power alaios Linux - Software 1 04-02-2007 06:27 PM
beagle consumes cpu alaios Linux - General 6 12-16-2006 11:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration