Меню Закрыть

Dct unganged mode что это

Written by Gionatan Danti on 17 June 2010 . Posted in Hardware analysis

User Rating: / 98

What AMD says about the ganged vs unganged question

AMD has some excellent documentations that can be download for free. Let’s examine some extract of the “BIOS and Kernel Developer’s Guide (BKDG) For AMD Family 10h Processors ”. On section 2.8 we can find some considerations on ganged vs unganged mode. If you are interested in checking the doc, I suggest you to especially read these sections:

  • 2.8 — DRAM Controllers (DCTs)
  • 2.8.5 — Ganged or Unganged Mode Cons >

In short, the documentation indicates that:

In ganged mode, we have a 128 bit wide logical DIMM that map the first 64 bit on physical DDR channel A and the last 64 bit on DDR channel B. So we can state that a single 128 bit operation is effectively split between two memory channel; on the other hand, the DCTs can not operate independently. In other words, the physical address space is interleaved between the two DIMM in 64 bit steps

In unganged mode, each DCT can act independently and has its own 64 bit wide address space. In this mode the processor can be programmed to interleave the single, physical address space on the two normalized address space associated with the two memory channel; however, the finer possible interleaving unit is the cache line size (64 bytes)

AMD officially suggest to enable unganged mode to benefit from increased parallelism

Some CPU models (for example, the 8 and 12 core Magny Cours G34 processors), can only use the unganged mode.

I draw a graph that, hopefully, should help explaining the differences between ganged and unganged modes:

As you can see, in the ganged mode the physical address space is spread between the two memory channel with a 64 bit granularity: this means that two consecutive 64 bit access will read from two different memory channels and, more importantly, that a 128 bit access can utilize both channel.

On the other hand, in the unganged mode a (relatively) large portion of physical address space is bound to a single memory channel. In the graph above this portion is 64 bytes length, but the K10 processors can be programmed to use an even more coarse grained interleaving scheme. However, the normal interleaving unit in unganged mode is 64 byte length (as shown in the graph), as longer unit can cause a tangible performance loss.

From what we see, one should think that neither approach is the ideal one: the usual registers and operands size is 64 bit (8 byte), so it appear that both the ganged and unganged methods will read this 64 bit entity over only a single memory channel, effectively wasting bandwidth. A byte interleaved (or bit interleaved) mode should give as a great performance boost, right? Simply stated: no. The key point to understand here is that processors do not move in and out from memory data chunks of arbitrary length, but use a fixed-sized scheme: they move data from and to main memory only on a cache line base. On Phenom processor the cache line size is 64 byte long, so these processors move data from and to main memory only in 64 bytes chunks. This means that if we try to read a byte at address 0x0, the entire cache line (64 byte) will be fetched by the processor! While this can seems counterproductive, it has its reasons, especially related to space locality and cache design. It is beyond the scope of this article to explain why processors behave in this manner, but in short we can state that this design permit good performance boost (because exploit code and data space locality) and the creation of very dense caches.

Читайте также:  Как найти человека по нику в телеграмме

As memory operations happens in 64 bytes chunks, it appear that ganged mode will always win: it can spread that 64 bytes operations on the two memory channel, while the unganged mode will only use a single memory channel. The reality, however, is the the unganged mode rarely suffer from this problem, because normally there are many outstanding memory request to be completed, so there are many outstanding cache line to be fetched from or stored to main memory. While the ganged mode will be faster in operating on a single cache line, the unganged mode can theoretically operate on two cache line at a given moment (with some restrictions). This parallelism can be realized because the memory controller incorporate an 8 entry depth memory controller queue (the “MCQ” box in the drawing above), for a total of 8 outstanding cache line requests.

However, simply stating that the unganged mode has the potential to be often on par with the ganged mode is not enough: in this case, we can simply use the ganged mode and forget about the unganged mode. The point is that the unganged mode has potential to be faster that ganged mode. Why? Because we must realize that main memory access don’t happen immediately, as the DRAM chip require many ns to be accessed: after this initial access time the data can be transferred quite quickly, but the initial access steps can be very slow (from a processor standpoint). Starting two memory operations at the same time, the memory controller has the possibility to hide at least partially the latency involved in the setup steps of the second operations. Obviously this is not always true, but it is a possibility indeed and, so, this can be an advantage of unganged vs ganged method. Moreover, using the unganged mode the memory controller can theoretically both write to and read from memory at the same time: this should help memory copy routines and multitasking operating system, where many processes can both read from and write to memory at the same time.

Читайте также:  Kazanskij lpc cex posy lok 420306

Summarizing the whole point, we can state that:

the ganged mode has the potential to be faster than unganged mode because it use a more fine grained interleave mode

the unganged mode has the potential to be faster than ganged mode because it can start two memory operations at the sime time, effectively hiding at least part of the latency involved in the second operation. Also, this mode permit to both read from and write to memory at the same time, with the intrinsic advantages that this possibility implies.

So, we don’t have a “magic setting” that will always give us the better possible performance. We should run some benchmarks to understand wich applications and scenarios benefits from one method rather than the other.

Q^ Я установил ЦП семейства Phenom и модули памяти, согласно руководству для задействования двухканального режима работы памяти, но в момент прохождения процедуры пост, системой отображается режим “unganged mode, 64-bit”. Как мне задействовать 128-бит двухканальный режим работы памяти?

A^ Процессоры Phenom оснащены двумя отдельными контроллерами памяти DCT , каждый из которых оперирует 64 бит шиной. Два данных контроллера могут работать единовременно, когда модули памяти установлены в слоты различных каналов памяти. Это называется "unganged mode”.

Вы можете переключить режим работы системы в "ganged mode, 128bit” , когда используются 2 или 4 одинаковых модуля памяти. Для этого войдите в меню BIOS, раскройте меню расширенных настроек, нажатием сочетания клавиш CTRL+ F1, затем проследуйте по пунктам "MB Intelligent Tweaker M.I.T. DRAM Configuration" для установки параметра "DCTs Mode” в режим "Ganged”.

Может быть Вы спросите какие преимущества даёт этот режим? Отвечу: теоретически пропускная способность памяти (а это быстродействие компьютера) увеличивается вдвое, но станет ли Ваш комп вдвое резвей? Исследования и эксперименты, проведенные вскоре после первого появления этого режима (на чипсетах от nVidia для процессоров Athlon) были проведени тесты и эксперименты, которые показали 10-15% рост производительности системы. Нельзя сказать что это ВСЕГО 10-15%, порой процессор, увеличивающий производительность системы на тот же порядок стоит В РАЗЫ больше, чем обыкновенный (который по приемлемой цене) так что организовать GANGED MODE — стоит!

Читайте также:  Активация 1с базовая версия

P.S. спроста недодумаешься в меню "интеллектуального разгона зайти"
P.P.S. так что в отличие от сокета АМ2, 939 и 462 (Socket A) на АМ3 и АМ3+ (и FM2, я думаю) недостаточно правильно (парами и по цветам) расположить планки памяти!

#двухканальный режим #ganged #unganged mode #am2 #am3 #ам2 #ам3 #матплата #сокет #феном #АМД,

Q^ Я установил ЦП семейства Phenom и модули памяти, согласно руководству для задействования двухканального режима работы памяти, но в момент прохождения процедуры пост, системой отображается режим “unganged mode, 64-bit”. Как мне задействовать 128-бит двухканальный режим работы памяти?

A^ Процессоры Phenom оснащены двумя отдельными контроллерами памяти DCT , каждый из которых оперирует 64 бит шиной. Два данных контроллера могут работать единовременно, когда модули памяти установлены в слоты различных каналов памяти. Это называется "unganged mode”.

Вы можете переключить режим работы системы в "ganged mode, 128bit” , когда используются 2 или 4 одинаковых модуля памяти. Для этого войдите в меню BIOS, раскройте меню расширенных настроек, нажатием сочетания клавиш CTRL+ F1, затем проследуйте по пунктам "MB Intelligent Tweaker M.I.T. DRAM Configuration" для установки параметра "DCTs Mode” в режим "Ganged”.

Может быть Вы спросите какие преимущества даёт этот режим? Отвечу: теоретически пропускная способность памяти (а это быстродействие компьютера) увеличивается вдвое, но станет ли Ваш комп вдвое резвей? Исследования и эксперименты, проведенные вскоре после первого появления этого режима (на чипсетах от nVidia для процессоров Athlon) были проведени тесты и эксперименты, которые показали 10-15% рост производительности системы. Нельзя сказать что это ВСЕГО 10-15%, порой процессор, увеличивающий производительность системы на тот же порядок стоит В РАЗЫ больше, чем обыкновенный (который по приемлемой цене) так что организовать GANGED MODE — стоит!

P.S. спроста недодумаешься в меню "интеллектуального разгона зайти"
P.P.S. так что в отличие от сокета АМ2, 939 и 462 (Socket A) на АМ3 и АМ3+ (и FM2, я думаю) недостаточно правильно (парами и по цветам) расположить планки памяти!

#двухканальный режим #ganged #unganged mode #am2 #am3 #ам2 #ам3 #матплата #сокет #феном #АМД,

Рекомендуем к прочтению

Добавить комментарий

Ваш адрес email не будет опубликован.