Re:Redis latency spikes and the Linux kernel: a few more det...
by nonane on Monday November 03, 2014 @03:23PM
(#8553238)
You're probably right but a quick way to test this theory is to check the amount of memory private memory (non-cow) is being consumed by the child fork with and without THP. This should tell you how much data is actually being copied vs shared. Not sure how you get this # from Linux though.
[ Parent
| on HN ]
Re:Redis latency spikes and the Linux kernel: a few more det...
by antirez on Monday November 03, 2014 @04:35PM
(#8553677)
Exactly! Doing this. There are ways to do this fortunately (Redis does this actually... in order to report the amount of copy-on-write performed during save, you may want to check the code if you are curious, it is pretty trivial, and it is possible thanks to /proc/<pid>/smaps info).
You were right! Please check: https://news.ycombinator.com/item?id=8553666