Fairymax is using 25% of cpu

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Rebel, chrisw

loug
Posts: 4
Joined: Thu Jan 17, 2019 9:50 pm
Full name: Lou Gregory

Fairymax is using 25% of cpu

Post by loug »

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...
Dann Corbit
Posts: 12537
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: Fairymax is using 25% of cpu

Post by Dann Corbit »

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.
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.
loug
Posts: 4
Joined: Thu Jan 17, 2019 9:50 pm
Full name: Lou Gregory

Re: Fairymax is using 25% of cpu

Post by loug »

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.
tmokonen
Posts: 1296
Joined: Sun Mar 12, 2006 6:46 pm
Location: Kelowna
Full name: Tony Mokonen

Re: Fairymax is using 25% of cpu

Post by tmokonen »

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.
Dann Corbit
Posts: 12537
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: Fairymax is using 25% of cpu

Post by Dann Corbit »

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.
Get Pierre 1.7:
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.
loug
Posts: 4
Joined: Thu Jan 17, 2019 9:50 pm
Full name: Lou Gregory

Re: Fairymax is using 25% of cpu

Post by loug »

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 :)
User avatar
hgm
Posts: 27787
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Fairymax is using 25% of cpu

Post by hgm »

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.
stevenaaus
Posts: 608
Joined: Wed Oct 13, 2010 9:44 am
Location: Australia

Re: Fairymax is using 25% of cpu

Post by stevenaaus »

> 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.
Ras
Posts: 2487
Joined: Tue Aug 30, 2016 8:19 pm
Full name: Rasmus Althoff

Re: Fairymax is using 25% of cpu

Post by Ras »

loug wrote: Sat Jan 19, 2019 5:18 pmI tried Pierre - Pychess) doesn't like the executable for some reason.
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
loug
Posts: 4
Joined: Thu Jan 17, 2019 9:50 pm
Full name: Lou Gregory

Re: Fairymax is using 25% of cpu

Post by loug »

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.