what is the best of operating system for gmp

David M. Warme David at Warme.net
Wed May 24 21:42:48 UTC 2017


> Just CPU type and CPU clock frequency.  RAM speed is irrelevant for most
> GMP computations (it becomes relevant only if you primarily juggle
> operands of many millions of bits).

RAM speed can also matter for far smaller operands -- if you have many
millions of them organized into vectors or arrays, or if they are
spread throughout the address space.  This is particularly true if
you access them in patterns that cause frequent cache misses.  Once
the operand is loaded into cache, CPU-only-based performance resumes.

I have observed empirically over the years an apparent assumption or
bias among GMP developers that GMP applications never contain more than
a few dozen GMP variables.  This is a false assumption.  Your application
(and your mileage) may vary.

> Any BSD or GNU/Linux will perform within a percent of each other for GMP.

I agree.  Plus or minus 1% for same hardware, different BSD or GNU/Linux.


On 05/24/2017 05:11 PM, Torbjörn Granlund wrote:
> Hasan Baseri <baseri.edu at gmail.com> writes:
>
>    i know the CPU frequency and RAM speed is very important.
>    
> Just CPU type and CPU clock frequency.  RAM speed is irrelevant for most
> GMP computations (it becomes relevant only if you primarily juggle
> operands of many millions of bits).
>
> Make sure to build GMP on the machine where you will run it (or else
> manually configure it for the target CPU).  Please see the manual for
> more on this.
>
> You might want to take a look at https://gmplib.org/gmpbench.html if you
> intend to purchase hardware specifically for GMP.  Note that the first
> table's measurements are for dev versions of GMP, the subsequent tables
> are for quite old releases.
>
> Note that GMP only runs on a single CPU core.  You need to invoke GMP
> from many threads or processes in order to use multiple CPU cores.
>
>    if i want to install a operating system for using gmp, which one you suggest?
>
> Any BSD or GNU/Linux will perform within a percent of each other for GMP.
>    
>



More information about the gmp-discuss mailing list