I use Pychess on Ubuntu 18.04 and have been experiencing high cpu utilization when playing against Fairymax 5.0b (from the Ubuntu repos). After the 3rd move of a game Fairymax response slows down and task manager shows consistent cpu usage at 25%. Other chess engines (stockfish, crafty, toga) do not do this. I've posted on the Pychess github page with no joy and they say they are using Fairymax with no problem. Perhaps there is a Fairymax setting I could change to fix this but I've been unable to find much info.
I'm a very average player (1300-1400) and would enjoy playing against Fairymax if I could get it working properly. Can someone help?
Thank you in advance...
Fairymax is using 25% of cpu
Moderators: hgm, Rebel, chrisw
-
- Posts: 4
- Joined: Thu Jan 17, 2019 9:50 pm
- Full name: Lou Gregory
-
- Posts: 12540
- Joined: Wed Mar 08, 2006 8:57 pm
- Location: Redmond, WA USA
Re: Fairymax is using 25% of cpu
How many cores does your system have?
I guess that Fairymax is not SMP, so I would expect it to use 25% of the CPU on a 4 core system.
Now, if you have long time control and FairyMax is using CPU during the opponents turn, check to see if there is a UCI setting for Ponder and turn it off if there is.
If you are playing live against FairyMax as a human, then it does not matter if FairyMax ponders.
I guess that Fairymax is not SMP, so I would expect it to use 25% of the CPU on a 4 core system.
Now, if you have long time control and FairyMax is using CPU during the opponents turn, check to see if there is a UCI setting for Ponder and turn it off if there is.
If you are playing live against FairyMax as a human, then it does not matter if FairyMax ponders.
Taking ideas is not a vice, it is a virtue. We have another word for this. It is called learning.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.
-
- Posts: 4
- Joined: Thu Jan 17, 2019 9:50 pm
- Full name: Lou Gregory
Re: Fairymax is using 25% of cpu
My machine has 2 cores and I do not have ponder enabled. Perhaps I will not be able to use Fairymax as an opponent as it really slows my system down. Thanks for your response.
If you know of another linux-compatible chess engine that has an elo in the 1200-1500 area perhaps you could suggest one.
If you know of another linux-compatible chess engine that has an elo in the 1200-1500 area perhaps you could suggest one.
-
- Posts: 1296
- Joined: Sun Mar 12, 2006 6:46 pm
- Location: Kelowna
- Full name: Tony Mokonen
Re: Fairymax is using 25% of cpu
FairyMax is a single core Xboard/Winboard engine, and does not support ponder, so if there is excessive CPU usage, it would be for a different reason than pondering. The code shows that FairyMax explicitly ignores both the easy and hard commands.
-
- Posts: 12540
- Joined: Wed Mar 08, 2006 8:57 pm
- Location: Redmond, WA USA
Re: Fairymax is using 25% of cpu
Get Pierre 1.7:loug wrote: ↑Sat Jan 19, 2019 2:40 am My machine has 2 cores and I do not have ponder enabled. Perhaps I will not be able to use Fairymax as an opponent as it really slows my system down. Thanks for your response.
If you know of another linux-compatible chess engine that has an elo in the 1200-1500 area perhaps you could suggest one.
http://alexboby.com/pierre/
Taking ideas is not a vice, it is a virtue. We have another word for this. It is called learning.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.
-
- Posts: 4
- Joined: Thu Jan 17, 2019 9:50 pm
- Full name: Lou Gregory
Re: Fairymax is using 25% of cpu
I tried Pierre - Pychess) doesn't like the executable for some reason. I get a message "something is wrong with the executable". Informative, isn't it
-
- Posts: 27796
- Joined: Fri Mar 10, 2006 10:06 am
- Location: Amsterdam
- Full name: H G Muller
Re: Fairymax is using 25% of cpu
Now is your complaint that 25% is too high or too low?
25% seems normal usage, for a single-threaded engine running on a two-core (= 4 hyperthreads) system. Fairy-Max shouldn't use any CPU when not on move; it would just be waiting for input.
25% seems normal usage, for a single-threaded engine running on a two-core (= 4 hyperthreads) system. Fairy-Max shouldn't use any CPU when not on move; it would just be waiting for input.
-
- Posts: 608
- Joined: Wed Oct 13, 2010 9:44 am
- Location: Australia
Re: Fairymax is using 25% of cpu
> I will not be able to use Fairymax as an opponent as it really slows my system down
I would not think 25% cpu ultilisation should noticeably slow your system down.
Perhaps some unusual disk I/O, or some other related thing is the problem.
I would not think 25% cpu ultilisation should noticeably slow your system down.
Perhaps some unusual disk I/O, or some other related thing is the problem.
-
- Posts: 2487
- Joined: Tue Aug 30, 2016 8:19 pm
- Full name: Rasmus Althoff
Re: Fairymax is using 25% of cpu
No wonder in case you tried to download the binary. It's from 20 years ago, and Linux just doesn't offer such a long compatibility on binary level. You'll have to re-compile from source, and even that may not work.
If you are fine with running a build shell script under Linux, you could also take a look at my CT800 engine. You can throttle the strength down via a standard UCI command.
Rasmus Althoff
https://www.ct800.net
https://www.ct800.net
-
- Posts: 4
- Joined: Thu Jan 17, 2019 9:50 pm
- Full name: Lou Gregory
Re: Fairymax is using 25% of cpu
Thanks for all the useful input - I'm learning a lot that I didn't know (and why should I - I've never written a chess engine). I had some success today playing against Toga 2 with the strength setting at 5 out of 20 in Pychess. I'll just keep raising the strength until Toga starts kicking my butt and then I'll be able to learn how to improve my game.