Choosing a new PC for GEMPACK simulations

Updated November 2011

We are sometimes asked, what is the best sort of PC to buy for running GEMPACK simulations? Often the inquirer is running larger models and has experienced problems such as over-long solve times or shortage of memory (RAM). If your GEMPACK model solves fairly quickly (<2 minutes) and does not complain about shortage of memory, any new Windows PC will work fine [but we'd suggest 4 or 8GB of RAM]. If you intend to run larger GEMPACK models, the advice below may be helpful.

Executive summary

Choose a quad-core CPU

Modern PCs now have "dual-core" or "quad-core" CPUs (several processors in one chip). A quad-core CPU will allow you to run 3 or 4 simulations at once, or speed one simulation by using parallel processing (see below), if you have enough RAM. For value, choose the 2nd or 3rd fastest models that have plenty of on-chip L3 cache (Intel I5 or preferably I7 CPU).

You can manually launch several simulations at once; for recursive dynamic models the RunDynam shell program will automate the processs. In this case, no one simulation is faster, but the total job is done sooner. In contrast, GEMPACK 10 or later allows for parallel processing to speed up a single simulation: it splits up one simulation into parts. You can specify how many additional jobs (called 'servants') are created. In each case:

Hence, to take advantage of your quad-core CPU, you need ample memory.

Get plenty of RAM

When memory (RAM) is short, Windows is able to use hard disk space instead (called "paging") -- at the cost of a severe speed reduction. If your GEMPACK program is starved of RAM it will run very slowly. Also, the operating system and background processes consume quite a bit of memory. Use Task Manager, as described here to investigate how much memory is required to meet background needs and to run several simulations at once.

A typical GEMPACK EXE is allowed to use up to 2GB of RAM under 32-bit Windows, and up to 4GB of RAM under 64-bit Windows (more details). A very large model might require more than this. In that case you need to use a 64-bit compiler with 64-bit Windows (requires GEMPACK 10 or later).

64-bit Windows is better

You need 64-bit Windows to make use of more than 4GB or RAM. As explained above, 64-bit Windows (Win64) has 3 key advantages over 32-bit Windows (Win32):

64-bit Windows 7 is now the normal OS for consumer purchases, and increasingly common in work environments. Older 32-bit programs still run fine under 64-bit Windows. To reap the advantages above, you should have at least 8GB of RAM.

Other

Consider also purchasing plenty of screen space -- either one very large LCD monitor, or a pair of smaller ones. This can be be a real productivity booster.

Hyper-threading

Many Intel CPUs feature "hyper-threading": the chip pretends to have twice as many cores as it really does. On a quad-core PC, Task Manager will show 8 (virtual) CPUs ! Unfortunately, there is still no point in launching more than 4 simultaneous GEMPACK jobs. You may even improve performance slightly by disabling hyper-threading (in the BIOS).

What about notebooks ?

As for desktops, you should look for 64-bit Windows 7 with 8GB of RAM and an I5 or (better) I7 CPU.

To extend battery life, notebook manufacturers choose less power-hungry components -- which also run slower. Again, notebooks often have no separate video RAM (instead borrowing some of the main RAM). Hence notebooks usually run slower than comparably-priced desktop PCs -- or cost more for the same performance.

Netbooks: Cute, tiny, cheap -- and slow. Get the model with more RAM.

Brain-power or computer-power ?

Some users could halve their model's solve time simply by exploiting GEMPACK more skilfully. For example they could:

Read more about these ideas here. Other non-hardware ways to save time include:

Thinking and computer-power are indeed potential substitutes -- although to solve really big models you will need plenty of both.

Watch this space !

Recent developments have included:


Related topics:
Reducing Simulation Time
Condensation and Solution Speed
Not Enough Memory to Solve a Model
Measuring memory use with Task Manager
Memory Limit for GEMPACK
64-bit computing and parallel computations with GEMPACK 10
Should I move to 64-bit Windows?


Go back to
GEMPACK FAQ Page