diff --git a/content/blog/MOP2/biglock.adoc b/content/blog/MOP2/biglock.adoc index 970d772..4fbaad1 100644 --- a/content/blog/MOP2/biglock.adoc +++ b/content/blog/MOP2/biglock.adoc @@ -230,3 +230,16 @@ affect the system, because of it's premises - being a hobby OS and lacking sophi better performance/control. Hope you've learned something useful about big locks vs. fine-grained locks! + +== EDIT 1 + +Funnily enough, after some testing and playing around with the system, I've found that the big lock actually has improved +performance significantly? + +Why? + +I think it's due to previously having a lot of spin locks, which equate to a huge amount of atomic reads/writes. Such +operations on x86 may cause a performance problem, because they have to be synced across all cores. Having a big lock +once on entry and big unlock on exit reduces the amount of these operations. That's just speculation, I don't have +any real _numbers_ to back this up; it's all based on anecdotal **feel** of the system, while using it and running +test apps.