LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games
User Name
Password
Linux - Games This forum is for all discussion relating to gaming in Linux.

Notices


Reply
  Search this Thread
Old 10-30-2007, 03:36 PM   #1
dmsynck
LQ Newbie
 
Registered: Apr 2005
Location: "Big D" - Dallas, Texas
Distribution: Linux Mint 8 - "Helena"
Posts: 24

Rep: Reputation: 15
Graphical chess programs and CPU utilization


Greetings,

I am using PCLinuxOS 2007 and I think that I have discovered a bug in xboard/knights and wanted to know if anyone else has seen this. When running either xboard or knights with the GNUchess engine, GNUchess uses 100% of the CPU. Also when running knights, even after closing the program the GNUchess engine continues to run in the background, still using 100% of the CPU. Running GNUchess by itself from the command line does not show this condition.

Thanks in advance,

dmsynck
 
Old 11-08-2007, 06:44 PM   #2
almatic
Member
 
Registered: Mar 2007
Distribution: Debian
Posts: 547

Rep: Reputation: 67
this is not a bug the cpu calculates with full power as much moves as it can. If you use a multiprocessor optimized engine, you will see both cores at 100% while the engine is 'thinking'.

Quote:
Originally Posted by dmsynck View Post
Running GNUchess by itself from the command line does not show this condition.
yes it does.
 
Old 11-09-2007, 10:33 PM   #3
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
If you are using KDE this happens with KDE programs from time to time. Dunno why or how to fix as I dont use KDE or gnome anymore
 
Old 11-11-2007, 05:12 PM   #4
Lobais
Member
 
Registered: Jan 2004
Location: Denmark
Distribution: Fedora Core 6
Posts: 224

Rep: Reputation: 30
It has something to do with the way the engines are spawned.
Ideally the engines should be spawned like in a terminal (pty), so when you close the parent program, you are sure that the child process is closed as well.
Any non OS controlled ways, will lead to errors like this from time to time.

I've actually tried to use the pty way in some programs, but I tend to get some strange exitcodes: "15: ENOTBLK Block device required".
I don't understand there isn't a nicer way to do this in unix.
 
Old 12-03-2007, 06:24 PM   #5
hellork
Member
 
Registered: Nov 2007
Posts: 41

Rep: Reputation: 15
Yeah I noticed that. I started beating my laptop at chess and it began to heat up until the battery almost caught fire. I had to shut it down and fan the smoke.
 
  


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
Any 2 player chess programs? jamie_barrow Linux - Software 3 01-10-2008 11:01 AM
CPU utilization ust Linux - Software 1 10-11-2007 06:05 AM
any chess programs? newbiesforever Linux - Games 7 09-08-2007 12:21 AM
CPU utilization in 2.4 vs 2.6.. lynz Linux - Software 2 06-04-2007 01:40 PM
linux graphical chess program glock19 Linux - General 7 02-28-2005 11:13 AM

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

All times are GMT -5. The time now is 12:24 AM.

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