Prezeroing V2 [3/4]: Add support for ZEROED and NOT_ZEROED free maps
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 1 line · Christoph Lameter
o Add scrub daemon
Please use names a simple user may understand.
What about memcleand or zeropaged instead?
¢¢
* Bodo Eggert:
Quoted 7 lines
Quoted 1 line · Christoph Lameter
o Add scrub daemon
Please use names a simple user may understand.
What about memcleand or zeropaged instead?
But overwritting with zeros is commonly called "scrubbing", as in "password scrubbing".
Quoted 3 lines · Florian Weimer
But overwritting with zeros is commonly called "scrubbing", as in "password scrubbing".
On the other hand, "memory scrubbing" in an OS sense is most often used for reading and re-writing the same thing to fix correctable ECC failures.
Anyway, at this point I think the most interesting question is whether it actually improves any macro-benchmark behaviour, rather than just a page fault latency tester microbenchmark..
Linus
* Linus Torvalds:
Quoted 3 lines
Anyway, at this point I think the most interesting question is whether it actually improves any macro-benchmark behaviour, rather than just a page fault latency tester microbenchmark..
By the way, some crazy idea that occurred to me: What about incrementally scrubbing a page which has been assigned previously to this CPU, while spinning inside spinlocks (or busy-waiting somewhere else)?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 4 lines · Florian Weimer
By the way, some crazy idea that occurred to me: What about incrementally scrubbing a page which has been assigned previously to this CPU, while spinning inside spinlocks (or busy-waiting somewhere else)?
Crazy idea, indeed. spinlocks are like safety belts: You should actually not need them in the normal case, but they will save your butt and you'll be glad you have them, when they actually trigger.
So if you are making serious progress here, you have just uncovered a spinlockcontention problem in the kernel ;-)
Regards
Ingo Oeser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFBz2dvU56oYWuOrkARAvc+AJ0RpaIg6JzC28B8SOXE3irCBtaTVgCg1eas 5zACIzV2CtvlNvg6Bit+/G8=rdE7
-----END PGP SIGNATURE-----
Quoted 9 lines · Ingo Oeser
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Quoted 4 lines · Florian Weimer
By the way, some crazy idea that occurred to me: What about incrementally scrubbing a page which has been assigned previously to this CPU, while spinning inside spinlocks (or busy-waiting somewhere else)?
Quoted 6 lines
Crazy idea, indeed. spinlocks are like safety belts: You should actually not need them in the normal case, but they will save your butt and you'll be glad you have them, when they actually trigger.
So if you are making serious progress here, you have just uncovered a spinlockcontention problem in the kernel ;-)
You'd also be evicting the cache contents thus making the lock contention case even worse.
Quoted 3 lines · Linus Torvalds
Anyway, at this point I think the most interesting question is whether it actually improves any macro-benchmark behaviour, rather than just a page fault latency tester microbenchmark..
i can't see how is many cases it won't make things *worse* in many cases, especially if you use hardware
it seems you will be evicting (potentially) useful cache-lines from the CPU when using hardware scrubbing in many cases and when using the CPU if the tuning isn't right just trashing the caches anyhow
I'd really like to see how it affects something like make -j<n> sorta things (since gcc performance is something i personally care about more than how well some contrived benchmark does)
Quoted 3 lines · Linus Torvalds
Anyway, at this point I think the most interesting question is whether it actually improves any macro-benchmark behaviour, rather than just a page fault latency tester microbenchmark..
Any suggestion as to what macro-benchmark would allow that kind of testing? I tried lmbench but it immediately writes to the complete page that was allocated. I tried to vary the number of cache cells touched after an allocation of an prezeroed page. Unsurprisingly it degenerates to regular behavior if all cache lines are touched. So we would need a benchmar that allows sparse memory use testing and preferably is able to also allow SMP tests. I will test with some of the typical apps running on Altix machines but those are extremely heavy in terms of memory use and will likely be as positive as my microbenches.
BTW my bench does simulate the typical behavior of such an app using a sparse array and allows the configuration of the number of cache lines per page to touch.