Linus Torvalds သည် kernel ၏ memory management subsystem အတွက် patch အစုံကို ပြင်ဆင်ထားသည်။ Linuxfolio structure ရှိ reference count (refcount) ကို atomically မပြောင်းလဲဘဲ page cache မှ data အသေးစားများကို ဖတ်ရှုရန်အတွက် optimization များကို အကောင်အထည်ဖော်နေပါသည်။ commit text တွင် ပြောင်းလဲမှုများ၊ ဆက်စပ်စမ်းသပ်မှုများနှင့် draft annotation text များကို Torvalds ၏ ကြီးကြပ်မှုအောက်တွင် Claude Code AI assistant မှ ဖန်တီးခဲ့ကြောင်း ဖော်ပြထားသည်။ ထိုပြောင်းလဲမှုကို သီးခြား kernel branch တစ်ခုဖြစ်သည့် noref-filemap-read-with-llm တွင် ထည့်သွင်းခဲ့ပြီး main branch သို့ backport လုပ်မည်လား သို့မဟုတ် ရိုးရိုး internal experiment တစ်ခုလားဆိုသည်ကို မသေချာသေးပါ။
စမ်းသပ်မှုအတွင်း၊ patch များသည် 8-thread configuration တွင် ဖိုင်ငယ်များကို ဖတ်ရှုခြင်း၏ throughput ကို 9.9-10.4 မှ 30-33 million operations အထိ (3x တိုးလာ)၊ 4-thread configuration တွင် 8.9-11.6 မှ 25-26 million operations အထိ (2x တိုးလာ) နှင့် single-thread configuration တွင် 7.9-8.1 မှ 8.8-8.9 million operations အထိ တိုးမြှင့်ပေးခဲ့သည်။ ဤစွမ်းဆောင်ရည်တိုးလာမှုကို page cache ကို တစ်ပြိုင်နက်ဝင်ရောက်ခြင်းသည် cache ကိုဝင်ရောက်သည့်အခါ thread များအကြား ပြင်းထန်သောပြိုင်ဆိုင်မှုကို ဖြစ်စေသောကြောင့် ရှင်းပြထားသည်။ ဥပမာအားဖြင့်၊ thread 8 ခုသည် data 16 bytes ကို တစ်ပြိုင်နက်ဖတ်ရှုရန်ကြိုးစားသောအခါ၊ အချိန်၏ 99.92% ကို ဖတ်ရှုခြင်းတွင်မဟုတ်ဘဲ reference counter သို့ဝင်ရောက်ရန်စောင့်ဆိုင်းရာတွင် အသုံးပြုပါသည်။
ဒေတာမှန်ကန်ကြောင်းသေချာစေရန်အတွက်၊ patch သည် သီးခြားသော့ခလောက်များရယူခြင်း၊ reference counters ပြောင်းလဲခြင်း သို့မဟုတ် intermediate buffering များအစား Read-Copy-Update (RCU) ယန္တရားမှတစ်ဆင့် synchronization ဖြင့် delayed memory deallocation ကိုအသုံးပြုသည့် workaround တစ်ခုကိုအသုံးပြုသည်။ ဤနည်းလမ်းသည် reading thread သည် ဒေတာကူးယူခြင်းမပြီးမချင်း memory page ကို ရုပ်ပိုင်းဆိုင်ရာ deallocated မလုပ်ကြောင်းအာမခံသည်။
source: opennet.ru
