DMA (Direct Memory Access) Direkt Bellek Erişimi Nedir?
DMA (Direct Memory Access, Direkt Bellek Erişimi) belleğe veri aktarımını ve bellekten veri okumayı, Merkezi İşlem Birimi’ni veri transferi işleminde devre dışı bırakarak, sistemin çalışmasını hızlandıran ve işlemci yükünü azaltan bir yöntemdir. Normal şartlardan bellekten/belleğe veri okumak/yazmak istediğimizde, veri ilk önce bellekten(/kaynaktan) okunur ve işlemciye taşınır. İşlemci üzerinden tekrar taşımak istediğimiz adrese yani aygıta (RAM, HD v.b.) gönderilir.
Burada dikkat edilmesi gereken şudur: Taşımak istediğimiz veride hiçbir değişiklik yapmasak bile işlemci bu transferlerde etkin rol oynar ve taşınan veri her seferinde işlemciye uğrar. Sistem kaynaklarını bu şekilde kullanmak, fazladan işlem gücü, zaman kaybı ve sistem yavaşlığı olarak sistem performansına yansır.
Ayrıca bu taşıma sırasında işlemci yapabileceği diğer işlemleri de yapamaz. Eğer taşıdığımız veriler çok büyükse; örnek olarak veri görüntü kayıt kartından veya ağ kartından geliyorsa bu işlemler sistemimizin performansını büyük ölçüde yavaşlatır. Veri transferleri sırasında oluşacak bu negatif etkinin önüne geçmek için; işlemciyi bu akışın içinden çıkarmak ve veri transferi yapmak isteyen aygıta bellek erişimine izin verecek bir yöntem gereklidir.
Çeşitli tipleri (mod’ları) olan bu yönteme genel olarak DMA diyoruz. Çalışma mantığını biraz daha açarsak iş akışı şöyle özetlenebilir. Diyelim ki DMA ile kullanacağımız aygıt video kayıt kartı (frame grabber). Kameradan gelen görüntüleri algılayıp, gerekli işlemleri (filtreleme, analog-dijital çevrim-parlaklık v.s.) yaptıktan sonra oluşan görüntüyü -640*480 çözünürlük, 256 renk ve saniyede 25 frame ile bir saniyelik veri büyüklüğü 7.3MiB veri transferine eşittir sistem belleğine atmak için DMA denetleyiciden veri yollarının kontrolünü alır.
Bu aşamadan sonra işlemci veri transferlerine karışmaz ve transfer dışında kalan işlemleri yapmaya devam edebilir. Video kayıt kartımız (PCI olduğunu varsayarsak sn 133 MiB veri transferi şansı vardır. Bu da 7.3 MiB’lık veri için 50 ms sürer) görüntüyü belleğe attıktan sonra işlemciyi -genellikle kendine ayrılmış interrupt ile- veri transfer işleminin bittiğine dair uyarır ve veri yolunun kontrolünü bırakır. Bu yöntemle çok büyük veriler işlemcinin yaptığı işe ara vermesine gerek bıraktırmadan taşınabilir.
Teorik olarak bu veri transferinin işlemciye yükü %0′dır. Pratikte görebileceğimiz en iyi örnek ise CD*ROM’u DMA modundan PIO moduna alıp CD’den veri okumaya başladığımız durumdur. Bu durumda işlemci yükü %20′nin üstüne rahatlıkla çıkabilir. DMA’nın Multiword DMA, Ultra-DMA gibi farklı çeşitleri de vardır.
DMA (Direct Memory Access, direct memory access) to read data from memory into memory data transfer and the transfer of data to the central processing unit, in the process of disabling the system operation is a method that reduces the load on that processor. Normal conditions from memory/memory data read/write when we want, the data is read from memory (/kaynaktan), and the first processor. To the address we want to move again through the processor that is sent to the device (RAM, HD, etc.).
Here we want to Move the data to consider is this: even with no changes, and the processor plays a role in these transfers in relation to the active data moved each time the processor suffers. In this way the system resources, use the extra processing power, reflected in the performance of the system as a waste of time and slow the system.
In addition, this transport could do other operations during the processor. If our data is very large; as an example, the data-display record card or network card slows down the performance of our operations, this is to a large extent. Data transfers to avoid this negative effect that occurs during; remove the processor and the transfer of data from this stream to the device memory is a method to allow access for wanting to do.
Various types (mode s) which we call to this method, in General, DMA. Logic is a bit more expanded workflow can be summarized as follows. Let’s say we can use the device with the DMA video card (frame grabber). Images from the camera to detect the required operations (filtering, analog-digital conversion-brightness etc.) consisting of image-640 * 480 resolution after, 256 color, and size of the data frame 25 seconds and a second data transfer to throw the system memory is equal to 4.5 MiB DMA controller gets control of the data paths.
After this stage does not intervene in data transfers and transfer outside the operations of the processor to continue. Assuming that the Video card (PCI, chances are the data transfer in seconds 133 MiB. This is 4.5 MiB of data takes 50 ms) for the processor to memory the image after you-usually with its own dedicated interrupt data transfer process, warns of expired, and data-path leaves the control. In this way, a very large data without the need to search for his work for the processor.
Theoretically, this data transfer is the processor load% 0′. In practice, is the best example we CD * ROM, DMA mode to PIO mode is when we started to read data from CDs and receive. In this case, you can easily on top of the processor load is 20%. ‘ Like the Ultra-DMA DMA Multiword DMA are also different varieties.
Dünya üzerinde bir çok kişi Mafia II -2 'nin s ...
Internet Turbo 2003 veri transflerinizin parç ...
Dünyada en çok tercih edilen dijital medya ya ...
TeamViewer, kulanımı oldukça basit olan bilgi ...
Kömürler barbeküde yakıldı. Etler şişlere takı ...
Bilgisayarımıza kaydettiğimiz veriler belli bi ...
Football Manager 2011 içerdiği Ligler; İngilte ...
Omlet yapmanız için yumurtaya ihtiyacınız var ...