News:

Please note new Forum URL: forum.designcad.com

Main Menu
DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

64 bit?

Started by Rick V., September 07, 2010, 12:09:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Rick V.

I'm looking at options for a new laptop system.

Is there any significant benefit with a 64 bit system for DesignCAD (currently v20) now or in the next few years?

Thanks,
Rick

herbertjackson

I use designcad with 64 bit. I have not notice any inprovements in Designcad using 64 bit.
Keep in mind 64 bit is the new standard. More and more programs are taken advanage of it.
(and it runs my older programs just fine)

dcadRob

DesignCAD would need to become a 64-bit application in order to see any benefit.

DT, is a 64-bit DC possible in the future?

Dr PR

There is a BIG advantage for all programs with a 64 bit machine!

The 64 bits are the width of the data bus over which all instructions and data are fetched. Modern processors grab as much as they can on each data fetch and sort it out internally. A 64 bit bus fetches twice as much program/data on each memory read cycle as a 32 bit bus. It is therefore almost twice as fast as a 32 bit machine.

Instructions and data come in multiples of 8 bits, and most data is not 64 bits wide. When the memory management unit (MMU) fetches from memory it reads the full bus width. If instructions are 16 bit, it reads two instructions from a 32 bit bus and four over a 64 bit bus in a single cycle. Modern CPUs execute with instruction cycles several times faster than the fastest memory access time, and waste a lot of time waiting for slow memory fetches. The wider bus reduces this wasted time almost by half.

After the data/instructions are fetched from RAM the MMU stores them in a very fast internal cache. Up to this point the CPU doesn't know what the bytes are. Only when it starts executing the code from the internal cache are the instructions and data sorted out. So, however the code is compiled, whatever the instruction or data width might be, just doesn't matter for the RAM read/write. It is all just bits. Wider busses move more bits in less time!

I have a 3 GHz 32 bit machine, and a 2.6 GHz 64 bit machine. The 64 bit machine is much faster (up to 2.5X on some tests) than the 32 bit machine - running speed tests with DesignCAD.

Also very important is the "front side bus" (FSB) speed. This is the rate at which data is transferred from RAM to/from the CPU. This is the big bottleneck. Faster is better (and more expensive). My 64 bit machine has a FSB speed 1.5X than the 32 bit machine, and this contributes a lot to the increased performance.

Interlaced RAM is also faster than ordinary memory. For this multiple memory modules are needed. I think all machines today use interlaced fetches, where one read/write will go to physical module A and the next to physical module B. Each RAM has inherent delays as the address is decoded to select the data/instruction location. If all accesses occurred serially in a single module, the processor would be waiting during each delay. Interlacing works by starting an access to module A and then starting the next access from module B before A is ready. This way B is decoding while the memory management unit is fetching from A. Immediately after completing the access to A another access is started and then the MMU reads from module B. Four memory modules are significantly faster than two.

MMU design is challenging, and fun! Wringing the most out of every memory access cycle is like tweaking a racing engine to get just a little more power.
DesignCAD user since 1987

Rick V.

Thanks for the information guys, that is really helpful.

Much appreciated,
Rick

dcadRob

QuoteThere is a BIG advantage for all programs with a 64 bit machine!

Not true.

If you could double the speed of a program just by going from a 32-bit computer to a 64-bit computer, then you could quadruple the speed by making a 128-bit computer. Unfortunately it doesn't work that way.

Some 32-bit programs are slightly faster on a 64-bit computer and some are actually slower. To fully take advantage of a 64-bit computer, the program would need to be compiled as a 64-bit application. It may then be significantly faster depending on what kind of data it's processing. CAD programs can in general benefit from 64-bit processing.

Dr PR

#6
dcadRob,

I respectfully disagree with your conclusion. As I pointed out, transfers between relatively slow off chip RAM (the bulk of memory in a computer) and fast on-chip cache are the real speed bottleneck. Every CPU that I know of is fast enough to execute multiple instruction cycles in the time it takes to fetch single instructions and data from off-chip RAM. Doubling the bus width doubles the rate at which program/data bytes become available to the waiting CPU.

You are correct that doubling the bus width does not double the program execution rate. There are three main reasons for this.

1. Data transfers between RAM and cache are somewhat hit and miss. Fetches are not performed one byte/word/whatever at a time. Memory architecture has been designed to transfer blocks of data when a particular address is requested. For example, some RAM actually fetches 256 bits at a time, and then sends it in four to eight back to back transfers. The initial fetch is the slow part, and the subsequent transfers are relatively fast (at FSB speed).

However, there is no guarantee the program will actually use anything but the first byte fetched. Program branches may call for fetching from a different location in memory, or only a few bytes may be needed out of the 8, 16 or 32 bytes that were transferred.  In cache, where the data/program may be stored in 32 or 64 bit locations, a similar problem occurs - the program may not use all bytes that have been transferred.

2.  With a 64 bit cache, if the instructions call for fetching only 32 bit values, two reads will occur from a 64 bit data value. Then multiple instructions are necessary to process the two 32 bit values as a single 64 bit value. Recompiling with instructions that use 64 bit data will improve performance in this respect. However, this does not apply to most instruction fetches, which are much smaller than 64 bits, and account for the great majority of CPU-memory activity, nor does it apply to operations using byte, word or long data values.

3. Programs that are compiled to use 32 bit addresses are limited to direct addressing of 4 Gbytes of RAM. To address more than 4 Gbytes the program must be recompiled to use more than 32 bit addresses. The latest processors do use more than 32 bits for addresses, regardless of the data bus size. Addresses are fetched just like instructions and data, and a wider data bus will increase address transfer rates from RAM to cache.

Edit: I should have said "addresses that are stored in memory" are fetched like data. Of course, internally generated addresses (program counter, stack, etc.) appear on the address bus, and not the data bus, so data bus width has no effect.

Even so, in modern computers it really doesn't matter much what absolute addresses the program tries to access. The operating system memory protection schemes translate the requested addresses to actual memory addresses relative to an assigned part of physical RAM allotted to the program. The overhead for this address juggling process, a part of the operating system, is much greater than the actual hardware addressing timing. However, a wider bus provides all the increased program transfer and execution speeds to the operating system that it gives to the program that is running.

For these reasons there is not a linear increase in speed with any of the memory timing schemes, including doubling the bus width.

Still, data transfer rate is the speed limiting factor in program execution. Instructions and data are compiled into linear sequences of bytes, regardless of data bus size, which are stored in RAM and cache without regard to bus width. The MMU fetches blocks of RAM content into the cache. There the CPU instruction decoder sorts out the bytes and delivers them to the appropriate instruction processor or data registers. This is why computers have the complex memory interleaving, prefetch, and fast front side bus architecture. Doubling the bus width doubles the transfer speed of these processes.

****

Another speed enhancement to consider is on-chip cache size. On-chip cache memory is MUCH faster that off-chip RAM, but the amount of cache is very limited. Every time the program tries to access information that is not in the cache the CPU must wait while the cache is refilled from external RAM, a very slow process.

Increasing the amount of on-chip cache reduces the frequency of this slow cache refill operation. The larger the on-chip cache in the processor, the faster the program will execute. For multiple CPU processors, each CPU must have its own cache. Again, the larger these individual caches are the faster each CPU will run.

Multiple CPUs help. Windows reserves one of the CPUs for itself, and assigns programs to additional CPUs. Two CPUs will not double DesignCAD's execution speed, but they do help a little.

Note: This does not require recompiling a program to work with multiple CPUs. However, if programs are designed to parse out parts of their operation to multiple CPUs they will execute faster, as long as the extra CPUs are available. This type of program architecture is VERY rare, and multiple processor program design is so complex and expensive it is not used in ordinary software development.

So, for maximum program execution speeds you need

1. Faster CPU clock.
2. Multiple CPUs.
3. Wider data bus width.
4. Larger on-chip cache(s).
5. Faster front side bus (FSB).
6. Faster RAM (shorter access times - should match FSB timing).
7. RAM with fast internal prefetch buffers (I think all modern RAMs have this).
8. Multiple interleaved RAM modules.
9. Faster hard drives (shorter access times which usually means faster rotation speeds, and SATA bus).
10. Faster video cards with larger on-board memory.

If any of these parts is slow, the whole computer runs slow.

DesignCAD user since 1987

grant f

I,ve  just  got  a new  windows  7  64 bit.  2.4  processor . 4gig  ram .
only  one thing to  over-  come  . it,s  a HOME   PREMIUM . MY  printers  don,t  work on it.
so  find  upgrades for  printers   , down load  . still no joy.
get on windows  site    upgrade to PROFESIONAL for $1oo  bucks then one can get xp   mode.
after 4xmonths of no  work  , I,m off to  christchurch , I,d  make more labouring,
this  computer  stuff  is  one big  roundabout,I  still use  my old  drawing  board  sometimes
somehow i  get  more  satisfaction  drawing , maybe it,s  a  tactile  thing .
Grant.           
man this  has been a shocking  year

Dr PR

grantf,

I had similar computer problems when I got my Vista 64 machine - no drivers for a lot of peripherals.

Many companies use new operating system rollouts as a way to force people to throw away perfectly good equipment and buy new hardware with drivers for the new operating system. They refuse to support their customers' older equipment with drivers for the new OS. This is the way business scum think - screw the customer and grab everything you can get your greedy hands on. That's the main reason the world's economy is screwed up.

I am typing this on an old XP machine which I kept just so I can continue to use my old scanners and printers. I won't upgrade again until the older hardware dies, and then I won't buy anything new from any company that does not have a record of supporting its older products.

HP and Canon do not support their older products (HP used to have a great record before Carly Fiorina became CEO). ATI had a horrible record of supporting older products - don't know about today, I quit using their products long ago.

nVidia still supports just about everything they have ever made. Intel has a good record of older product support.
DesignCAD user since 1987

dcadRob

You don't need to pay for XP mode, you can get VMware Player for free.

supermono55

Hi,

I solved the problem of drivers for win7 in a couple of ways:

Some drivers actually work when installed as an administrator and/or with compatability settings on (specialy vista drivers work most of the time)
1 network printer forced me to install drivers on every station as the options weren't put through when used as a shared printer.
I endend up with 1 printer (a lexmark x125 multifunctional) not working at all. Since i have a network, i decided up on setting up an old machine as owner of the printer and win7 programs accept that, no problem.

I must say i didn't measure it, but the general feeling here is that win7 is faster and gives less trouble. It is definitly a lot smaller than vista.....

Erik P

Rick V.

Thanks guys, for the additional information. I did purchase a 64-bit system. So far, so good. It cooks (I hope that remains a figurative term).

Dr PR,

I appreciate your in-depth explanations. I seem to be able to learn more from reading a couple of your posts than from years of using these machines.

Thanks again,
Rick