Correct. You can see a 2011 legacy explanation from Raymond Chen here: https://devblogs.microsoft.com/oldnewthing/20110128-00/?p=11643 … In my opinion, none of the things he says are true today, but, I guess this part of the kernel has still not been updated since then? I don't know :(
-
-
Replying to @cmuratori @codaaaaaaaaa
So what would you do if you had to page in a 2MB page when there isn't 2MB of contiguous physical memory?
2 replies 0 retweets 0 likes -
Replying to @ChenCravat @codaaaaaaaaa
I understand that this is apparently a concern, but I'm not sure I understand why. On modern machines that all have 16+gb of memory, is there some reason the OS can't just sub-divide 4k pages from 2mb pages, and evict all 512 4k pages when deciding to swap in a 2mb page?
2 replies 0 retweets 3 likes -
That is assuming there are backwards compatibility reasons why you have to keep supporting 4k pages in "compatibility" mode, etc. - I can't honestly see there being a point to 4k pages for the normal case of modern apps that all use literally gigabytes of memory?
1 reply 0 retweets 7 likes -
Also, paging is kind of for chumps anyway? Like, the OS probably has to support it, but you don’t actually want to be doing it ever, so, probably should not design for that as a primary use case.
2 replies 0 retweets 16 likes -
Have you got any good ideas on what memory protection without paging might look like, e.g. maybe the ISA lets you specify whole ranges at a time instead of 4k chunks?
1 reply 0 retweets 0 likes -
He's talking about VM paging, not the concept that there are pages. Jon is just saying that designing your paging system around the case where things page in/out is a bad idea, because that case should never happen in perf-centric scenarios (and I agree).
1 reply 0 retweets 2 likes -
And, that design made sense back in the 60s-80s when computers were much smaller and you didn't quite expect them to be realtime when doing industrial-scale things. Now we have much more power and would like to use it effectively.
1 reply 0 retweets 2 likes -
Replying to @Jonathan_Blow @cmuratori and
its not unheard of these days to just straight disable your page file
1 reply 0 retweets 0 likes -
Replying to @tweets_dan @Jonathan_Blow and
Code pages and mapped files will still be paged in. Data pages might have to be zeroed, if zero page list doesn’t have enough of them.
1 reply 0 retweets 0 likes
You are confusing what needs to be done (loading programs) with a particular implementation centered around the paging system.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.