Ubuntu 18 vs Centos

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

Peperoni
Posts: 72
Joined: Sun Nov 01, 2020 5:27 pm
Full name: Richard Porti

Ubuntu 18 vs Centos

Post by Peperoni »

Hello,

Did some of you guys do some benchmark Ubuntu vs Centos?
Wondering if there is a significant difference :-)
Peperoni
Posts: 72
Joined: Sun Nov 01, 2020 5:27 pm
Full name: Richard Porti

Re: Ubuntu 18 vs Centos

Post by Peperoni »

Hello,

Maybe a better question would have been is there a best Linux distribution to run engines ? ;-)
jdart
Posts: 4366
Joined: Fri Mar 10, 2006 5:23 am
Location: http://www.arasanchess.org

Re: Ubuntu 18 vs Centos

Post by jdart »

They are both quite adequate.

There are some differences. Most Linux distros come in one of two general flavors: "Debian" based or "Red Hat" based. Ubuntu is similar to Debian while Centos is basically the free version of Red Hat's commercial Linux. Most of the differences are really only visible to system administrators: some files are in different places, configuring the system is different, they use different tools to do basically the same tasks. For day to day usage and for programming the differences are fairly small.

In terms of performance: there really shouldn't be any significant difference.

--Jon
User avatar
mvanthoor
Posts: 1784
Joined: Wed Jul 03, 2019 4:42 pm
Location: Netherlands
Full name: Marcel Vanthoor

Re: Ubuntu 18 vs Centos

Post by mvanthoor »

The biggest differences between the two is that 'Debian's repositories are MUCH bigger than CentOS's. For many things that Debian has in its default repo's, you need third-party repo's for CentOS. Often CentOS software versions are even older than Debian Stable versions. When running on non-critical systems, I have always used Debian Testing (also because that's basically a rolling distro).

I have to admit that the last time I tried anything else but a Debian-based distro has been several years ago, so the above may have changed.

With regard to benchmarks and speed, they should be similar; any differences can probably be accounted to different kernels (or different compilations thereof) than to the distro per se.

(I'm sure Jon just omitted this because they're the minor players within the Linux landscape, but there are also distro's that are not Debian and not Red Hat, such as Arch and Gentoo, and the derivatives thereof. And then there are some even smaller than those.)
Author of Rustic, an engine written in Rust.
Releases | Code | Docs | Progress | CCRL
User avatar
lucasart
Posts: 3232
Joined: Mon May 31, 2010 1:29 pm
Full name: lucasart

Re: Ubuntu 18 vs Centos

Post by lucasart »

Peperoni wrote: Fri Nov 13, 2020 11:49 pm Hello,

Did some of you guys do some benchmark Ubuntu vs Centos?
Wondering if there is a significant difference :-)
This question doesn't make sense. It's like asking whether installing Microsoft Office or Libre Office on your computer make it faster for chess, when neither of these applications are open and running.

So you must a noob. Nothing wrong with that. We've all been there. Start with Ubuntu. Eventually, if you want to muscle up your Linux game, use Arch.

But, CentOs? Heaven forbid... Why would anyone *choose* to use that ?
Theory and practice sometimes clash. And when that happens, theory loses. Every single time.
Peperoni
Posts: 72
Joined: Sun Nov 01, 2020 5:27 pm
Full name: Richard Porti

Re: Ubuntu 18 vs Centos

Post by Peperoni »

Hello Luca,

Well I'm not a linux expert but I am not a noob either ...
Why wouldn't it make sense to benchmark OS distributions?
https://www.phoronix.com/scan.php?page= ... ros&num=10

I guess the impact is minor but if I want to compute games 24/7, even 5% makes a difference.

Please explain to me ;-)
jdart
Posts: 4366
Joined: Fri Mar 10, 2006 5:23 am
Location: http://www.arasanchess.org

Re: Ubuntu 18 vs Centos

Post by jdart »

It looks like Clear Linux had the best benchmarks overall, but they are all sourcing basically the same kernel, so there are just details in terms of how it is compiled and configured. Your hardware makes much more difference to overall performance than the OS layer does.

I was not familiar with Clear Linux so I looked at this review:
https://arstechnica.com/gadgets/2020/02 ... -linux-os/

Apparently, it is an Intel project. But I'm not really interested because it has its own package manager and other quirks. Personally I want something that produces stable releases and has a large user community and uses established standard tools. I am using the Ubuntu LTS releases but there are other reasonable choices.
Ras
Posts: 2487
Joined: Tue Aug 30, 2016 8:19 pm
Full name: Rasmus Althoff

Re: Ubuntu 18 vs Centos

Post by Ras »

Remember that the kernel performance only comes into play for programs that are actually using OS functions like file operations, thread generation or dynamic memory allocation. With file operations, that could be EGTBs, but the small performance difference won't yield Elo. The others shouldn't be done during engine search anyway. What remains is the distro configuration, i.e. how many potentially unnecessary background processes are running and competing for computing time.
Rasmus Althoff
https://www.ct800.net
Milos
Posts: 4190
Joined: Wed Nov 25, 2009 1:47 am

Re: Ubuntu 18 vs Centos

Post by Milos »

lucasart wrote: Sun Nov 15, 2020 1:50 pm But, CentOs? Heaven forbid... Why would anyone *choose* to use that ?
For example because it's much more stable.
You seems to have never ran a server under heave workload.
For enthusiast workstation Ubuntu is ofc much more comfortable.
smcracraft
Posts: 737
Joined: Wed Mar 08, 2006 8:08 pm
Location: Orange County California
Full name: Stuart Cracraft

Re: Ubuntu 18 vs Centos

Post by smcracraft »

I love Ubuntu. My favorite distro. Used it heavily in production environments and never wanted for speed, patches, etc.