بتاريخ: 21 أغسطس 201015 سنة comment_199032 الاخوة الكرام السلام عليكم ورحمة الله تعالى وبركاتهلدى سؤال حول كيفية عمل خوارزمية ال LRU و ال MRU وانا حديث نعا ما فى مجال ال DBA ووجدت هذا الشرحولم افهم جذا كبير منه لذا ارجو التوضيح وجزاكم الله خيراThe buffers in the cache are organized in two lists: the write list and the leastrecently used (LRU) list. The write list holds dirty buffers, which contain data thathas been modified but has not yet been written to disk. The LRU list holds freebuffers, pinned buffers, and dirty buffers that have not yet been moved to the writelist. Free buffers do not contain any useful data and are available for use. Pinnedbuffers are currently being accessed.When an Oracle process accesses a buffer, the process moves the buffer to the mostrecently used (MRU) end of the LRU list. As more buffers are continually moved tothe MRU end of the LRU list, dirty buffers age toward the LRU end of the LRU list.The first time an Oracle user process requires a particular piece of data, it searchesfor the data in the database buffer cache. If the process finds the data already in thecache (a cache hit), it can read the data directly from memory. If the process cannotfind the data in the cache (a cache miss), it must copy the data block from a datafileon disk into a buffer in the cache before accessing the data. Accessing data througha cache hit is faster than data access through a cache missوشكرا تقديم بلاغ
بتاريخ: 22 أغسطس 201015 سنة comment_199055 السلام عليكمالمقصود بذلك most recently used :MRU الاكثر استخدام least recently used :LRU الاقل استخدامضمن ذاكرة الخبء حيث تكون مرتبة الذاكرة من الاكثر استخداما الى الادنى استخداماوعندما يتم عمل خبء لblock معيين فانه يتم وفق خوارزمية MRU ويذهب الى اخر سلسلتها اي الفكرة انه عندما يتم عمل خبء ولا توجد ذاكرة كافية فانه يتم تفعيل خوارزمية ال lru ويتم البحث عن الbuffers الاقل استخداما لتقوم بحذف تلك ال buffers والتوضع مكانها تقديم بلاغ
بتاريخ: 22 أغسطس 201015 سنة كاتب الموضوع comment_199061 شكرا لك اخ x-file كثيرا وجزاك الله خيرا تقديم بلاغ
بتاريخ: 23 أغسطس 201015 سنة comment_199090 شكرا لك أخي الكريم X-File علي المعلومة ونتمني تواجدك معنا دوما تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.